21 |
!include "MUI.nsh" |
!include "MUI.nsh" |
22 |
!include "EnvVarUpdate.nsh" |
!include "EnvVarUpdate.nsh" |
23 |
|
|
24 |
!define RELEASE_DATE "20090623" |
!define RELEASE_DATE "20090803" |
25 |
|
|
26 |
; The name of the installer |
; The name of the installer |
27 |
Name "LinuxSampler (${RELEASE_DATE})" |
Name "LinuxSampler (${RELEASE_DATE})" |
100 |
StrCpy $installing32BitToo "0" |
StrCpy $installing32BitToo "0" |
101 |
FunctionEnd |
FunctionEnd |
102 |
|
|
103 |
|
!macro CreateInternetShortcut FILENAME URL ICONFILE ICONINDEX |
104 |
|
WriteINIStr "${FILENAME}.url" "InternetShortcut" "URL" "${URL}" |
105 |
|
WriteINIStr "${FILENAME}.url" "InternetShortcut" "IconFile" "${ICONFILE}" |
106 |
|
WriteINIStr "${FILENAME}.url" "InternetShortcut" "IconIndex" "${ICONINDEX}" |
107 |
|
!macroend |
108 |
|
|
109 |
; detects CPU capabilities, determines which native binary type to install |
; detects CPU capabilities, determines which native binary type to install |
110 |
; and selects the appropriate windows registry view (32 bit or 64 bit) |
; and selects the appropriate windows registry view (32 bit or 64 bit) |
111 |
!macro DetectSystemType un |
!macro DetectSystemType un |
299 |
;-------------------------------- |
;-------------------------------- |
300 |
|
|
301 |
; The stuff to install |
; The stuff to install |
302 |
Section "LinuxSampler 0.5.1.12cvs" SecLinuxSampler |
Section "LinuxSampler 1.0.0" SecLinuxSampler |
303 |
DetailPrint "Installing LinuxSampler binaries ..." |
DetailPrint "Installing LinuxSampler binaries ..." |
304 |
StrCpy $installingLinuxSampler "1" |
StrCpy $installingLinuxSampler "1" |
305 |
|
|
312 |
linuxsampler64: |
linuxsampler64: |
313 |
SetOutPath "$INSTDIR\${SUBDIR_64_BIT}" |
SetOutPath "$INSTDIR\${SUBDIR_64_BIT}" |
314 |
File bin\64\linuxsampler.exe |
File bin\64\linuxsampler.exe |
315 |
File bin\64\liblinuxsampler-1.dll |
File bin\64\liblinuxsampler-3.dll |
316 |
File bin\64\libsqlite3-0.dll |
File bin\64\libsqlite3-0.dll |
317 |
SetOutPath $vstPluginPath64 |
SetOutPath $vstPluginPath64 |
318 |
File /oname=LinuxSampler64.dll bin\64\LinuxSampler.dll |
File /oname=LinuxSampler64.dll bin\64\LinuxSampler.dll |
326 |
linuxsampler686sse: |
linuxsampler686sse: |
327 |
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
328 |
File bin\686sse\linuxsampler.exe |
File bin\686sse\linuxsampler.exe |
329 |
File bin\686sse\liblinuxsampler-1.dll |
File bin\686sse\liblinuxsampler-3.dll |
330 |
File bin\686\libsqlite3-0.dll |
File bin\686\libsqlite3-0.dll |
331 |
SetOutPath $vstPluginPath |
SetOutPath $vstPluginPath |
332 |
File /oname=LinuxSampler32.dll bin\686sse\LinuxSampler.dll |
File /oname=LinuxSampler32.dll bin\686sse\LinuxSampler.dll |
335 |
linuxsampler686: |
linuxsampler686: |
336 |
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
337 |
File bin\686\linuxsampler.exe |
File bin\686\linuxsampler.exe |
338 |
File bin\686\liblinuxsampler-1.dll |
File bin\686\liblinuxsampler-3.dll |
339 |
File bin\686\libsqlite3-0.dll |
File bin\686\libsqlite3-0.dll |
340 |
SetOutPath $vstPluginPath |
SetOutPath $vstPluginPath |
341 |
File /oname=LinuxSampler32.dll bin\686\LinuxSampler.dll |
File /oname=LinuxSampler32.dll bin\686\LinuxSampler.dll |
344 |
done: |
done: |
345 |
SectionEnd |
SectionEnd |
346 |
|
|
347 |
Section "JSampler 'Fantasia' 0.8a-cvs8" SecJSampler |
Section "JSampler 'Fantasia' 0.9" SecJSampler |
348 |
DetailPrint "Installing JSampler binaries ..." |
DetailPrint "Installing JSampler binaries ..." |
349 |
; make sure JRE is installed |
; make sure JRE is installed |
350 |
Call DetectJRE |
Call DetectJRE |
352 |
; Set output path to the installation directory. |
; Set output path to the installation directory. |
353 |
SetOutPath $INSTDIR |
SetOutPath $INSTDIR |
354 |
; Files to install |
; Files to install |
355 |
File bin\Fantasia-0.8a-cvs8.jar |
File bin\Fantasia-0.9.jar |
356 |
File jsampler.ico |
File jsampler.ico |
357 |
SectionEnd |
SectionEnd |
358 |
|
|
359 |
Section "QSampler 0.2.1.26" SecQSampler |
Section "QSampler 0.2.2" SecQSampler |
360 |
DetailPrint "Installing QSampler binaries ..." |
DetailPrint "Installing QSampler binaries ..." |
361 |
StrCpy $installingQSampler "1" |
StrCpy $installingQSampler "1" |
362 |
; Set output path to the installation directory. |
; Set output path to the installation directory. |
371 |
File bin\686\share\locale\qsampler_ru.qm |
File bin\686\share\locale\qsampler_ru.qm |
372 |
SectionEnd |
SectionEnd |
373 |
|
|
374 |
Section "gigedit 0.1.1.x (cvs2009-05-10)" Secgigedit |
Section "gigedit 0.2.0" Secgigedit |
375 |
DetailPrint "Installing gigedit binaries ..." |
DetailPrint "Installing gigedit binaries ..." |
376 |
StrCpy $installinggigedit "1" |
StrCpy $installinggigedit "1" |
377 |
|
|
390 |
gigedit64: |
gigedit64: |
391 |
SetOutPath "$INSTDIR\${SUBDIR_64_BIT}" |
SetOutPath "$INSTDIR\${SUBDIR_64_BIT}" |
392 |
File bin\64\gigedit.exe |
File bin\64\gigedit.exe |
393 |
File bin\64\libgigedit-1.dll |
File bin\64\libgigedit-2.dll |
394 |
SetOutPath "$INSTDIR\${SUBDIR_64_BIT}\plugins" |
SetOutPath "$INSTDIR\${SUBDIR_64_BIT}\plugins" |
395 |
File bin\64\plugins\libgigeditlinuxsamplerplugin-1.dll |
File bin\64\plugins\libgigeditlinuxsamplerplugin.dll |
396 |
SetOutPath "$INSTDIR\${SUBDIR_64_BIT}" |
SetOutPath "$INSTDIR\${SUBDIR_64_BIT}" |
397 |
File bin\64\libatk-1.0-0.dll |
File bin\64\libatk-1.0-0.dll |
398 |
File bin\64\libatkmm-1.6-1.dll |
File bin\64\libatkmm-1.6-1.dll |
439 |
gigedit686: |
gigedit686: |
440 |
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
441 |
File bin\686\gigedit.exe |
File bin\686\gigedit.exe |
442 |
File bin\686\libgigedit-1.dll |
File bin\686\libgigedit-2.dll |
443 |
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}\plugins" |
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}\plugins" |
444 |
File bin\686\plugins\libgigeditlinuxsamplerplugin-1.dll |
File bin\686\plugins\libgigeditlinuxsamplerplugin.dll |
445 |
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" |
446 |
File bin\686\intl.dll |
File bin\686\intl.dll |
447 |
File bin\686\jpeg62.dll |
File bin\686\jpeg62.dll |
503 |
done: |
done: |
504 |
SectionEnd |
SectionEnd |
505 |
|
|
506 |
Section "libgig 3.2.1.x (cvs2009-05-03)" Seclibgig |
Section "libgig 3.3.0" Seclibgig |
507 |
DetailPrint "Installing libgig binaries ..." |
DetailPrint "Installing libgig binaries ..." |
508 |
; We make this a mandatory component |
; We make this a mandatory component |
509 |
SectionIn RO |
SectionIn RO |
573 |
WriteRegStr HKLM "Software\LinuxSampler" "Release Date" ${RELEASE_DATE} |
WriteRegStr HKLM "Software\LinuxSampler" "Release Date" ${RELEASE_DATE} |
574 |
SectionEnd |
SectionEnd |
575 |
|
|
576 |
Section "libsndfile 1.0.19" Seclibsndfile |
Section "libsndfile 1.0.20" Seclibsndfile |
577 |
DetailPrint "Installing libsndfile binaries ..." |
DetailPrint "Installing libsndfile binaries ..." |
578 |
; We make this a mandatory component |
; We make this a mandatory component |
579 |
SectionIn RO |
SectionIn RO |
630 |
|
|
631 |
StrCmp $installingLinuxSampler '1' 0 +3 |
StrCmp $installingLinuxSampler '1' 0 +3 |
632 |
SetOutPath $samplerDir |
SetOutPath $samplerDir |
633 |
CreateShortCut "$SMPROGRAMS\LinuxSampler\LinuxSampler 0.5.1.12cvs (stand alone backend).lnk" "$samplerDir\linuxsampler.exe" "" "$samplerDir\linuxsampler.exe" 0 |
CreateShortCut "$SMPROGRAMS\LinuxSampler\LinuxSampler 1.0.0 (stand alone backend).lnk" "$samplerDir\linuxsampler.exe" "" "$samplerDir\linuxsampler.exe" 0 |
634 |
|
|
635 |
StrCmp $installingJSampler '1' 0 +3 |
StrCmp $installingJSampler '1' 0 +3 |
636 |
SetOutPath $INSTDIR |
SetOutPath $INSTDIR |
637 |
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.9 (frontend).lnk' '$javawbin' '-jar "$INSTDIR\Fantasia-0.9.jar"' '$INSTDIR\jsampler.ico' 0 |
638 |
|
|
639 |
StrCmp $installingQSampler '1' 0 +3 |
StrCmp $installingQSampler '1' 0 +3 |
640 |
SetOutPath $INSTDIR |
SetOutPath $INSTDIR |
641 |
CreateShortCut "$SMPROGRAMS\LinuxSampler\QSampler 0.2.1.26 (frontend).lnk" "$INSTDIR\qsampler.exe" "" "$INSTDIR\qsampler.ico" 0 |
CreateShortCut "$SMPROGRAMS\LinuxSampler\QSampler 0.2.2 (frontend).lnk" "$INSTDIR\qsampler.exe" "" "$INSTDIR\qsampler.ico" 0 |
642 |
|
|
643 |
StrCmp $installinggigedit '1' 0 +3 |
StrCmp $installinggigedit '1' 0 +3 |
644 |
SetOutPath $samplerDir |
SetOutPath $samplerDir |
645 |
CreateShortCut "$SMPROGRAMS\LinuxSampler\gigedit 0.1.1.x cvs2009-05-10 (stand alone).lnk" "$samplerDir\gigedit.exe" "" "$samplerDir\gigedit.exe" 0 |
CreateShortCut "$SMPROGRAMS\LinuxSampler\gigedit 0.2.0 (stand alone).lnk" "$samplerDir\gigedit.exe" "" "$samplerDir\gigedit.exe" 0 |
646 |
|
|
647 |
|
!insertmacro CreateInternetShortcut \ |
648 |
|
"$SMPROGRAMS\LinuxSampler\\Support LinuxSampler" \ |
649 |
|
"http://www.linuxsampler.org/donations.html" \ |
650 |
|
"" "0" |
651 |
SectionEnd |
SectionEnd |
652 |
|
|
653 |
;-------------------------------- |
;-------------------------------- |