1 from __future__ import print_function
4 def write_installer(bits, windows_version, dcpomatic_version, debug, variant, disk):
6 os.makedirs('build/platform/windows')
10 filename = 'build/platform/windows/installer.'
11 if windows_version is not None:
13 filename += '%d.nsi' % bits
15 f = open(filename, 'w')
16 print('!include "MUI2.nsh"', file=f)
18 print('!include "x64.nsh"', file=f)
21 print('Name "DCP-o-matic debug"', file=f)
23 print('Name "DCP-o-matic"', file=f)
25 print('RequestExecutionLevel admin', file=f)
27 outfile = 'DCP-o-matic '
30 outfile += '%s %d-bit ' % (dcpomatic_version, bits)
31 if windows_version is 'xp':
33 outfile += 'Installer.exe'
35 print('outFile "%s"' % outfile, file=f)
38 !define MUI_ICON "%graphics%/windows/dcpomatic2.ico"
39 !define MUI_UNICON "%graphics%/windows/dcpomatic2.ico"
40 !define MUI_SPECIALBITMAP "%graphics%/windows/dcpomatic.bmp"
41 !include "Sections.nsh"
45 program_files = "$PROGRAMFILES64"
47 program_files = "$PROGRAMFILES"
50 print('InstallDir "%s\\DCP-o-matic 2 debug"' % program_files, file=f)
52 print('InstallDir "%s\\DCP-o-matic 2"' % program_files, file=f)
55 !insertmacro MUI_PAGE_WELCOME
56 !insertmacro MUI_PAGE_LICENSE "../../../COPYING"
57 !insertmacro MUI_PAGE_DIRECTORY
58 !insertmacro MUI_PAGE_COMPONENTS
60 Section "Common files (required)" SEC_COMMON
66 ; disable registry redirection (enable access to 64-bit portion of registry)
71 SetOutPath "$INSTDIR\\bin"
72 WriteUninstaller "$INSTDIR\\Uninstall.exe"
74 File "%static_deps%/bin/libintl-8.dll"
75 File "%static_deps%/bin/libboost_chrono-mt.dll"
76 File "%static_deps%/bin/libboost_filesystem-mt.dll"
77 File "%static_deps%/bin/libboost_system-mt.dll"
78 File "%static_deps%/bin/libboost_thread-mt.dll"
79 File "%static_deps%/bin/libboost_date_time-mt.dll"
80 File "%static_deps%/bin/libboost_locale-mt.dll"
81 File "%static_deps%/bin/libboost_regex-mt.dll"
85 print('File "%static_deps%/bin/libgcc_s_sjlj-1.dll"', file=f)
87 print('File "%static_deps%/bin/libgcc_s_seh-1.dll"', file=f)
90 File "%static_deps%/bin/libgio-2.0-0.dll"
91 File "%static_deps%/bin/libglib-2.0-0.dll"
92 File "%static_deps%/bin/libgobject-2.0-0.dll"
93 File "%static_deps%/bin/libiconv-2.dll"
94 File "%static_deps%/bin/libjpeg-9.dll"
95 File "%static_deps%/bin/libpng16-16.dll"
96 File "%static_deps%/bin/libsigc-2.0-0.dll"
97 File "%static_deps%/bin/libsndfile-1.dll"
98 File "%static_deps%/bin/libssh.dll"
99 File "%static_deps%/bin/libstdc++-6.dll"
100 File "%static_deps%/bin/zlib1.dll"
101 File "%static_deps%/bin/libjpeg-9.dll"
102 File "%static_deps%/bin/wxbase30u_gcc_custom.dll"
103 File "%static_deps%/bin/wxmsw30u_core_gcc_custom.dll"
104 File "%static_deps%/bin/wxmsw30u_adv_gcc_custom.dll"
105 File "%static_deps%/bin/wxmsw30u_richtext_gcc_custom.dll"
106 File "%static_deps%/bin/wxmsw30u_html_gcc_custom.dll"
107 File "%static_deps%/bin/wxmsw30u_gl_gcc_custom.dll"
108 File "%static_deps%/bin/wxmsw30u_propgrid_gcc_custom.dll"
109 File "%static_deps%/bin/wxbase30u_xml_gcc_custom.dll"
110 File "%static_deps%/bin/libcairo-2.dll"
111 File "%static_deps%/bin/libfreetype-6.dll"
112 File "%static_deps%/bin/libgthread-2.0-0.dll"
113 File "%static_deps%/bin/libpango-1.0-0.dll"
114 File "%static_deps%/bin/libgmodule-2.0-0.dll"
115 File "%static_deps%/bin/libpangocairo-1.0-0.dll"
116 File "%static_deps%/bin/libpangowin32-1.0-0.dll"
117 File "%static_deps%/bin/libtiff-5.dll"
118 File "%static_deps%/bin/libglibmm-2.4-1.dll"
119 File "%static_deps%/bin/libxml++-2.6-2.dll"
120 File "%static_deps%/bin/libxml2-2.dll"
121 File "%static_deps%/bin/libpixman-1-0.dll"
122 File "%static_deps%/bin/libfontconfig-1.dll"
123 File "%static_deps%/bin/libexpat-1.dll"
124 File "%static_deps%/bin/libbz2.dll"
125 File "%static_deps%/bin/libxmlsec1.dll"
126 File "%static_deps%/bin/libxmlsec1-openssl.dll"
127 File "%static_deps%/bin/libexslt-0.dll"
128 File "%static_deps%/bin/libxslt-1.dll"
129 File "%static_deps%/bin/libffi-6.dll"
130 File "%static_deps%/bin/openssl.exe"
131 File "%static_deps%/bin/libcurl-4.dll"
132 File "%static_deps%/bin/libzip.dll"
133 File "%static_deps%/bin/libcairomm-1.0-1.dll"
134 File "%static_deps%/bin/libpangomm-1.4-1.dll"
135 File "%static_deps%/bin/libsamplerate-0.dll"
136 File "%static_deps%/bin/libnettle-7.dll"
137 File "%static_deps%/bin/icuuc65.dll"
138 File "%static_deps%/bin/icudt65.dll"
139 File "%static_deps%/bin/icuin65.dll"
140 File "%static_deps%/bin/liblzma-5.dll"
141 File "%static_deps%/bin/libpcre-1.dll"
142 File "%static_deps%/bin/libharfbuzz-0.dll"
143 File "%static_deps%/bin/libjasper.dll"
144 File "%static_deps%/bin/liblcms2-2.dll"
145 File "%static_deps%/bin/libwinpthread-1.dll"
146 File "%static_deps%/bin/libgnutls-30.dll"
147 File "%static_deps%/bin/libgmp-10.dll"
148 File "%static_deps%/bin/libhogweed-5.dll"
149 File "%static_deps%/bin/libidn2-0.dll"
150 File "%static_deps%/bin/libunistring-2.dll"
151 File "%static_deps%/bin/libssh2-1.dll"
152 File "%static_deps%/bin/libgcrypt-20.dll"
153 File "%static_deps%/bin/libgpg-error-0.dll"
154 File "%static_deps%/bin/libpangoft2-1.0-0.dll"
155 File "%static_deps%/bin/libx264-155.dll"
156 File "%static_deps%/bin/libwebp-7.dll"
160 print('File "%static_deps%/bin/libcrypto-1_1.dll"', file=f)
162 print('File "%static_deps%/bin/libcrypto-1_1-x64.dll"', file=f)
165 File "%static_deps%/bin/libltdl-7.dll"
166 File "%static_deps%/bin/libdl.dll"
167 File "%cdist_deps%/bin/leqm_nrt.dll"
168 File "%cdist_deps%/bin/asdcp-carl.dll"
169 File "%cdist_deps%/bin/kumu-carl.dll"
174 File "%static_deps%/bin/libnanomsg.dll"
175 File "%cdist_deps%/lib/libblockdev.dll"
176 File "%cdist_deps%/lib/liblwext4.dll"
179 if windows_version == 'xp':
181 File "%cdist_deps%/bin/avcodec-57.dll"
182 File "%cdist_deps%/bin/avfilter-6.dll"
183 File "%cdist_deps%/bin/avformat-57.dll"
184 File "%cdist_deps%/bin/avutil-55.dll"
185 File "%cdist_deps%/bin/avdevice-57.dll"
186 File "%cdist_deps%/bin/postproc-54.dll"
187 File "%cdist_deps%/bin/swresample-2.dll"
188 File "%cdist_deps%/bin/swscale-4.dll"
192 File "%cdist_deps%/bin/avcodec-58.dll"
193 File "%cdist_deps%/bin/avfilter-7.dll"
194 File "%cdist_deps%/bin/avformat-58.dll"
195 File "%cdist_deps%/bin/avutil-56.dll"
196 File "%cdist_deps%/bin/avdevice-58.dll"
197 File "%cdist_deps%/bin/postproc-55.dll"
198 File "%cdist_deps%/bin/swresample-3.dll"
199 File "%cdist_deps%/bin/swscale-5.dll"
203 File "%cdist_deps%/bin/dcp-1.0.dll"
204 File "%cdist_deps%/bin/cxml-0.dll"
205 File "%cdist_deps%/bin/sub-1.0.dll"
206 File "%cdist_deps%/bin/ffprobe.exe"
207 File "%cdist_deps%/src/openssl/apps/openssl.exe"
210 if windows_version == 'xp':
211 print('File "%cdist_deps%/bin/libopenjpeg-1.dll"', file=f)
213 print('File "%cdist_deps%/bin/libopenjp2.dll"', file=f)
216 print('File "%resources%/gdb_script"', file=f)
217 print('File "%resources%/dcpomatic2_debug.bat"', file=f)
218 print('File "%resources%/dcpomatic2_batch_debug.bat"', file=f)
219 print('File "%resources%/dcpomatic2_kdm_debug.bat"', file=f)
220 print('File "%resources%/dcpomatic2_player_debug.bat"', file=f)
222 print('File "%resources%/dcpomatic2_disk_debug.bat"', file=f)
223 print('File "%mingw%/bin/gdb.exe"', file=f)
225 print('File "%binaries%/src/wx/dcpomatic2-wx.dll"', file=f)
226 print('File "%binaries%/src/lib/dcpomatic2.dll"', file=f)
229 SetOutPath "$INSTDIR\\bin"
231 SetOutPath "$INSTDIR\\locale\\fr\\LC_MESSAGES"
232 File "%binaries%/src/lib/mo/fr_FR/libdcpomatic2.mo"
233 File "%binaries%/src/wx/mo/fr_FR/libdcpomatic2-wx.mo"
234 File "%binaries%/src/tools/mo/fr_FR/dcpomatic2.mo"
235 File "%static_deps%/share/locale/fr/LC_MESSAGES/wxstd.mo"
236 SetOutPath "$INSTDIR\\locale\\it\\LC_MESSAGES"
237 File "%binaries%/src/lib/mo/it_IT/libdcpomatic2.mo"
238 File "%binaries%/src/wx/mo/it_IT/libdcpomatic2-wx.mo"
239 File "%binaries%/src/tools/mo/it_IT/dcpomatic2.mo"
240 File "%static_deps%/share/locale/it/LC_MESSAGES/wxstd.mo"
241 SetOutPath "$INSTDIR\\locale\\es\\LC_MESSAGES"
242 File "%binaries%/src/lib/mo/es_ES/libdcpomatic2.mo"
243 File "%binaries%/src/wx/mo/es_ES/libdcpomatic2-wx.mo"
244 File "%binaries%/src/tools/mo/es_ES/dcpomatic2.mo"
245 File "%static_deps%/share/locale/es/LC_MESSAGES/wxstd.mo"
246 SetOutPath "$INSTDIR\\locale\\sv\\LC_MESSAGES"
247 File "%binaries%/src/lib/mo/sv_SE/libdcpomatic2.mo"
248 File "%binaries%/src/wx/mo/sv_SE/libdcpomatic2-wx.mo"
249 File "%binaries%/src/tools/mo/sv_SE/dcpomatic2.mo"
250 File "%static_deps%/share/locale/sv/LC_MESSAGES/wxstd.mo"
251 SetOutPath "$INSTDIR\\locale\\de\\LC_MESSAGES"
252 File "%binaries%/src/lib/mo/de_DE/libdcpomatic2.mo"
253 File "%binaries%/src/wx/mo/de_DE/libdcpomatic2-wx.mo"
254 File "%binaries%/src/tools/mo/de_DE/dcpomatic2.mo"
255 File "%static_deps%/share/locale/de/LC_MESSAGES/wxstd.mo"
256 SetOutPath "$INSTDIR\\locale\\nl\\LC_MESSAGES"
257 File "%binaries%/src/lib/mo/nl_NL/libdcpomatic2.mo"
258 File "%binaries%/src/wx/mo/nl_NL/libdcpomatic2-wx.mo"
259 File "%binaries%/src/tools/mo/nl_NL/dcpomatic2.mo"
260 File "%static_deps%/share/locale/nl/LC_MESSAGES/wxstd.mo"
261 SetOutPath "$INSTDIR\\locale\\ru\\LC_MESSAGES"
262 File "%binaries%/src/lib/mo/ru_RU/libdcpomatic2.mo"
263 File "%binaries%/src/wx/mo/ru_RU/libdcpomatic2-wx.mo"
264 File "%binaries%/src/tools/mo/ru_RU/dcpomatic2.mo"
265 File "%static_deps%/share/locale/ru/LC_MESSAGES/wxstd.mo"
266 SetOutPath "$INSTDIR\\locale\\pl\\LC_MESSAGES"
267 File "%binaries%/src/lib/mo/pl_PL/libdcpomatic2.mo"
268 File "%binaries%/src/wx/mo/pl_PL/libdcpomatic2-wx.mo"
269 File "%binaries%/src/tools/mo/pl_PL/dcpomatic2.mo"
270 File "%static_deps%/share/locale/pl/LC_MESSAGES/wxstd.mo"
271 SetOutPath "$INSTDIR\\locale\\da\\LC_MESSAGES"
272 File "%binaries%/src/lib/mo/da_DK/libdcpomatic2.mo"
273 File "%binaries%/src/wx/mo/da_DK/libdcpomatic2-wx.mo"
274 File "%binaries%/src/tools/mo/da_DK/dcpomatic2.mo"
275 File "%static_deps%/share/locale/da/LC_MESSAGES/wxstd.mo"
276 SetOutPath "$INSTDIR\\locale\\pt_PT\\LC_MESSAGES"
277 File "%binaries%/src/lib/mo/pt_PT/libdcpomatic2.mo"
278 File "%binaries%/src/wx/mo/pt_PT/libdcpomatic2-wx.mo"
279 File "%binaries%/src/tools/mo/pt_PT/dcpomatic2.mo"
280 SetOutPath "$INSTDIR\\locale\\pt_BR\\LC_MESSAGES"
281 File "%binaries%/src/lib/mo/pt_BR/libdcpomatic2.mo"
282 File "%binaries%/src/wx/mo/pt_BR/libdcpomatic2-wx.mo"
283 File "%binaries%/src/tools/mo/pt_BR/dcpomatic2.mo"
284 SetOutPath "$INSTDIR\\locale\\sk\\LC_MESSAGES"
285 File "%binaries%/src/lib/mo/sk_SK/libdcpomatic2.mo"
286 File "%binaries%/src/wx/mo/sk_SK/libdcpomatic2-wx.mo"
287 File "%binaries%/src/tools/mo/sk_SK/dcpomatic2.mo"
288 SetOutPath "$INSTDIR\\locale\\cs\\LC_MESSAGES"
289 File "%binaries%/src/lib/mo/cs_CZ/libdcpomatic2.mo"
290 File "%binaries%/src/wx/mo/cs_CZ/libdcpomatic2-wx.mo"
291 File "%binaries%/src/tools/mo/cs_CZ/dcpomatic2.mo"
292 File "%static_deps%/share/locale/cs/LC_MESSAGES/wxstd.mo"
293 SetOutPath "$INSTDIR\\locale\\uk\\LC_MESSAGES"
294 File "%binaries%/src/lib/mo/uk_UA/libdcpomatic2.mo"
295 File "%binaries%/src/wx/mo/uk_UA/libdcpomatic2-wx.mo"
296 File "%binaries%/src/tools/mo/uk_UA/dcpomatic2.mo"
297 SetOutPath "$INSTDIR\\locale\\zh_cn\\LC_MESSAGES"
298 File "%binaries%/src/lib/mo/zh_CN/libdcpomatic2.mo"
299 File "%binaries%/src/wx/mo/zh_CN/libdcpomatic2-wx.mo"
300 File "%binaries%/src/tools/mo/zh_CN/dcpomatic2.mo"
301 SetOutPath "$INSTDIR\\locale\\tr_tr\\LC_MESSAGES"
302 File "%binaries%/src/lib/mo/tr_TR/libdcpomatic2.mo"
303 File "%binaries%/src/wx/mo/tr_TR/libdcpomatic2-wx.mo"
304 File "%binaries%/src/tools/mo/tr_TR/dcpomatic2.mo"
306 SetOutPath "$INSTDIR"
307 File "%resources%/../../fonts/LiberationSans-Regular.ttf"
308 File "%resources%/../../fonts/LiberationSans-Italic.ttf"
309 File "%resources%/../../fonts/LiberationSans-Bold.ttf"
310 File /oname=fonts.conf "%resources%/../../fonts/fonts.conf.windows"
311 File "%graphics%/splash.png"
312 File "%graphics%/zoom.png"
313 File "%graphics%/zoom_all.png"
314 File "%graphics%/select.png"
315 File "%graphics%/snap.png"
316 File "%graphics%/sequence.png"
317 File "%graphics%/me.jpg"
318 File "%graphics%/tick.png"
319 File "%graphics%/no_tick.png"
320 File "%graphics%/link.png"
321 SetOutPath "$INSTDIR\\xsd"
322 File "%cdist_deps%/share/libdcp/xsd/SMPTE-429-7-2006-CPL.xsd"
323 File "%cdist_deps%/share/libdcp/xsd/SMPTE-429-8-2006-PKL.xsd"
324 File "%cdist_deps%/share/libdcp/xsd/SMPTE-429-9-2007-AM.xsd"
325 File "%cdist_deps%/share/libdcp/xsd/xmldsig-core-schema.xsd"
326 File "%cdist_deps%/share/libdcp/xsd/XMLSchema.dtd"
327 File "%cdist_deps%/share/libdcp/xsd/XMLSchema.xsd"
328 File "%cdist_deps%/share/libdcp/xsd/xml.xsd"
333 print('Section "DCP-o-matic 2 debug" SEC_MASTER', file=f)
335 print('Section "DCP-o-matic 2" SEC_MASTER', file=f)
337 print('SetOutPath "$INSTDIR\\bin"', file=f)
340 print('CreateDirectory "$SMPROGRAMS\\DCP-o-matic 2 debug"', file=f)
342 print('CreateDirectory "$SMPROGRAMS\\DCP-o-matic 2"', file=f)
344 if variant != 'swaroop-theater':
346 File "%binaries%/src/tools/dcpomatic2.exe"
347 File "%binaries%/src/tools/dcpomatic2_batch.exe"
348 File "%binaries%/src/tools/dcpomatic2_cli.exe"
349 File "%binaries%/src/tools/dcpomatic2_create.exe"
350 File "%binaries%/src/tools/dcpomatic2_kdm.exe"
351 File "%binaries%/src/tools/dcpomatic2_kdm_cli.exe"
356 File "%binaries%/src/tools/dcpomatic2_disk.exe"
357 File "%binaries%/src/tools/dcpomatic2_disk_writer.exe"
358 File "%resources%/dcpomatic2_disk_writer.exe.manifest"
362 File "%binaries%/src/tools/dcpomatic2_player.exe"
363 File "%binaries%/src/tools/dcpomatic2_playlist.exe"
367 if variant != "swaroop-theater":
368 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 debug\\DCP-o-matic 2 debug.lnk" "$INSTDIR\\bin\\dcpomatic2_debug.bat"', file=f)
369 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 debug\\DCP-o-matic 2 Batch Converter debug.lnk" "$INSTDIR\\bin\\dcpomatic2_batch_debug.bat" ""', file=f)
370 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 debug\\DCP-o-matic 2 KDM Creator debug.lnk" "$INSTDIR\\bin\\dcpomatic2_kdm_debug.bat" ""', file=f)
372 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 debug\\DCP-o-matic 2 Disk Writer debug.lnk" "$INSTDIR\\bin\\dcpomatic2_disk_debug.bat" ""', file=f)
373 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 debug\\Uninstall DCP-o-matic 2 debug.lnk" "$INSTDIR\\Uninstall.exe"', file=f)
374 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2 debug\\DCP-o-matic 2 Player debug.lnk" "$INSTDIR\\bin\\dcpomatic2_player_debug.bat" ""', file=f)
375 print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 debug" "DisplayName" "DCP-o-matic 2 debug (remove only)"', file=f)
376 print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 debug" "UninstallString" "$INSTDIR\\Uninstall.exe"', file=f)
378 if variant != "swaroop-theater":
379 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\DCP-o-matic 2.lnk" "$INSTDIR\\bin\\dcpomatic2.exe"', file=f)
380 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\DCP-o-matic 2 Batch Converter.lnk" "$INSTDIR\\bin\\dcpomatic2_batch.exe"', file=f)
381 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\DCP-o-matic 2 KDM Creator.lnk" "$INSTDIR\\bin\\dcpomatic2_kdm.exe"', file=f)
383 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\DCP-o-matic 2 Disk Writer.lnk" "$INSTDIR\\bin\\dcpomatic2_disk.exe"', file=f)
384 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\Uninstall DCP-o-matic 2.lnk" "$INSTDIR\\Uninstall.exe"', file=f)
385 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\DCP-o-matic 2 Player.lnk" "$INSTDIR\\bin\\dcpomatic2_player.exe"', file=f)
386 print('CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\DCP-o-matic 2 Playlist Editor.lnk" "$INSTDIR\\bin\\dcpomatic2_playlist.exe"', file=f)
387 print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic2" "DisplayName" "DCP-o-matic 2 (remove only)"', file=f)
388 print('WriteRegStr HKLM "Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic2" "UninstallString" "$INSTDIR\\Uninstall.exe"', file=f)
390 print("SectionEnd", file=f)
393 print('Section "DCP-o-matic 2 debug desktop shortcuts" SEC_MASTER_DESKTOP', file=f)
394 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 Player debug.lnk" "$INSTDIR\\bin\\dcpomatic2_player_debug.bat" ""', file=f)
395 if variant != "swaroop-theater":
396 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 debug.lnk" "$INSTDIR\\bin\\dcpomatic2_debug.bat" ""', file=f)
397 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 Batch Converter debug.lnk" "$INSTDIR\\bin\\dcpomatic2_batch_debug.bat" ""', file=f)
398 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 KDM Creator debug.lnk" "$INSTDIR\\bin\\dcpomatic2_kdm_debug.bat" ""', file=f)
400 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 Disk Writer debug.lnk" "$INSTDIR\\bin\\dcpomatic2_disk_debug.bat" ""', file=f)
402 print('Section "DCP-o-matic 2 desktop shortcuts" SEC_MASTER_DESKTOP', file=f)
403 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 Player.lnk" "$INSTDIR\\bin\\dcpomatic2_player.exe"', file=f)
404 if variant != "swaroop-theater":
405 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2.lnk" "$INSTDIR\\bin\\dcpomatic2.exe" ""', file=f)
406 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 Batch Converter.lnk" "$INSTDIR\\bin\\dcpomatic2_batch.exe"', file=f)
407 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 KDM Creator.lnk" "$INSTDIR\\bin\\dcpomatic2_kdm.exe"', file=f)
409 print('CreateShortCut "$DESKTOP\\DCP-o-matic 2 Disk Writer.lnk" "$INSTDIR\\bin\\dcpomatic2_disk.exe"', file=f)
411 print("SectionEnd", file=f)
413 if not debug and variant != "swaroop-theater":
415 Section "Encode server" SEC_SERVER
416 SetOutPath "$INSTDIR\\bin"
417 CreateDirectory "$SMPROGRAMS\\DCP-o-matic 2"
418 File "%binaries%/src/tools/dcpomatic2_server_cli.exe"
419 File "%binaries%/src/tools/dcpomatic2_server.exe"
420 CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\DCP-o-matic 2 Encode Server.lnk" "$INSTDIR\\bin\\dcpomatic2_server.exe" "" "$INSTDIR\\bin\\dcpomatic2_server.exe" 0
421 CreateShortCut "$SMPROGRAMS\\DCP-o-matic 2\\Uninstall DCP-o-matic 2.lnk" "$INSTDIR\\Uninstall.exe" "" "$INSTDIR\\Uninstall.exe" 0
426 Section "Encode server desktop shortcuts" SEC_SERVER_DESKTOP
427 CreateShortCut "$DESKTOP\\DCP-o-matic 2 Encode Server.lnk" "$INSTDIR\\bin\\dcpomatic2_server.exe" ""
431 if variant != "swaroop-theater":
433 print('LangString DESC_SEC_MASTER ${LANG_ENGLISH} "DCP-o-matic 2 debug"', file=f)
434 print('LangString DESC_SEC_MASTER_DESKTOP ${LANG_ENGLISH} "DCP-o-matic 2 debug desktop shortcuts"', file=f)
436 print('LangString DESC_SEC_MASTER ${LANG_ENGLISH} "DCP-o-matic 2"', file=f)
437 print('LangString DESC_SEC_MASTER_DESKTOP ${LANG_ENGLISH} "DCP-o-matic 2 desktop shortcuts"', file=f)
438 print('LangString DESC_SEC_SERVER ${LANG_ENGLISH} "DCP-o-matic 2 Encode Server"', file=f)
439 print('LangString DESC_SEC_SERVER_DESKTOP ${LANG_ENGLISH} "DCP-o-matic 2 Encode Server desktop shortcuts"', file=f)
442 !insertmacro MUI_FUNCTION_DESCRIPTION_BEGIN
443 !insertmacro MUI_DESCRIPTION_TEXT ${SEC_MASTER} $(DESC_SEC_MASTER)
444 !insertmacro MUI_DESCRIPTION_TEXT ${SEC_MASTER_DESKTOP} $(DESC_SEC_MASTER_DESKTOP)
445 !insertmacro MUI_DESCRIPTION_TEXT ${SEC_SERVER} $(DESC_SEC_SERVER)
446 !insertmacro MUI_DESCRIPTION_TEXT ${SEC_SERVER_DESKTOP} $(DESC_SEC_SERVER_DESKTOP)
447 !insertmacro MUI_FUNCTION_DESCRIPTION_END
449 !insertmacro MUI_PAGE_INSTFILES
450 !insertmacro MUI_PAGE_FINISH
452 !insertmacro MUI_UNPAGE_WELCOME
453 !insertmacro MUI_UNPAGE_CONFIRM
454 !insertmacro MUI_UNPAGE_INSTFILES
455 !insertmacro MUI_UNPAGE_FINISH
456 !insertmacro MUI_LANGUAGE "English"
462 RMDir /r "$INSTDIR\\*.*"
464 Delete "$DESKTOP\\DCP-o-matic 2 debug.lnk"
465 Delete "$DESKTOP\\DCP-o-matic 2 Batch Converter debug.lnk"
466 Delete "$DESKTOP\\DCP-o-matic 2 KDM Creator debug.lnk"
467 Delete "$DESKTOP\\DCP-o-matic 2 Disk Writer debug.lnk"
468 Delete "$SMPROGRAMS\\DCP-o-matic 2 debug\\*.*"
469 RmDir "$SMPROGRAMS\\DCP-o-matic 2 debug"
470 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\DCP-o-matic 2 debug"
471 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2 debug"
477 RMDir /r "$INSTDIR\\*.*"
479 Delete "$DESKTOP\\DCP-o-matic 2.lnk"
480 Delete "$DESKTOP\\DCP-o-matic 2 Batch Converter.lnk"
481 Delete "$DESKTOP\\DCP-o-matic 2 Encode Server.lnk"
482 Delete "$DESKTOP\\DCP-o-matic 2 KDM creator.lnk"
483 Delete "$DESKTOP\\DCP-o-matic 2 Disk Writer.lnk"
484 Delete "$SMPROGRAMS\\DCP-o-matic 2\\*.*"
485 RmDir "$SMPROGRAMS\\DCP-o-matic 2"
486 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\DCP-o-matic 2"
487 DeleteRegKey HKEY_LOCAL_MACHINE "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\DCP-o-matic 2"
493 write_installer(32, None, bld.env.VERSION, bld.env.DEBUG, bld.env.VARIANT, bld.env.ENABLE_DISK)
494 write_installer(64, None, bld.env.VERSION, bld.env.DEBUG, bld.env.VARIANT, bld.env.ENABLE_DISK)
495 write_installer(32, 'xp', bld.env.VERSION, bld.env.DEBUG, bld.env.VARIANT, bld.env.ENABLE_DISK)
496 write_installer(64, 'xp', bld.env.VERSION, bld.env.DEBUG, bld.env.VARIANT, bld.env.ENABLE_DISK)