Remove gpg4win logo from list of installed files
[gpg4win.git] / src / inst-kleopatra.nsi
1 # inst-kleopatra.nsi - Installer snippet for kleopatra.      -*- coding: latin-1; -*-
2 # Copyright (C) 2005, 2007, 2008 g10 Code GmbH
3 #
4 # This file is part of GPG4Win.
5 #
6 # GPG4Win is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
10 #
11 # GPG4Win is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
15 #
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
19
20
21 !ifdef prefix
22 !undef prefix
23 !endif
24 !define prefix ${ipdir}/kleopatra-${gpg4win_pkg_kleopatra_version}
25
26 ${MementoSection} "Kleopatra" SEC_kleopatra
27   SetOutPath "$INSTDIR"
28 !ifdef SOURCES
29   # Kleopatra Source Package also contains kdepimlibs, kdelibs and
30   # kde-runtime, as well as win-iconv and attica
31   File "${gpg4win_pkg_kleopatra}"
32 !else
33
34   SetOutPath "$INSTDIR\bin"
35   File ${prefix}/bin/kleopatra.exe
36   #File ${prefix}/bin/kwatchgnupg.exe
37
38   File ${prefix}/bin/libkleopatraclientcore.dll
39   File ${prefix}/bin/libkleopatraclientgui.dll
40
41   # The KCM lib is directly linked
42   File ${prefix}/lib/plugins/kcm_kleopatra.dll
43
44   SetOutPath "$INSTDIR\share\kleopatra\pics"
45
46   File ${prefix}/share/kleopatra/pics/kleopatra_splashscreen.png
47   File ${prefix}/share/kleopatra/pics/kleopatra_splashscreen.svgz
48   File ${prefix}/share/kleopatra/pics/kleopatra_wizard.png
49   File ${prefix}/share/kleopatra/pics/kleopatra_wizard.svgz
50
51   SetOutPath "$INSTDIR\share\kservices5"
52   File ${prefix}/share/kservices5/kleopatra_config_appear.desktop
53   File ${prefix}/share/kservices5/kleopatra_config_gnupgsystem.desktop
54   File ${prefix}/share/kservices5/kleopatra_config_cryptooperations.desktop
55   File ${prefix}/share/kservices5/kleopatra_config_smimevalidation.desktop
56   File ${prefix}/share/kservices5/kleopatra_config_dirserv.desktop
57
58 #  SetOutPath "$INSTDIR\share\apps\kwatchgnupg\pics"
59
60 #  File ${prefix}/share/apps/kwatchgnupg/pics/kwatchgnupg.png
61 #  File ${prefix}/share/apps/kwatchgnupg/pics/kwatchgnupg2.png
62
63 #  # TODO Can't mix localized and en commons when we install
64 #  # more then one kde langanuage
65 #  SetOutPath "$INSTDIR\share\doc\HTML\common"
66 #
67 #  File ${prefix}/share/doc/HTML/en/common/1.png
68 #  File ${prefix}/share/doc/HTML/en/common/10.png
69 #  File ${prefix}/share/doc/HTML/en/common/2.png
70 #  File ${prefix}/share/doc/HTML/en/common/3.png
71 #  File ${prefix}/share/doc/HTML/en/common/4.png
72 #  File ${prefix}/share/doc/HTML/en/common/5.png
73 #  File ${prefix}/share/doc/HTML/en/common/6.png
74 #  File ${prefix}/share/doc/HTML/en/common/7.png
75 #  File ${prefix}/share/doc/HTML/en/common/8.png
76 #  File ${prefix}/share/doc/HTML/en/common/9.png
77 #  File ${prefix}/share/doc/HTML/en/common/artistic-license.html
78 #  File ${prefix}/share/doc/HTML/en/common/block_title_bottom.png
79 #  File ${prefix}/share/doc/HTML/en/common/block_title_mid.png
80 #  File ${prefix}/share/doc/HTML/en/common/block_title_top.png
81 #  File ${prefix}/share/doc/HTML/en/common/bottom-left.png
82 #  File ${prefix}/share/doc/HTML/en/common/bottom-middle.png
83 #  File ${prefix}/share/doc/HTML/en/common/bottom-right.png
84 #  File ${prefix}/share/doc/HTML/en/common/bsd-license.html
85 #  File ${prefix}/share/doc/HTML/en/common/doxygen.css
86 #  File ${prefix}/share/doc/HTML/en/common/favicon.ico
87 #  File ${prefix}/share/doc/HTML/en/common/fdl-license.html
88 #  File ${prefix}/share/doc/HTML/en/common/fdl-license
89 #  File ${prefix}/share/doc/HTML/en/common/fdl-notice.html
90 #  File ${prefix}/share/doc/HTML/en/common/kde-docs.css
91 #  File ${prefix}/share/doc/HTML/en/common/footer.html
92 #  File ${prefix}/share/doc/HTML/en/common/gpl-license.html
93 #  File ${prefix}/share/doc/HTML/en/common/gpl-license
94 #  File ${prefix}/share/doc/HTML/en/common/header.html
95 #  File ${prefix}/share/doc/HTML/en/common/kde-default.css
96 #  File ${prefix}/share/doc/HTML/en/common/kde-docs.css
97 #  File ${prefix}/share/doc/HTML/en/common/kde_logo_bg.png
98 #  File ${prefix}/share/doc/HTML/en/common/lgpl-license.html
99 #  File ${prefix}/share/doc/HTML/en/common/lgpl-license
100 #  File ${prefix}/share/doc/HTML/en/common/mainfooter.html
101 #  File ${prefix}/share/doc/HTML/en/common/mainheader.html
102 #  File ${prefix}/share/doc/HTML/en/common/qpl-license.html
103 #  File ${prefix}/share/doc/HTML/en/common/tabs.css
104 #  File ${prefix}/share/doc/HTML/en/common/top-kde.jpg
105 #  File ${prefix}/share/doc/HTML/en/common/top-left.jpg
106 #  File ${prefix}/share/doc/HTML/en/common/top-left.png
107 #  File ${prefix}/share/doc/HTML/en/common/top-middle.png
108 #  File ${prefix}/share/doc/HTML/en/common/top-right.jpg
109 #  File ${prefix}/share/doc/HTML/en/common/top-right.png
110 #  File ${prefix}/share/doc/HTML/en/common/top.jpg
111 #  File ${prefix}/share/doc/HTML/en/common/x11-license.html
112 #  File ${prefix}/share/doc/HTML/en/common/xml.dcl
113 #
114 #  File ${prefix}/share/doc/HTML/de/common/fdl-translated.html
115 #  File ${prefix}/share/doc/HTML/de/common/gpl-translated.html
116 #  File ${prefix}/share/doc/HTML/de/common/kde-localised.css
117 #  File ${prefix}/share/doc/HTML/de/common/lgpl-translated.html
118 #
119 #  SetOutPath "$INSTDIR\share\doc\HTML\de\kleopatra"
120 #
121 #  File ${prefix}/share/doc/HTML/de/kleopatra/admin-archive-definitions.html
122 #  File ${prefix}/share/doc/HTML/de/kleopatra/admin-checksum-definitions.html
123 #  File ${prefix}/share/doc/HTML/de/kleopatra/admin-key-filters.html
124 #  File ${prefix}/share/doc/HTML/de/kleopatra/admin.html
125 #  File ${prefix}/share/doc/HTML/de/kleopatra/commandline-options.html
126 #  File ${prefix}/share/doc/HTML/de/kleopatra/configuration-appearance.html
127 #  File ${prefix}/share/doc/HTML/de/kleopatra/configuration-crypto-operations.html
128 #  File ${prefix}/share/doc/HTML/de/kleopatra/configuration-gnupg-system.html
129 #  File ${prefix}/share/doc/HTML/de/kleopatra/configuration-smime-validation.html
130 #  File ${prefix}/share/doc/HTML/de/kleopatra/configuration.html
131 #  File ${prefix}/share/doc/HTML/de/kleopatra/credits-and-license.html
132 #  File ${prefix}/share/doc/HTML/de/kleopatra/functions-newkey.html
133 #  File ${prefix}/share/doc/HTML/de/kleopatra/functions-search.html
134 #  File ${prefix}/share/doc/HTML/de/kleopatra/functions.html
135 #  File ${prefix}/share/doc/HTML/de/kleopatra/index.html
136 #  File ${prefix}/share/doc/HTML/de/kleopatra/introduction.html
137 #  File ${prefix}/share/doc/HTML/de/kleopatra/menu.html
138 #  File ${prefix}/share/doc/HTML/de/kleopatra/menucertificates.html
139 #  File ${prefix}/share/doc/HTML/de/kleopatra/menuhelp.html
140 #  File ${prefix}/share/doc/HTML/de/kleopatra/menusettings.html
141 #  File ${prefix}/share/doc/HTML/de/kleopatra/menutools.html
142 #  File ${prefix}/share/doc/HTML/de/kleopatra/menuview.html
143 #  File ${prefix}/share/doc/HTML/de/kleopatra/menuwindow.html
144 #
145 #  SetOutPath "$INSTDIR\share\doc\HTML\en\kleopatra"
146 #
147 #  File ${prefix}/share/doc/HTML/en/kleopatra/admin-archive-definitions.html
148 #  File ${prefix}/share/doc/HTML/en/kleopatra/admin-checksum-definitions.html
149 #  File ${prefix}/share/doc/HTML/en/kleopatra/admin-key-filters.html
150 #  File ${prefix}/share/doc/HTML/en/kleopatra/admin.html
151 #  File ${prefix}/share/doc/HTML/en/kleopatra/commandline-options.html
152 #  File ${prefix}/share/doc/HTML/en/kleopatra/configuration-appearance.html
153 #  File ${prefix}/share/doc/HTML/en/kleopatra/configuration-crypto-operations.html
154 #  File ${prefix}/share/doc/HTML/en/kleopatra/configuration-gnupg-system.html
155 #  File ${prefix}/share/doc/HTML/en/kleopatra/configuration-smime-validation.html
156 #  File ${prefix}/share/doc/HTML/en/kleopatra/configuration.html
157 #  File ${prefix}/share/doc/HTML/en/kleopatra/credits-and-license.html
158 #  File ${prefix}/share/doc/HTML/en/kleopatra/functions-newkey.html
159 #  File ${prefix}/share/doc/HTML/en/kleopatra/functions-search.html
160 #  File ${prefix}/share/doc/HTML/en/kleopatra/functions.html
161 #  File ${prefix}/share/doc/HTML/en/kleopatra/index.html
162 #  File ${prefix}/share/doc/HTML/en/kleopatra/introduction.html
163 #  File ${prefix}/share/doc/HTML/en/kleopatra/menu.html
164 #  File ${prefix}/share/doc/HTML/en/kleopatra/menucertificates.html
165 #  File ${prefix}/share/doc/HTML/en/kleopatra/menuhelp.html
166 #  File ${prefix}/share/doc/HTML/en/kleopatra/menusettings.html
167 #  File ${prefix}/share/doc/HTML/en/kleopatra/menutools.html
168 #  File ${prefix}/share/doc/HTML/en/kleopatra/menuview.html
169 #  File ${prefix}/share/doc/HTML/en/kleopatra/menuwindow.html
170
171   SetOutPath "$INSTDIR\share\icons\hicolor\128x128\apps"
172
173   File ${prefix}/share/icons/hicolor/128x128/apps/kleopatra.png
174
175   SetOutPath "$INSTDIR\share\icons\hicolor\16x16\apps"
176
177   File ${prefix}/share/kleopatra/pics/gpg4win-compact.png
178   File ${prefix}/share/icons/hicolor/16x16/apps/kleopatra.png
179
180   SetOutPath "$INSTDIR\share\icons\hicolor\22x22\apps"
181
182   File ${prefix}/share/icons/hicolor/22x22/apps/kleopatra.png
183
184   SetOutPath "$INSTDIR\share\icons\hicolor\256x256\apps"
185
186   File ${prefix}/share/icons/hicolor/256x256/apps/kleopatra.png
187
188   SetOutPath "$INSTDIR\share\icons\hicolor\32x32\apps"
189
190   File ${prefix}/share/icons/hicolor/32x32/apps/kleopatra.png
191
192   SetOutPath "$INSTDIR\share\icons\hicolor\48x48\apps"
193
194   File ${prefix}/share/icons/hicolor/48x48/apps/kleopatra.png
195
196   SetOutPath "$INSTDIR\share\icons\hicolor\64x64\apps"
197
198   File ${prefix}/share/icons/hicolor/64x64/apps/kleopatra.png
199
200   SetOutPath "$INSTDIR\share\icons\hicolor"
201   File ${prefix}/share/icons/hicolor/icon-theme.cache
202   File index.theme
203
204   # In KDE 4.10 the locale detection in kdelibs is broken so we
205   # install a kdeglobals with the language setting chosen in the
206   # installer
207   push $1
208   FileOpen $1 "$INSTDIR\share\kdeglobals" "w"
209   # Writing out icon theme is important here otherwise you have
210   # weird effects like no toolbar icons.
211   FileWrite $1 '[Icons]$\r$\n'
212   FileWrite $1 'Theme=breeze$\r$\n$\r$\n'
213   FileClose $1
214   pop $1
215
216   SetOutPath "$INSTDIR\share\QtProject"
217   # We want kleopatra logging for debugging
218   push $1
219   FileOpen $1 "$INSTDIR\share\QtProject\qtlogging.ini" "w"
220   FileWrite $1 '[Rules]$\r$\n'
221   FileWrite $1 'org.kde.pim.*=true$\r$\n'
222   FileClose $1
223   pop $1
224
225   WriteRegStr HKLM "Software\Gpg4win\kleopatra\Capabilities" "ApplicationDescription" "$(DESC_SEC_kleopatra)"
226   WriteRegStr HKLM "Software\Gpg4win\kleopatra\Capabilities" "ApplicationIcon" "$INSTDIR\bin\kleopatra.exe,0"
227   WriteRegStr HKLM "Software\Gpg4win\kleopatra\Capabilities" "ApplicationName" "Kleopatra"
228
229 !endif
230 ${MementoSectionEnd}
231
232
233 LangString DESC_SEC_kleopatra ${LANG_ENGLISH} \
234    "Keymanager for OpenPGP and X.509 and common crypto dialogs."
235
236
237 LangString DESC_Menu_kleopatra ${LANG_ENGLISH} \
238    "Run the Kleopatra key management tool."