36 |
|
|
37 |
; The default installation directory |
; The default installation directory |
38 |
InstallDir "$PROGRAMFILES64\LinuxSampler" |
InstallDir "$PROGRAMFILES64\LinuxSampler" |
39 |
|
!define SUBDIR_32_BIT "32" |
40 |
|
!define SUBDIR_64_BIT "64" |
41 |
|
|
42 |
!define DEFAULT_VST_DIR "$PROGRAMFILES64\Steinberg\VstPlugins" |
!define DEFAULT_VST_DIR64 "$PROGRAMFILES64\Steinberg\VstPlugins" |
43 |
|
!define DEFAULT_VST_DIR "$PROGRAMFILES\Steinberg\VstPlugins" |
44 |
|
|
45 |
; Get installation folder from registry if available |
; Get installation folder from registry if available |
46 |
InstallDirRegKey HKLM "Software\LinuxSampler" "Main Directory" |
InstallDirRegKey HKLM "Software\LinuxSampler" "Main Directory" |
92 |
Var /GLOBAL installingJSampler |
Var /GLOBAL installingJSampler |
93 |
Var /GLOBAL installingQSampler |
Var /GLOBAL installingQSampler |
94 |
Var /GLOBAL installinggigedit |
Var /GLOBAL installinggigedit |
95 |
|
Var /GLOBAL installing32BitToo |
96 |
StrCpy $installingLinuxSampler "0" |
StrCpy $installingLinuxSampler "0" |
97 |
StrCpy $installingJSampler "0" |
StrCpy $installingJSampler "0" |
98 |
StrCpy $installingQSampler "0" |
StrCpy $installingQSampler "0" |
99 |
StrCpy $installinggigedit "0" |
StrCpy $installinggigedit "0" |
100 |
|
StrCpy $installing32BitToo "0" |
101 |
FunctionEnd |
FunctionEnd |
102 |
|
|
103 |
; detects CPU capabilities, determmines which native binary type to install |
; detects CPU capabilities, determines which native binary type to install |
104 |
; and selects the appropriate windows registry view (32 bit or 64 bit) |
; and selects the appropriate windows registry view (32 bit or 64 bit) |
105 |
!macro DetectSystemType un |
!macro DetectSystemType un |
106 |
Function ${un}DetectSystemType |
Function ${un}DetectSystemType |
137 |
|
|
138 |
; Check for the presence of gtkmm, and if false, ask the user whether to |
; Check for the presence of gtkmm, and if false, ask the user whether to |
139 |
; download and install gtkmm now from the internet. |
; download and install gtkmm now from the internet. |
140 |
|
; (NOTE: this function is currently unused, since we include the gtk(mm) |
141 |
|
; DLLs with the installer ATM, this is the recommended way by the gtk |
142 |
|
; project) |
143 |
Function CheckForGtkmm |
Function CheckForGtkmm |
144 |
Var /GLOBAL gtkmmSetupFile |
Var /GLOBAL gtkmmSetupFile |
145 |
|
|
219 |
; Tries to find the location where VST plugins should be installed to |
; Tries to find the location where VST plugins should be installed to |
220 |
Function DetectVstPath |
Function DetectVstPath |
221 |
Var /GLOBAL vstPluginPath |
Var /GLOBAL vstPluginPath |
222 |
|
Var /GLOBAL vstPluginPath64 |
223 |
|
|
224 |
|
StrCmp $binType BIN_TYPE_64BIT 0 detectVst32 |
225 |
|
SetRegView 64 ; make sure we have the 64 bit registry view |
226 |
|
|
227 |
|
; ------- VST 64 bit detection ------- |
228 |
|
|
229 |
|
ClearErrors |
230 |
|
ReadRegStr $0 HKCU "Software\VST" "VSTPluginsPath" |
231 |
|
IfErrors check2ndRegistryKey64 0 |
232 |
|
StrCpy $vstPluginPath64 $0 |
233 |
|
DetailPrint "Found VST plugin (64 bit) directory in HKCU registry." |
234 |
|
Goto done64 |
235 |
|
|
236 |
|
check2ndRegistryKey64: |
237 |
|
ClearErrors |
238 |
|
ReadRegStr $0 HKLM "Software\VST" "VSTPluginsPath" |
239 |
|
IfErrors noRegistryKeyExists64 0 |
240 |
|
StrCpy $vstPluginPath64 $0 |
241 |
|
DetailPrint "Found VST plugin (64 bit) directory in HKLM registry." |
242 |
|
Goto done64 |
243 |
|
|
244 |
|
noRegistryKeyExists64: |
245 |
|
ClearErrors |
246 |
|
DetailPrint "No VST plugin directory (64 bit) defined in registry." |
247 |
|
StrCpy $vstPluginPath64 "${DEFAULT_VST_DIR64}" |
248 |
|
|
249 |
|
done64: |
250 |
|
SetRegView 32 ; make sure we have a 32 bit registry view |
251 |
|
|
252 |
|
detectVst32: ; it follows the same thing for the 32 bit registry view |
253 |
|
|
254 |
|
; ------- VST 32 bit detection ------- |
255 |
|
|
256 |
ClearErrors |
ClearErrors |
257 |
ReadRegStr $0 HKCU "Software\VST" "VSTPluginsPath" |
ReadRegStr $0 HKCU "Software\VST" "VSTPluginsPath" |
258 |
IfErrors check2ndRegistryKey 0 |
IfErrors check2ndRegistryKey 0 |
259 |
StrCpy $vstPluginPath $0 |
StrCpy $vstPluginPath $0 |
260 |
DetailPrint "Found VST plugin directory in HKCU registry." |
DetailPrint "Found VST plugin (32 bit) directory in HKCU registry." |
261 |
Goto done |
Goto done |
262 |
|
|
263 |
check2ndRegistryKey: |
check2ndRegistryKey: |
265 |
ReadRegStr $0 HKLM "Software\VST" "VSTPluginsPath" |
ReadRegStr $0 HKLM "Software\VST" "VSTPluginsPath" |
266 |
IfErrors noRegistryKeyExists 0 |
IfErrors noRegistryKeyExists 0 |
267 |
StrCpy $vstPluginPath $0 |
StrCpy $vstPluginPath $0 |
268 |
DetailPrint "Found VST plugin directory in HKLM registry." |
DetailPrint "Found VST plugin (32 bit) directory in HKLM registry." |
269 |
Goto done |
Goto done |
270 |
|
|
271 |
noRegistryKeyExists: |
noRegistryKeyExists: |
272 |
ClearErrors |
ClearErrors |
273 |
DetailPrint "No VST plugin directory defined in registry." |
DetailPrint "No VST plugin directory (32 bit) defined in registry." |
274 |
StrCpy $vstPluginPath "${DEFAULT_VST_DIR}" |
StrCpy $vstPluginPath "${DEFAULT_VST_DIR}" |
275 |
|
|
276 |
done: |
done: ; ------- summary of detection ------- |
277 |
DetailPrint "Using the following as VST plugin directory: $vstPluginPath" |
|
278 |
|
StrCmp $binType BIN_TYPE_64BIT 0 summaryVst32 |
279 |
|
SetRegView 64 ; restore 64 bit view |
280 |
|
DetailPrint "Using the following as VST (64 bit) plugin directory: $vstPluginPath64" |
281 |
|
summaryVst32: |
282 |
|
DetailPrint "Using the following as VST (32 bit) plugin directory: $vstPluginPath" |
283 |
FunctionEnd |
FunctionEnd |
284 |
|
|
285 |
;-------------------------------- |
;-------------------------------- |
297 |
DetailPrint "Installing LinuxSampler binaries ..." |
DetailPrint "Installing LinuxSampler binaries ..." |
298 |
StrCpy $installingLinuxSampler "1" |
StrCpy $installingLinuxSampler "1" |
299 |
|
|
|
; Set output path to the installation directory. |
|
|
SetOutPath $INSTDIR |
|
|
|
|
300 |
StrCmp $binType BIN_TYPE_64BIT linuxsampler64 |
StrCmp $binType BIN_TYPE_64BIT linuxsampler64 |
301 |
StrCmp $binType BIN_TYPE_686SSE linuxsampler686sse |
StrCmp $binType BIN_TYPE_686SSE linuxsampler686sse |
302 |
Goto linuxsampler686 |
Goto linuxsampler686 |
304 |
; Files to install |
; Files to install |
305 |
|
|
306 |
linuxsampler64: |
linuxsampler64: |
307 |
|
SetOutPath "$INSTDIR\${SUBDIR_64_BIT}" |
308 |
File bin\64\linuxsampler.exe |
File bin\64\linuxsampler.exe |
309 |
File bin\64\liblinuxsampler-1.dll |
File bin\64\liblinuxsampler-1.dll |
310 |
File bin\64\libsqlite3-0.dll |
File bin\64\libsqlite3-0.dll |
311 |
SetOutPath $vstPluginPath |
SetOutPath $vstPluginPath64 |
312 |
File bin\64\LinuxSampler.dll |
File /oname=LinuxSampler64.dll bin\64\LinuxSampler.dll |
313 |
Goto done |
MessageBox MB_YESNO \ |
314 |
|
"It seems you are using a 64 bit Windows system. A native 64 bit version of LinuxSampler and its VST plugin version will be installed accordingly.$\r$\n$\r$\nShall a 32 bit version of the LinuxSampler VST be installed as well?" \ |
315 |
|
IDNO done |
316 |
|
|
317 |
|
; so the other sections install their 32 bit versions as well |
318 |
|
StrCpy $installing32BitToo "1" |
319 |
|
|
320 |
linuxsampler686sse: |
linuxsampler686sse: |
321 |
|
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
322 |
File bin\686sse\linuxsampler.exe |
File bin\686sse\linuxsampler.exe |
323 |
File bin\686sse\liblinuxsampler-1.dll |
File bin\686sse\liblinuxsampler-1.dll |
324 |
File bin\686\libsqlite3-0.dll |
File bin\686\libsqlite3-0.dll |
325 |
SetOutPath $vstPluginPath |
SetOutPath $vstPluginPath |
326 |
File bin\686sse\LinuxSampler.dll |
File /oname=LinuxSampler32.dll bin\686sse\LinuxSampler.dll |
327 |
Goto done |
Goto done |
328 |
|
|
329 |
linuxsampler686: |
linuxsampler686: |
330 |
|
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
331 |
File bin\686\linuxsampler.exe |
File bin\686\linuxsampler.exe |
332 |
File bin\686\liblinuxsampler-1.dll |
File bin\686\liblinuxsampler-1.dll |
333 |
File bin\686\libsqlite3-0.dll |
File bin\686\libsqlite3-0.dll |
334 |
SetOutPath $vstPluginPath |
SetOutPath $vstPluginPath |
335 |
File bin\686\LinuxSampler.dll |
File /oname=LinuxSampler32.dll bin\686\LinuxSampler.dll |
336 |
Goto done |
Goto done |
337 |
|
|
338 |
done: |
done: |
374 |
; installer, so no check and no download necessary ATM) |
; installer, so no check and no download necessary ATM) |
375 |
;Call CheckForGtkmm |
;Call CheckForGtkmm |
376 |
|
|
|
; Set output path to the installation directory. |
|
|
SetOutPath $INSTDIR |
|
|
|
|
377 |
StrCmp $binType BIN_TYPE_64BIT gigedit64 |
StrCmp $binType BIN_TYPE_64BIT gigedit64 |
378 |
; I think we don't need a SSE optimized 32 bit binary for gigedit, one 64bit and one simple 32 bit version should be sufficient |
; I think we don't need a SSE optimized 32 bit binary for gigedit, one 64bit and one simple 32 bit version should be sufficient |
379 |
;StrCmp $binType BIN_TYPE_686SSE gigedit686sse |
;StrCmp $binType BIN_TYPE_686SSE gigedit686sse |
382 |
; Files to install |
; Files to install |
383 |
|
|
384 |
gigedit64: |
gigedit64: |
385 |
|
SetOutPath "$INSTDIR\${SUBDIR_64_BIT}" |
386 |
File bin\64\gigedit.exe |
File bin\64\gigedit.exe |
387 |
File bin\64\libgigedit-1.dll |
File bin\64\libgigedit-1.dll |
388 |
SetOutPath "$INSTDIR\plugins" |
SetOutPath "$INSTDIR\${SUBDIR_64_BIT}\plugins" |
389 |
File bin\64\plugins\libgigeditlinuxsamplerplugin-1.dll |
File bin\64\plugins\libgigeditlinuxsamplerplugin-1.dll |
390 |
SetOutPath $INSTDIR |
SetOutPath "$INSTDIR\${SUBDIR_64_BIT}" |
391 |
File bin\64\libatk-1.0-0.dll |
File bin\64\libatk-1.0-0.dll |
392 |
File bin\64\libatkmm-1.6-1.dll |
File bin\64\libatkmm-1.6-1.dll |
393 |
File bin\64\libcairo-2.dll |
File bin\64\libcairo-2.dll |
414 |
File bin\64\libsigc-2.0-0.dll |
File bin\64\libsigc-2.0-0.dll |
415 |
File bin\64\libtiff.dll |
File bin\64\libtiff.dll |
416 |
File bin\64\zlib1.dll |
File bin\64\zlib1.dll |
417 |
SetOutPath $INSTDIR\etc\gtk-2.0 |
SetOutPath $INSTDIR\${SUBDIR_64_BIT}\etc\gtk-2.0 |
418 |
File bin\64\etc\gtk-2.0\gtkrc |
File bin\64\etc\gtk-2.0\gtkrc |
419 |
SetOutPath $INSTDIR\lib\gtk-2.0\2.10.0\engines |
SetOutPath $INSTDIR\${SUBDIR_64_BIT}\lib\gtk-2.0\2.10.0\engines |
420 |
File bin\64\lib\gtk-2.0\2.10.0\engines\libwimp.dll |
File bin\64\lib\gtk-2.0\2.10.0\engines\libwimp.dll |
421 |
SetOutPath $INSTDIR\share\locale\de\LC_MESSAGES |
SetOutPath $INSTDIR\${SUBDIR_64_BIT}\share\locale\de\LC_MESSAGES |
422 |
File bin\64\share\locale\de\LC_MESSAGES\gigedit.mo |
File bin\64\share\locale\de\LC_MESSAGES\gigedit.mo |
423 |
File bin\64\share\locale\de\LC_MESSAGES\gtk20.mo |
File bin\64\share\locale\de\LC_MESSAGES\gtk20.mo |
424 |
SetOutPath $INSTDIR\share\locale\sv\LC_MESSAGES |
SetOutPath $INSTDIR\${SUBDIR_64_BIT}\share\locale\sv\LC_MESSAGES |
425 |
File bin\64\share\locale\sv\LC_MESSAGES\gigedit.mo |
File bin\64\share\locale\sv\LC_MESSAGES\gigedit.mo |
426 |
File bin\64\share\locale\sv\LC_MESSAGES\gtk20.mo |
File bin\64\share\locale\sv\LC_MESSAGES\gtk20.mo |
427 |
SetOutPath $INSTDIR\share\themes\MS-Windows\gtk-2.0 |
SetOutPath $INSTDIR\${SUBDIR_64_BIT}\share\themes\MS-Windows\gtk-2.0 |
428 |
File bin\64\share\themes\MS-Windows\gtk-2.0\gtkrc |
File bin\64\share\themes\MS-Windows\gtk-2.0\gtkrc |
429 |
Goto done |
|
430 |
|
; shall we install the 32 bit version as well? |
431 |
|
StrCmp $installing32BitToo "1" gigedit686 done |
432 |
|
|
433 |
gigedit686: |
gigedit686: |
434 |
|
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
435 |
File bin\686\gigedit.exe |
File bin\686\gigedit.exe |
436 |
File bin\686\libgigedit-1.dll |
File bin\686\libgigedit-1.dll |
437 |
SetOutPath "$INSTDIR\plugins" |
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}\plugins" |
438 |
File bin\686\plugins\libgigeditlinuxsamplerplugin-1.dll |
File bin\686\plugins\libgigeditlinuxsamplerplugin-1.dll |
439 |
SetOutPath $INSTDIR |
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
440 |
File bin\686\intl.dll |
File bin\686\intl.dll |
441 |
File bin\686\jpeg62.dll |
File bin\686\jpeg62.dll |
442 |
File bin\686\libatk-1.0-0.dll |
File bin\686\libatk-1.0-0.dll |
463 |
File bin\686\libsigc-2.0-0.dll |
File bin\686\libsigc-2.0-0.dll |
464 |
File bin\686\libtiff3.dll |
File bin\686\libtiff3.dll |
465 |
File bin\686\zlib1.dll |
File bin\686\zlib1.dll |
466 |
SetOutPath $INSTDIR\etc\gtk-2.0 |
SetOutPath $INSTDIR\${SUBDIR_32_BIT}\etc\gtk-2.0 |
467 |
File bin\686\etc\gtk-2.0\gdk-pixbuf.loaders |
File bin\686\etc\gtk-2.0\gdk-pixbuf.loaders |
468 |
File bin\686\etc\gtk-2.0\gtkrc |
File bin\686\etc\gtk-2.0\gtkrc |
469 |
SetOutPath $INSTDIR\lib\gtk-2.0\2.10.0\engines |
SetOutPath $INSTDIR\${SUBDIR_32_BIT}\lib\gtk-2.0\2.10.0\engines |
470 |
File bin\686\lib\gtk-2.0\2.10.0\engines\libwimp.dll |
File bin\686\lib\gtk-2.0\2.10.0\engines\libwimp.dll |
471 |
SetOutPath $INSTDIR\lib\gtk-2.0\2.10.0\loaders |
SetOutPath $INSTDIR\${SUBDIR_32_BIT}\lib\gtk-2.0\2.10.0\loaders |
472 |
File bin\686\lib\gtk-2.0\2.10.0\loaders\libpixbufloader-ani.dll |
File bin\686\lib\gtk-2.0\2.10.0\loaders\libpixbufloader-ani.dll |
473 |
File bin\686\lib\gtk-2.0\2.10.0\loaders\libpixbufloader-bmp.dll |
File bin\686\lib\gtk-2.0\2.10.0\loaders\libpixbufloader-bmp.dll |
474 |
File bin\686\lib\gtk-2.0\2.10.0\loaders\libpixbufloader-gif.dll |
File bin\686\lib\gtk-2.0\2.10.0\loaders\libpixbufloader-gif.dll |
484 |
File bin\686\lib\gtk-2.0\2.10.0\loaders\libpixbufloader-wbmp.dll |
File bin\686\lib\gtk-2.0\2.10.0\loaders\libpixbufloader-wbmp.dll |
485 |
File bin\686\lib\gtk-2.0\2.10.0\loaders\libpixbufloader-xbm.dll |
File bin\686\lib\gtk-2.0\2.10.0\loaders\libpixbufloader-xbm.dll |
486 |
File bin\686\lib\gtk-2.0\2.10.0\loaders\libpixbufloader-xpm.dll |
File bin\686\lib\gtk-2.0\2.10.0\loaders\libpixbufloader-xpm.dll |
487 |
SetOutPath $INSTDIR\share\locale\de\LC_MESSAGES |
SetOutPath $INSTDIR\${SUBDIR_32_BIT}\share\locale\de\LC_MESSAGES |
488 |
File bin\686\share\locale\de\LC_MESSAGES\gigedit.mo |
File bin\686\share\locale\de\LC_MESSAGES\gigedit.mo |
489 |
File bin\686\share\locale\de\LC_MESSAGES\gtk20.mo |
File bin\686\share\locale\de\LC_MESSAGES\gtk20.mo |
490 |
SetOutPath $INSTDIR\share\locale\sv\LC_MESSAGES |
SetOutPath $INSTDIR\${SUBDIR_32_BIT}\share\locale\sv\LC_MESSAGES |
491 |
File bin\686\share\locale\sv\LC_MESSAGES\gigedit.mo |
File bin\686\share\locale\sv\LC_MESSAGES\gigedit.mo |
492 |
File bin\686\share\locale\sv\LC_MESSAGES\gtk20.mo |
File bin\686\share\locale\sv\LC_MESSAGES\gtk20.mo |
493 |
SetOutPath $INSTDIR\share\themes\MS-Windows\gtk-2.0 |
SetOutPath $INSTDIR\${SUBDIR_32_BIT}\share\themes\MS-Windows\gtk-2.0 |
494 |
File bin\686\share\themes\MS-Windows\gtk-2.0\gtkrc |
File bin\686\share\themes\MS-Windows\gtk-2.0\gtkrc |
495 |
Goto done |
Goto done |
496 |
|
|
501 |
DetailPrint "Installing libgig binaries ..." |
DetailPrint "Installing libgig binaries ..." |
502 |
; We make this a mandatory component |
; We make this a mandatory component |
503 |
SectionIn RO |
SectionIn RO |
|
; Set output path to the installation directory. |
|
|
SetOutPath $INSTDIR |
|
504 |
|
|
505 |
StrCmp $binType BIN_TYPE_64BIT libgig64 |
StrCmp $binType BIN_TYPE_64BIT libgig64 |
506 |
StrCmp $binType BIN_TYPE_686SSE libgig686sse |
StrCmp $binType BIN_TYPE_686SSE libgig686sse |
509 |
; Files to install |
; Files to install |
510 |
|
|
511 |
libgig64: |
libgig64: |
512 |
|
SetOutPath "$INSTDIR\${SUBDIR_64_BIT}" |
513 |
File bin\64\libgig-6.dll |
File bin\64\libgig-6.dll |
514 |
File bin\64\rifftree.exe |
File bin\64\rifftree.exe |
515 |
File bin\64\dlsdump.exe |
File bin\64\dlsdump.exe |
517 |
File bin\64\gigextract.exe |
File bin\64\gigextract.exe |
518 |
; special dependency for the 64 bit version |
; special dependency for the 64 bit version |
519 |
File bin\64\libgcc_s_sjlj-1.dll |
File bin\64\libgcc_s_sjlj-1.dll |
520 |
Goto done |
|
521 |
|
; shall we install the 32 bit version as well? |
522 |
|
StrCmp $installing32BitToo "1" libgig686sse done |
523 |
|
|
524 |
libgig686sse: |
libgig686sse: |
525 |
|
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
526 |
File bin\686sse\libgig-6.dll |
File bin\686sse\libgig-6.dll |
527 |
File bin\686sse\rifftree.exe |
File bin\686sse\rifftree.exe |
528 |
File bin\686sse\dlsdump.exe |
File bin\686sse\dlsdump.exe |
531 |
Goto done |
Goto done |
532 |
|
|
533 |
libgig686: |
libgig686: |
534 |
|
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
535 |
File bin\686\libgig-6.dll |
File bin\686\libgig-6.dll |
536 |
File bin\686\rifftree.exe |
File bin\686\rifftree.exe |
537 |
File bin\686\dlsdump.exe |
File bin\686\dlsdump.exe |
546 |
|
|
547 |
; Add LinuxSampler and friends to the system's PATH variable |
; Add LinuxSampler and friends to the system's PATH variable |
548 |
${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR" |
${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR" |
549 |
|
${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR\${SUBDIR_64_BIT}" |
550 |
|
${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR\${SUBDIR_32_BIT}" |
551 |
|
|
552 |
; Write the uninstall keys for Windows |
; Write the uninstall keys for Windows |
553 |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler" "DisplayName" "LinuxSampler ${RELEASE_DATE}" |
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler" "DisplayName" "LinuxSampler ${RELEASE_DATE}" |
558 |
|
|
559 |
; Store installation folders |
; Store installation folders |
560 |
WriteRegStr HKLM "Software\LinuxSampler" "Main Directory" $INSTDIR |
WriteRegStr HKLM "Software\LinuxSampler" "Main Directory" $INSTDIR |
561 |
WriteRegStr HKLM "Software\LinuxSampler" "VST Directory" $vstPluginPath |
StrCmp $binType BIN_TYPE_64BIT 0 +3 |
562 |
|
WriteRegStr HKLM "Software\LinuxSampler" "VST 64 Directory" $vstPluginPath64 |
563 |
|
StrCmp $installing32BitToo "1" 0 +2 |
564 |
|
WriteRegStr HKLM "Software\LinuxSampler" "VST 32 Directory" $vstPluginPath |
565 |
|
|
566 |
; Just for info, store the release date as well |
; Just for info, store the release date as well |
567 |
WriteRegStr HKLM "Software\LinuxSampler" "Release Date" ${RELEASE_DATE} |
WriteRegStr HKLM "Software\LinuxSampler" "Release Date" ${RELEASE_DATE} |
571 |
DetailPrint "Installing libsndfile binaries ..." |
DetailPrint "Installing libsndfile binaries ..." |
572 |
; We make this a mandatory component |
; We make this a mandatory component |
573 |
SectionIn RO |
SectionIn RO |
|
; Set output path to the installation directory. |
|
|
SetOutPath $INSTDIR |
|
574 |
|
|
575 |
StrCmp $binType BIN_TYPE_64BIT libsndfile64 |
StrCmp $binType BIN_TYPE_64BIT libsndfile64 |
576 |
; I think we don't need a SSE optimized 32 bit binary for libsndfile, one 64bit and one simple 32 bit DLL should be sufficient |
; I think we don't need a SSE optimized 32 bit binary for libsndfile, one 64bit and one simple 32 bit DLL should be sufficient |
580 |
; Files to install |
; Files to install |
581 |
|
|
582 |
libsndfile64: |
libsndfile64: |
583 |
|
SetOutPath "$INSTDIR\${SUBDIR_64_BIT}" |
584 |
File bin\64\libsndfile-1.dll |
File bin\64\libsndfile-1.dll |
585 |
Goto done |
|
586 |
|
; shall we install the 32 bit version as well? |
587 |
|
StrCmp $installing32BitToo "1" libsndfile686 done |
588 |
|
|
589 |
libsndfile686: |
libsndfile686: |
590 |
|
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
591 |
File bin\686\libsndfile-1.dll |
File bin\686\libsndfile-1.dll |
592 |
Goto done |
Goto done |
593 |
|
|
596 |
|
|
597 |
Section "Start Menu Shortcuts" SecShortcuts |
Section "Start Menu Shortcuts" SecShortcuts |
598 |
Var /GLOBAL javawbin |
Var /GLOBAL javawbin |
599 |
|
Var /GLOBAL samplerDir |
600 |
|
|
601 |
|
StrCmp $binType BIN_TYPE_64BIT 0 +3 |
602 |
|
StrCpy $samplerDir "$INSTDIR\${SUBDIR_64_BIT}" |
603 |
|
Goto +2 |
604 |
|
StrCpy $samplerDir "$INSTDIR\${SUBDIR_32_BIT}" |
605 |
|
|
606 |
; Switch system variables to 'all users', to ensure we create the start |
; Switch system variables to 'all users', to ensure we create the start |
607 |
; menu shortcuts for all users and not just for the current user. |
; menu shortcuts for all users and not just for the current user. |
619 |
|
|
620 |
CreateDirectory "$SMPROGRAMS\LinuxSampler" |
CreateDirectory "$SMPROGRAMS\LinuxSampler" |
621 |
|
|
622 |
|
SetOutPath $INSTDIR |
623 |
CreateShortCut "$SMPROGRAMS\LinuxSampler\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 |
CreateShortCut "$SMPROGRAMS\LinuxSampler\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0 |
624 |
|
|
625 |
StrCmp $installingLinuxSampler '1' 0 +2 |
StrCmp $installingLinuxSampler '1' 0 +3 |
626 |
CreateShortCut "$SMPROGRAMS\LinuxSampler\LinuxSampler 0.5.1.12cvs (stand alone backend).lnk" "$INSTDIR\linuxsampler.exe" "" "$INSTDIR\linuxsampler.exe" 0 |
SetOutPath $samplerDir |
627 |
|
CreateShortCut "$SMPROGRAMS\LinuxSampler\LinuxSampler 0.5.1.12cvs (stand alone backend).lnk" "$samplerDir\linuxsampler.exe" "" "$samplerDir\linuxsampler.exe" 0 |
628 |
|
|
629 |
StrCmp $installingJSampler '1' 0 +2 |
StrCmp $installingJSampler '1' 0 +3 |
630 |
|
SetOutPath $INSTDIR |
631 |
CreateShortCut '$SMPROGRAMS\LinuxSampler\JSampler Fantasia 0.8a-cvs8 (frontend).lnk' '$javawbin' '-jar "$INSTDIR\Fantasia-0.8a-cvs8.jar"' '$INSTDIR\jsampler.ico' 0 |
CreateShortCut '$SMPROGRAMS\LinuxSampler\JSampler Fantasia 0.8a-cvs8 (frontend).lnk' '$javawbin' '-jar "$INSTDIR\Fantasia-0.8a-cvs8.jar"' '$INSTDIR\jsampler.ico' 0 |
632 |
|
|
633 |
StrCmp $installingQSampler '1' 0 +2 |
StrCmp $installingQSampler '1' 0 +3 |
634 |
|
SetOutPath $INSTDIR |
635 |
CreateShortCut "$SMPROGRAMS\LinuxSampler\QSampler 0.2.1.26 (frontend).lnk" "$INSTDIR\qsampler.exe" "" "$INSTDIR\qsampler.ico" 0 |
CreateShortCut "$SMPROGRAMS\LinuxSampler\QSampler 0.2.1.26 (frontend).lnk" "$INSTDIR\qsampler.exe" "" "$INSTDIR\qsampler.ico" 0 |
636 |
|
|
637 |
StrCmp $installinggigedit '1' 0 +2 |
StrCmp $installinggigedit '1' 0 +3 |
638 |
CreateShortCut "$SMPROGRAMS\LinuxSampler\gigedit 0.1.1.x cvs2009-05-10 (stand alone).lnk" "$INSTDIR\gigedit.exe" "" "$INSTDIR\gigedit.exe" 0 |
SetOutPath $samplerDir |
639 |
|
CreateShortCut "$SMPROGRAMS\LinuxSampler\gigedit 0.1.1.x cvs2009-05-10 (stand alone).lnk" "$samplerDir\gigedit.exe" "" "$samplerDir\gigedit.exe" 0 |
640 |
SectionEnd |
SectionEnd |
641 |
|
|
642 |
;-------------------------------- |
;-------------------------------- |
644 |
; Uninstaller |
; Uninstaller |
645 |
|
|
646 |
Section "Uninstall" |
Section "Uninstall" |
647 |
Var /GLOBAL vstdir |
Var /GLOBAL vstdir32 |
648 |
|
Var /GLOBAL vstdir64 |
649 |
|
|
650 |
Call un.DetectSystemType |
Call un.DetectSystemType |
651 |
|
|
652 |
DetailPrint "Removing LinuxSampler directory from PATH variable ..." |
DetailPrint "Removing LinuxSampler directories from PATH variable ..." |
653 |
${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR" |
${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR" |
654 |
|
${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR\${SUBDIR_32_BIT}" |
655 |
|
${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR\${SUBDIR_64_BIT}" |
656 |
|
|
657 |
|
StrCmp $binType BIN_TYPE_64BIT 0 uninstallVst32 |
658 |
|
DetailPrint "Searching for VST plugin (64 bit) ..." |
659 |
|
ClearErrors |
660 |
|
ReadRegStr $0 HKLM "Software\LinuxSampler" "VST 64 Directory" |
661 |
|
IfErrors uninstallVst32 0 |
662 |
|
StrCpy $vstdir64 $0 |
663 |
|
DetailPrint "Removing VST plugin (64 bit) from: $vstdir64 ..." |
664 |
|
Delete "$vstdir64\LinuxSampler64.dll" |
665 |
|
|
666 |
DetailPrint "Searching for VST plugin ..." |
uninstallVst32: |
667 |
|
|
668 |
|
DetailPrint "Searching for VST plugin (32 bit) ..." |
669 |
ClearErrors |
ClearErrors |
670 |
ReadRegStr $0 HKLM "Software\LinuxSampler" "VST Directory" |
ReadRegStr $0 HKLM "Software\LinuxSampler" "VST 32 Directory" |
671 |
IfErrors usedefaultvstdir 0 |
IfErrors uninstallVstDone 0 |
672 |
StrCpy $vstdir $0 |
StrCpy $vstdir32 $0 |
673 |
DetailPrint "VST plugin location found in registry." |
DetailPrint "Removing VST plugin (32 bit) from: $vstdir32 ..." |
674 |
Goto vstdirDetected |
Delete "$vstdir32\LinuxSampler32.dll" |
675 |
usedefaultvstdir: |
|
676 |
DetailPrint "WRN: No VST plugin location found in registry, trying default location." |
uninstallVstDone: |
677 |
ClearErrors |
ClearErrors |
|
StrCpy $vstdir "${DEFAULT_VST_DIR}" |
|
|
vstdirDetected: |
|
678 |
|
|
679 |
DetailPrint "Removing registry keys ..." |
DetailPrint "Removing registry keys ..." |
680 |
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler" |
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler" |
688 |
DetailPrint "Removing shortcuts (if any) from: $SMPROGRAMS ..." |
DetailPrint "Removing shortcuts (if any) from: $SMPROGRAMS ..." |
689 |
Delete "$SMPROGRAMS\LinuxSampler\*.*" |
Delete "$SMPROGRAMS\LinuxSampler\*.*" |
690 |
|
|
|
DetailPrint "Removing VST plugin from: $vstdir ..." |
|
|
Delete "$vstdir\LinuxSampler.dll" |
|
|
|
|
691 |
DetailPrint "Removing directories used ..." |
DetailPrint "Removing directories used ..." |
692 |
RMDir /r "$SMPROGRAMS\LinuxSampler" |
RMDir /r "$SMPROGRAMS\LinuxSampler" |
693 |
RMDir /r "$INSTDIR" |
RMDir /r "$INSTDIR" |