1 from __future__ import print_function
4 def write_installer(bits, dcpomatic_version, debug, variant, disk):
6 os.makedirs('build/platform/windows')
10 filename = 'build/platform/windows/installer.%d.nsi' % bits
12 f = open(filename, 'w')
13 print('!include "MUI2.nsh"', file=f)
15 print('!include "x64.nsh"', file=f)
18 print('Name "DCP-o-matic debug"', file=f)
20 print('Name "DCP-o-matic"', file=f)
22 print('RequestExecutionLevel admin', file=f)
24 outfile = 'DCP-o-matic '
27 outfile += '%s %d-bit Installer.exe' % (dcpomatic_version, bits)
29 print('outFile "%s"' % outfile, file=f)
32 !define MUI_ICON "%graphics%/windows/dcpomatic2.ico"
33 !define MUI_UNICON "%graphics%/windows/dcpomatic2.ico"
34 !define MUI_SPECIALBITMAP "%graphics%/windows/dcpomatic.bmp"
35 !include "Sections.nsh"
39 program_files = "$PROGRAMFILES64"
41 program_files = "$PROGRAMFILES"
44 print('InstallDir "%s\\DCP-o-matic 2 debug"' % program_files, file=f)
46 print('InstallDir "%s\\DCP-o-matic 2"' % program_files, file=f)
49 !insertmacro MUI_PAGE_WELCOME
50 !insertmacro MUI_PAGE_LICENSE "../../../COPYING"
51 !insertmacro MUI_PAGE_DIRECTORY
52 !insertmacro MUI_PAGE_COMPONENTS
54 Section "Common files (required)" SEC_COMMON
60 ; disable registry redirection (enable access to 64-bit portion of registry)
65 SetOutPath "$INSTDIR\\bin"
66 WriteUninstaller "$INSTDIR\\Uninstall.exe"
68 File "%static_deps%/bin/libintl-8.dll"
69 File "%static_deps%/bin/libboost_chrono-mt.dll"
70 File "%static_deps%/bin/libboost_filesystem-mt.dll"
71 File "%static_deps%/bin/libboost_system-mt.dll"
72 File "%static_deps%/bin/libboost_thread-mt.dll"
73 File "%static_deps%/bin/libboost_date_time-mt.dll"
74 File "%static_deps%/bin/libboost_locale-mt.dll"
75 File "%static_deps%/bin/libboost_regex-mt.dll"
79 print('File "%static_deps%/bin/libgcc_s_sjlj-1.dll"', file=f)
81 print('File "%static_deps%/bin/libgcc_s_seh-1.dll"', file=f)
84 File "%static_deps%/bin/libgio-2.0-0.dll"
85 File "%static_deps%/bin/libglib-2.0-0.dll"
86 File "%static_deps%/bin/libgobject-2.0-0.dll"
87 File "%static_deps%/bin/libiconv-2.dll"
88 File "%static_deps%/bin/libjpeg-9.dll"
89 File "%static_deps%/bin/libpng16-16.dll"
90 File "%static_deps%/bin/libsigc-2.0-0.dll"
91 File "%static_deps%/bin/libsndfile-1.dll"
92 File "%static_deps%/bin/libssh.dll"
93 File "%static_deps%/bin/libstdc++-6.dll"
94 File "%static_deps%/bin/zlib1.dll"
95 File "%static_deps%/bin/libjpeg-9.dll"
96 File "%static_deps%/bin/wxbase30u_gcc_custom.dll"
97 File "%static_deps%/bin/wxmsw30u_core_gcc_custom.dll"
98 File "%static_deps%/bin/wxmsw30u_adv_gcc_custom.dll"
99 File "%static_deps%/bin/wxmsw30u_richtext_gcc_custom.dll"
100 File "%static_deps%/bin/wxmsw30u_html_gcc_custom.dll"
101 File "%static_deps%/bin/wxmsw30u_gl_gcc_custom.dll"
102 File "%static_deps%/bin/wxmsw30u_propgrid_gcc_custom.dll"
103 File "%static_deps%/bin/wxbase30u_xml_gcc_custom.dll"
104 File "%static_deps%/bin/libcairo-2.dll"
105 File "%static_deps%/bin/libfreetype-6.dll"
106 File "%static_deps%/bin/libgthread-2.0-0.dll"
107 File "%static_deps%/bin/libpango-1.0-0.dll"
108 File "%static_deps%/bin/libgmodule-2.0-0.dll"
109 File "%static_deps%/bin/libpangocairo-1.0-0.dll"
110 File "%static_deps%/bin/libpangowin32-1.0-0.dll"
111 File "%static_deps%/bin/libtiff-5.dll"
112 File "%static_deps%/bin/libglibmm-2.4-1.dll"
113 File "%static_deps%/bin/libxml++-2.6-2.dll"
114 File "%static_deps%/bin/libxml2-2.dll"
115 File "%static_deps%/bin/libpixman-1-0.dll"
116 File "%static_deps%/bin/libfontconfig-1.dll"
117 File "%static_deps%/bin/libexpat-1.dll"
118 File "%static_deps%/bin/libbz2.dll"
119 File "%static_deps%/bin/libxmlsec1.dll"
120 File "%static_deps%/bin/libxmlsec1-openssl.dll"
121 File "%static_deps%/bin/libexslt-0.dll"
122 File "%static_deps%/bin/libxslt-1.dll"
123 File "%static_deps%/bin/libffi-6.dll"
124 File "%static_deps%/bin/openssl.exe"
125 File "%static_deps%/bin/libcurl-4.dll"
126 File "%static_deps%/bin/libzip.dll"
127 File "%static_deps%/bin/libcairomm-1.0-1.dll"
128 File "%static_deps%/bin/libpangomm-1.4-1.dll"
129 File "%static_deps%/bin/libsamplerate-0.dll"
130 File "%static_deps%/bin/libnettle-7.dll"
131 File "%static_deps%/bin/icuuc65.dll"
132 File "%static_deps%/bin/icudt65.dll"
133 File "%static_deps%/bin/icuin65.dll"
134 File "%static_deps%/bin/liblzma-5.dll"
135 File "%static_deps%/bin/libpcre-1.dll"
136 File "%static_deps%/bin/libharfbuzz-0.dll"
137 File "%static_deps%/bin/libjasper.dll"
138 File "%static_deps%/bin/liblcms2-2.dll"
139 File "%static_deps%/bin/libwinpthread-1.dll"
140 File "%static_deps%/bin/libgnutls-30.dll"
141 File "%static_deps%/bin/libgmp-10.dll"
142 File "%static_deps%/bin/libhogweed-5.dll"
143 File "%static_deps%/bin/libidn2-0.dll"
144 File "%static_deps%/bin/libunistring-2.dll"
145 File "%static_deps%/bin/libssh2-1.dll"
146 File "%static_deps%/bin/libgcrypt-20.dll"
147 File "%static_deps%/bin/libgpg-error-0.dll"
148 File "%static_deps%/bin/libpangoft2-1.0-0.dll"
149 File "%static_deps%/bin/libx264-155.dll"
150 File "%static_deps%/bin/libwebp-7.dll"
154 print('File "%static_deps%/bin/libcrypto-1_1.dll"', file=f)
156 print('File "%static_deps%/bin/libcrypto-1_1-x64.dll"', file=f)
159 File "%static_deps%/bin/libltdl-7.dll"
160 File "%static_deps%/bin/libdl.dll"
161 File "%cdist_deps%/bin/leqm_nrt.dll"
162 File "%cdist_deps%/bin/asdcp-carl.dll"
163 File "%cdist_deps%/bin/kumu-carl.dll"
168 File "%static_deps%/bin/libnanomsg.dll"
169 File "%cdist_deps%/lib/libblockdev.dll"
170 File "%cdist_deps%/lib/liblwext4.dll"
174 File "%cdist_deps%/bin/avcodec-58.dll"
175 File "%cdist_deps%/bin/avfilter-7.dll"
176 File "%cdist_deps%/bin/avformat-58.dll"
177 File "%cdist_deps%/bin/avutil-56.dll"
178 File "%cdist_deps%/bin/avdevice-58.dll"
179 File "%cdist_deps%/bin/postproc-55.dll"
180 File "%cdist_deps%/bin/swresample-3.dll"
181 File "%cdist_deps%/bin/swscale-5.dll"
182 File "%cdist_deps%/bin/dcp-1.0.dll"
183 File "%cdist_deps%/bin/cxml-0.dll"
184 File "%cdist_deps%/bin/sub-1.0.dll"
185 File "%cdist_deps%/bin/ffprobe.exe"
186 File "%cdist_deps%/src/openssl/apps/openssl.exe"
187 File "%cdist_deps%/bin/libopenjp2.dll"
191 print('File "%resources%/gdb_script"', file=f)
192 print('File "%resources%/dcpomatic2_debug.bat"', file=f)
193 print('File "%resources%/dcpomatic2_batch_debug.bat"', file=f)
194 print('File "%resources%/dcpomatic2_kdm_debug.bat"', file=f)
195 print('File "%resources%/dcpomatic2_player_debug.bat"', file=f)
197 print('File "%resources%/dcpomatic2_disk_debug.bat"', file=f)
198 print('File "%mingw%/bin/gdb.exe"', file=f)
200 print('File "%binaries%/src/wx/dcpomatic2-wx.dll"', file=f)
201 print('File "%binaries%/src/lib/dcpomatic2.dll"', file=f)
204 SetOutPath "$INSTDIR\\bin"
206 SetOutPath "$INSTDIR\\locale\\fr\\LC_MESSAGES"
207 File "%binaries%/src/lib/mo/fr_FR/libdcpomatic2.mo"
208 File "%binaries%/src/wx/mo/fr_FR/libdcpomatic2-wx.mo"
209 File "%binaries%/src/tools/mo/fr_FR/dcpomatic2.mo"
210 File "%static_deps%/share/locale/fr/LC_MESSAGES/wxstd.mo"
211 SetOutPath "$INSTDIR\\locale\\it\\LC_MESSAGES"
212 File "%binaries%/src/lib/mo/it_IT/libdcpomatic2.mo"
213 File "%binaries%/src/wx/mo/it_IT/libdcpomatic2-wx.mo"
214 File "%binaries%/src/tools/mo/it_IT/dcpomatic2.mo"
215 File "%static_deps%/share/locale/it/LC_MESSAGES/wxstd.mo"
216 SetOutPath "$INSTDIR\\locale\\es\\LC_MESSAGES"
217 File "%binaries%/src/lib/mo/es_ES/libdcpomatic2.mo"
218 File "%binaries%/src/wx/mo/es_ES/libdcpomatic2-wx.mo"
219 File "%binaries%/src/tools/mo/es_ES/dcpomatic2.mo"
220 File "%static_deps%/share/locale/es/LC_MESSAGES/wxstd.mo"
221 SetOutPath "$INSTDIR\\locale\\sv\\LC_MESSAGES"
222 File "%binaries%/src/lib/mo/sv_SE/libdcpomatic2.mo"
223 File "%binaries%/src/wx/mo/sv_SE/libdcpomatic2-wx.mo"
224 File "%binaries%/src/tools/mo/sv_SE/dcpomatic2.mo"
225 File "%static_deps%/share/locale/sv/LC_MESSAGES/wxstd.mo"
226 SetOutPath "$INSTDIR\\locale\\de\\LC_MESSAGES"
227 File "%binaries%/src/lib/mo/de_DE/libdcpomatic2.mo"
228 File "%binaries%/src/wx/mo/de_DE/libdcpomatic2-wx.mo"
229 File "%binaries%/src/tools/mo/de_DE/dcpomatic2.mo"
230 File "%static_deps%/share/locale/de/LC_MESSAGES/wxstd.mo"
231 SetOutPath "$INSTDIR\\locale\\nl\\LC_MESSAGES"
232 File "%binaries%/src/lib/mo/nl_NL/libdcpomatic2.mo"
233 File "%binaries%/src/wx/mo/nl_NL/libdcpomatic2-wx.mo"
234 File "%binaries%/src/tools/mo/nl_NL/dcpomatic2.mo"
235 File "%static_deps%/share/locale/nl/LC_MESSAGES/wxstd.mo"
236 SetOutPath "$INSTDIR\\locale\\ru\\LC_MESSAGES"
237 File "%binaries%/src/lib/mo/ru_RU/libdcpomatic2.mo"
238 File "%binaries%/src/wx/mo/ru_RU/libdcpomatic2-wx.mo"
239 File "%binaries%/src/tools/mo/ru_RU/dcpomatic2.mo"
240 File "%static_deps%/share/locale/ru/LC_MESSAGES/wxstd.mo"
241 SetOutPath "$INSTDIR\\locale\\pl\\LC_MESSAGES"
242 File "%binaries%/src/lib/mo/pl_PL/libdcpomatic2.mo"
243 File "%binaries%/src/wx/mo/pl_PL/libdcpomatic2-wx.mo"
244 File "%binaries%/src/tools/mo/pl_PL/dcpomatic2.mo"
245 File "%static_deps%/share/locale/pl/LC_MESSAGES/wxstd.mo"
246 SetOutPath "$INSTDIR\\locale\\da\\LC_MESSAGES"
247 File "%binaries%/src/lib/mo/da_DK/libdcpomatic2.mo"
248 File "%binaries%/src/wx/mo/da_DK/libdcpomatic2-wx.mo"
249 File "%binaries%/src/tools/mo/da_DK/dcpomatic2.mo"
250 File "%static_deps%/share/locale/da/LC_MESSAGES/wxstd.mo"
251 SetOutPath "$INSTDIR\\locale\\pt_PT\\LC_MESSAGES"
252 File "%binaries%/src/lib/mo/pt_PT/libdcpomatic2.mo"
253 File "%binaries%/src/wx/mo/pt_PT/libdcpomatic2-wx.mo"
254 File "%binaries%/src/tools/mo/pt_PT/dcpomatic2.mo"
255 SetOutPath "$INSTDIR\\locale\\pt_BR\\LC_MESSAGES"
256 File "%binaries%/src/lib/mo/pt_BR/libdcpomatic2.mo"
257 File "%binaries%/src/wx/mo/pt_BR/libdcpomatic2-wx.mo"
258 File "%binaries%/src/tools/mo/pt_BR/dcpomatic2.mo"
259 SetOutPath "$INSTDIR\\locale\\sk\\LC_MESSAGES"
260 File "%binaries%/src/lib/mo/sk_SK/libdcpomatic2.mo"
261 File "%binaries%/src/wx/mo/sk_SK/libdcpomatic2-wx.mo"
262 File "%binaries%/src/tools/mo/sk_SK/dcpomatic2.mo"
263 SetOutPath "$INSTDIR\\locale\\cs\\LC_MESSAGES"
264 File "%binaries%/src/lib/mo/cs_CZ/libdcpomatic2.mo"
265 File "%binaries%/src/wx/mo/cs_CZ/libdcpomatic2-wx.mo"
266 File "%binaries%/src/tools/mo/cs_CZ/dcpomatic2.mo"
267 File "%static_deps%/share/locale/cs/LC_MESSAGES/wxstd.mo"
268 SetOutPath "$INSTDIR\\locale\\uk\\LC_MESSAGES"
269 File "%binaries%/src/lib/mo/uk_UA/libdcpomatic2.mo"
270 File "%binaries%/src/wx/mo/uk_UA/libdcpomatic2-wx.mo"
271 File "%binaries%/src/tools/mo/uk_UA/dcpomatic2.mo"
272 SetOutPath "$INSTDIR\\locale\\zh_cn\\LC_MESSAGES"
273 File "%binaries%/src/lib/mo/zh_CN/libdcpomatic2.mo"
274 File "%binaries%/src/wx/mo/zh_CN/libdcpomatic2-wx.mo"
275 File "%binaries%/src/tools/mo/zh_CN/dcpomatic2.mo"
276 SetOutPath "$INSTDIR\\locale\\tr_tr\\LC_MESSAGES"
277 File "%binaries%/src/lib/mo/tr_TR/libdcpomatic2.mo"
278 File "%binaries%/src/wx/mo/tr_TR/libdcpomatic2-wx.mo"
279 File "%binaries%/src/tools/mo/tr_TR/dcpomatic2.mo"
281 SetOutPath "$INSTDIR"
282 File "%resources%/../../fonts/LiberationSans-Regular.ttf"
283 File "%resources%/../../fonts/LiberationSans-Italic.ttf"
284 File "%resources%/../../fonts/LiberationSans-Bold.ttf"
285 File /oname=fonts.conf "%resources%/../../fonts/fonts.conf.windows"
286 File "%graphics%/splash.png"
287 File "%graphics%/zoom.png"
288 File "%graphics%/zoom_all.png"
289 File "%graphics%/select.png"
290 File "%graphics%/snap.png"
291 File "%graphics%/sequence.png"
292 File "%graphics%/me.jpg"
293 File "%graphics%/tick.png"
294 File "%graphics%/no_tick.png"
295 File "%graphics%/link.png"
296 SetOutPath "$INSTDIR\\xsd"
297 File "%cdist_deps%/share/libdcp/xsd/SMPTE-429-7-2006-CPL.xsd"
298 File "%cdist_deps%/share/libdcp/xsd/SMPTE-429-8-2006-PKL.xsd"
299 File "%cdist_deps%/share/libdcp/xsd/SMPTE-429-9-2007-AM.xsd"
300 File "%cdist_deps%/share/libdcp/xsd/xmldsig-core-schema.xsd"
301 File "%cdist_deps%/share/libdcp/xsd/XMLSchema.dtd"
302 File "%cdist_deps%/share/libdcp/xsd/XMLSchema.xsd"
303 File "%cdist_deps%/share/libdcp/xsd/xml.xsd"
304 File "%cdist_deps%/share/libdcp/xsd/DCDMSubtitle-2010.xsd"
305 File "%cdist_deps%/share/libdcp/xsd/DCSubtitle.v1.mattsson.xsd"
306 File "%cdist_deps%/share/libdcp/xsd/Main-Stereo-Picture-CPL.xsd"
307 File "%cdist_deps%/share/libdcp/xsd/PROTO-ASDCP-AM-20040311.xsd"
308 File "%cdist_deps%/share/libdcp/xsd/PROTO-ASDCP-CPL-20040511.xsd"
309 File "%cdist_deps%/share/libdcp/xsd/PROTO-ASDCP-PKL-20040311.xsd"
315 print('Section "DCP-o-matic 2 debug" SEC_MASTER', file=f)
317 print('Section "DCP-o-matic 2" SEC_MASTER', file=f)
319 print('SetOutPath "$INSTDIR\\bin"', file=f)
322 print('CreateDirectory "$SMPROGRAMS\\DCP-o-matic 2 debug"', file=f)
324 print('CreateDirectory "$SMPROGRAMS\\DCP-o-matic 2"', file=f)
327 File "%binaries%/src/tools/dcpomatic2.exe"
328 File "%binaries%/src/tools/dcpomatic2_batch.exe"
329 File "%binaries%/src/tools/dcpomatic2_cli.exe"
330 File "%binaries%/src/tools/dcpomatic2_create.exe"
331 File "%binaries%/src/tools/dcpomatic2_kdm.exe"
332 File "%binaries%/src/tools/dcpomatic2_kdm_cli.exe"
337 File "%binaries%/src/tools/dcpomatic2_disk.exe"
338 File "%binaries%/src/tools/dcpomatic2_disk_writer.exe"
339 File "%resources%/dcpomatic2_disk_writer.exe.manifest"
343 File "%binaries%/src/tools/dcpomatic2_player.exe"
344 File "%binaries%/src/tools/dcpomatic2_playlist.exe"
348 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 debug\\DCP-o-matic 2 debug.lnk" "$INSTDIR\\bin\\dcpomatic2_debug.bat"', file=f)
349 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 debug\\DCP-o-matic 2 Batch Converter debug.lnk" "$INSTDIR\\bin\\dcpomatic2_batch_debug.bat" ""', file=f)
350 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 debug\\DCP-o-matic 2 KDM Creator debug.lnk" "$INSTDIR\\bin\\dcpomatic2_kdm_debug.bat" ""', file=f)
352 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 debug\\DCP-o-matic 2 Disk Writer debug.lnk" "$INSTDIR\\bin\\dcpomatic2_disk_debug.bat" ""', file=f)
353 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 debug\\Uninstall DCP-o-matic 2 debug.lnk" "$INSTDIR\\Uninstall.exe"', file=f)
354 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 debug\\DCP-o-matic 2 Player debug.lnk" "$INSTDIR\\bin\\dcpomatic2_player_debug.bat" ""', file=f)
355 print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 debug" "DisplayName" "DCP-o-matic 2 debug (remove only)"', file=f)
356 print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 debug" "UninstallString" "$INSTDIR\\Uninstall.exe"', file=f)
358 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\DCP-o-matic 2.lnk" "$INSTDIR\\bin\\dcpomatic2.exe"', file=f)
359 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\DCP-o-matic 2 Batch Converter.lnk" "$INSTDIR\\bin\\dcpomatic2_batch.exe"', file=f)
360 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\DCP-o-matic 2 KDM Creator.lnk" "$INSTDIR\\bin\\dcpomatic2_kdm.exe"', file=f)
362 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\DCP-o-matic 2 Disk Writer.lnk" "$INSTDIR\\bin\\dcpomatic2_disk.exe"', file=f)
363 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\Uninstall DCP-o-matic 2.lnk" "$INSTDIR\\Uninstall.exe"', file=f)
364 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\DCP-o-matic 2 Player.lnk" "$INSTDIR\\bin\\dcpomatic2_player.exe"', file=f)
365 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\DCP-o-matic 2 Playlist Editor.lnk" "$INSTDIR\\bin\\dcpomatic2_playlist.exe"', file=f)
366 print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic2" "DisplayName" "DCP-o-matic 2 (remove only)"', file=f)
367 print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic2" "UninstallString" "$INSTDIR\\Uninstall.exe"', file=f)
369 print("SectionEnd", file=f)
372 print('Section "DCP-o-matic 2 debug desktop shortcuts" SEC_MASTER_DESKTOP', file=f)
373 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 Player debug.lnk" "$INSTDIR\\bin\\dcpomatic2_player_debug.bat" ""', file=f)
374 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 debug.lnk" "$INSTDIR\\bin\\dcpomatic2_debug.bat" ""', file=f)
375 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 Batch Converter debug.lnk" "$INSTDIR\\bin\\dcpomatic2_batch_debug.bat" ""', file=f)
376 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 KDM Creator debug.lnk" "$INSTDIR\\bin\\dcpomatic2_kdm_debug.bat" ""', file=f)
378 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 Disk Writer debug.lnk" "$INSTDIR\\bin\\dcpomatic2_disk_debug.bat" ""', file=f)
380 print('Section "DCP-o-matic 2 desktop shortcuts" SEC_MASTER_DESKTOP', file=f)
381 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 Player.lnk" "$INSTDIR\\bin\\dcpomatic2_player.exe"', file=f)
382 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2.lnk" "$INSTDIR\\bin\\dcpomatic2.exe" ""', file=f)
383 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 Batch Converter.lnk" "$INSTDIR\\bin\\dcpomatic2_batch.exe"', file=f)
384 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 KDM Creator.lnk" "$INSTDIR\\bin\\dcpomatic2_kdm.exe"', file=f)
386 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 Disk Writer.lnk" "$INSTDIR\\bin\\dcpomatic2_disk.exe"', file=f)
388 print("SectionEnd", file=f)
391 Section "Encode server" SEC_SERVER
392 SetOutPath "$INSTDIR\\bin"
393 CreateDirectory "$SMPROGRAMS\\DCP-o-matic 2"
394 File "%binaries%/src/tools/dcpomatic2_server_cli.exe"
395 File "%binaries%/src/tools/dcpomatic2_server.exe"
396 CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\DCP-o-matic 2 Encode Server.lnk" "$INSTDIR\\bin\\dcpomatic2_server.exe" "" "$INSTDIR\\bin\\dcpomatic2_server.exe" 0
397 CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\Uninstall DCP-o-matic 2.lnk" "$INSTDIR\\Uninstall.exe" "" "$INSTDIR\\Uninstall.exe" 0
399 Section "Encode server desktop shortcuts" SEC_SERVER_DESKTOP
400 CreateShortCut "$DESKTOP\\DCP-o-matic 2 Encode Server.lnk" "$INSTDIR\\bin\\dcpomatic2_server.exe" ""
405 print('LangString DESC_SEC_MASTER ${LANG_ENGLISH} "DCP-o-matic 2 debug"', file=f)
406 print('LangString DESC_SEC_MASTER_DESKTOP ${LANG_ENGLISH} "DCP-o-matic 2 debug desktop shortcuts"', file=f)
408 print('LangString DESC_SEC_MASTER ${LANG_ENGLISH} "DCP-o-matic 2"', file=f)
409 print('LangString DESC_SEC_MASTER_DESKTOP ${LANG_ENGLISH} "DCP-o-matic 2 desktop shortcuts"', file=f)
410 print('LangString DESC_SEC_SERVER ${LANG_ENGLISH} "DCP-o-matic 2 Encode Server"', file=f)
411 print('LangString DESC_SEC_SERVER_DESKTOP ${LANG_ENGLISH} "DCP-o-matic 2 Encode Server desktop shortcuts"', file=f)
414 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
415 !insertmacro MUI_DESCRIPTION_TEXT ${SEC_MASTER} $(DESC_SEC_MASTER)
416 !insertmacro MUI_DESCRIPTION_TEXT ${SEC_MASTER_DESKTOP} $(DESC_SEC_MASTER_DESKTOP)
417 !insertmacro MUI_DESCRIPTION_TEXT ${SEC_SERVER} $(DESC_SEC_SERVER)
418 !insertmacro MUI_DESCRIPTION_TEXT ${SEC_SERVER_DESKTOP} $(DESC_SEC_SERVER_DESKTOP)
419 !insertmacro MUI_FUNCTION_DESCRIPTION_END
421 !insertmacro MUI_PAGE_INSTFILES
422 !insertmacro MUI_PAGE_FINISH
424 !insertmacro MUI_UNPAGE_WELCOME
425 !insertmacro MUI_UNPAGE_CONFIRM
426 !insertmacro MUI_UNPAGE_INSTFILES
427 !insertmacro MUI_UNPAGE_FINISH
428 !insertmacro MUI_LANGUAGE "English"
434 RMDir /r "$INSTDIR\\*.*"
436 Delete "$DESKTOP\\DCP-o-matic 2 debug.lnk"
437 Delete "$DESKTOP\\DCP-o-matic 2 Batch Converter debug.lnk"
438 Delete "$DESKTOP\\DCP-o-matic 2 KDM Creator debug.lnk"
439 Delete "$DESKTOP\\DCP-o-matic 2 Disk Writer debug.lnk"
440 Delete "$SMPROGRAMS\\DCP-o-matic 2 debug\\*.*"
441 RmDir "$SMPROGRAMS\\DCP-o-matic 2 debug"
442 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\DCP-o-matic 2 debug"
443 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 debug"
449 RMDir /r "$INSTDIR\\*.*"
451 Delete "$DESKTOP\\DCP-o-matic 2.lnk"
452 Delete "$DESKTOP\\DCP-o-matic 2 Batch Converter.lnk"
453 Delete "$DESKTOP\\DCP-o-matic 2 Encode Server.lnk"
454 Delete "$DESKTOP\\DCP-o-matic 2 KDM creator.lnk"
455 Delete "$DESKTOP\\DCP-o-matic 2 Disk Writer.lnk"
456 Delete "$SMPROGRAMS\\DCP-o-matic 2\\*.*"
457 RmDir "$SMPROGRAMS\\DCP-o-matic 2"
458 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\DCP-o-matic 2"
459 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2"
465 write_installer(32, bld.env.VERSION, bld.env.DEBUG, bld.env.VARIANT, bld.env.ENABLE_DISK)
466 write_installer(64, bld.env.VERSION, bld.env.DEBUG, bld.env.VARIANT, bld.env.ENABLE_DISK)