/[svn]/misc/trunk/win32_installer/linuxsampler_all.nsi
ViewVC logotype

Diff of /misc/trunk/win32_installer/linuxsampler_all.nsi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1926 by schoenebeck, Thu Jul 2 16:11:49 2009 UTC revision 1941 by senoner, Mon Jul 13 17:48:43 2009 UTC
# Line 36  OutFile "linuxsampler_${RELEASE_DATE}_se Line 36  OutFile "linuxsampler_${RELEASE_DATE}_se
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"
# Line 89  Function .onInit Line 92  Function .onInit
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  !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
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
112  Function ${un}DetectSystemType  Function ${un}DetectSystemType
# Line 132  FunctionEnd Line 143  FunctionEnd
143    
144  ; 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
145  ; download and install gtkmm now from the internet.  ; download and install gtkmm now from the internet.
146    ; (NOTE: this function is currently unused, since we include the gtk(mm)
147    ; DLLs with the installer ATM, this is the recommended way by the gtk
148    ; project)
149  Function CheckForGtkmm  Function CheckForGtkmm
150    Var /GLOBAL gtkmmSetupFile    Var /GLOBAL gtkmmSetupFile
151    
# Line 211  FunctionEnd Line 225  FunctionEnd
225  ; Tries to find the location where VST plugins should be installed to  ; Tries to find the location where VST plugins should be installed to
226  Function DetectVstPath  Function DetectVstPath
227    Var /GLOBAL vstPluginPath    Var /GLOBAL vstPluginPath
228      Var /GLOBAL vstPluginPath64
229    
230      StrCmp $binType BIN_TYPE_64BIT 0 detectVst32
231      SetRegView 64 ; make sure we have the 64 bit registry view
232    
233      ; ------- VST 64 bit detection -------
234    
235      ClearErrors
236      ReadRegStr $0 HKCU "Software\VST" "VSTPluginsPath"
237      IfErrors check2ndRegistryKey64 0
238      StrCpy $vstPluginPath64 $0
239      DetailPrint "Found VST plugin (64 bit) directory in HKCU registry."
240      Goto done64
241    
242      check2ndRegistryKey64:
243      ClearErrors
244      ReadRegStr $0 HKLM "Software\VST" "VSTPluginsPath"
245      IfErrors noRegistryKeyExists64 0
246      StrCpy $vstPluginPath64 $0
247      DetailPrint "Found VST plugin (64 bit) directory in HKLM registry."
248      Goto done64
249    
250      noRegistryKeyExists64:
251      ClearErrors
252      DetailPrint "No VST plugin directory (64 bit) defined in registry."
253      StrCpy $vstPluginPath64 "${DEFAULT_VST_DIR64}"
254    
255      done64:
256      SetRegView 32 ; make sure we have a 32 bit registry view
257    
258      detectVst32: ; it follows the same thing for the 32 bit registry view
259    
260      ; ------- VST 32 bit detection -------
261    
262    ClearErrors    ClearErrors
263    ReadRegStr $0 HKCU "Software\VST" "VSTPluginsPath"    ReadRegStr $0 HKCU "Software\VST" "VSTPluginsPath"
264    IfErrors check2ndRegistryKey 0    IfErrors check2ndRegistryKey 0
265    StrCpy $vstPluginPath $0    StrCpy $vstPluginPath $0
266    DetailPrint "Found VST plugin directory in HKCU registry."    DetailPrint "Found VST plugin (32 bit) directory in HKCU registry."
267    Goto done    Goto done
268    
269    check2ndRegistryKey:    check2ndRegistryKey:
# Line 224  Function DetectVstPath Line 271  Function DetectVstPath
271    ReadRegStr $0 HKLM "Software\VST" "VSTPluginsPath"    ReadRegStr $0 HKLM "Software\VST" "VSTPluginsPath"
272    IfErrors noRegistryKeyExists 0    IfErrors noRegistryKeyExists 0
273    StrCpy $vstPluginPath $0    StrCpy $vstPluginPath $0
274    DetailPrint "Found VST plugin directory in HKLM registry."    DetailPrint "Found VST plugin (32 bit) directory in HKLM registry."
275    Goto done    Goto done
276    
277    noRegistryKeyExists:    noRegistryKeyExists:
278    ClearErrors    ClearErrors
279    DetailPrint "No VST plugin directory defined in registry."    DetailPrint "No VST plugin directory (32 bit) defined in registry."
280    StrCpy $vstPluginPath "${DEFAULT_VST_DIR}"    StrCpy $vstPluginPath "${DEFAULT_VST_DIR}"
281    
282    done:    done: ; ------- summary of detection -------
283    DetailPrint "Using the following as VST plugin directory: $vstPluginPath"  
284      StrCmp $binType BIN_TYPE_64BIT 0 summaryVst32
285      SetRegView 64  ; restore 64 bit view
286      DetailPrint "Using the following as VST (64 bit) plugin directory: $vstPluginPath64"
287      summaryVst32:
288      DetailPrint "Using the following as VST (32 bit) plugin directory: $vstPluginPath"
289  FunctionEnd  FunctionEnd
290    
291  ;--------------------------------  ;--------------------------------
# Line 251  Section "LinuxSampler 0.5.1.12cvs" SecLi Line 303  Section "LinuxSampler 0.5.1.12cvs" SecLi
303    DetailPrint "Installing LinuxSampler binaries ..."    DetailPrint "Installing LinuxSampler binaries ..."
304    StrCpy $installingLinuxSampler "1"    StrCpy $installingLinuxSampler "1"
305    
   ; Set output path to the installation directory.  
   SetOutPath $INSTDIR  
   
306    StrCmp $binType BIN_TYPE_64BIT linuxsampler64    StrCmp $binType BIN_TYPE_64BIT linuxsampler64
307    StrCmp $binType BIN_TYPE_686SSE linuxsampler686sse    StrCmp $binType BIN_TYPE_686SSE linuxsampler686sse
308    Goto linuxsampler686    Goto linuxsampler686
# Line 261  Section "LinuxSampler 0.5.1.12cvs" SecLi Line 310  Section "LinuxSampler 0.5.1.12cvs" SecLi
310    ; Files to install    ; Files to install
311    
312    linuxsampler64:    linuxsampler64:
313      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-1.dll
316    File bin\64\libsqlite3-0.dll    File bin\64\libsqlite3-0.dll
317    SetOutPath $vstPluginPath    SetOutPath $vstPluginPath64
318    File bin\64\LinuxSampler.dll    File /oname=LinuxSampler64.dll bin\64\LinuxSampler.dll
319    Goto done    MessageBox MB_YESNO \
320        "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?" \
321        IDNO done
322    
323      ; so the other sections install their 32 bit versions as well
324      StrCpy $installing32BitToo "1"
325    
326    linuxsampler686sse:    linuxsampler686sse:
327      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-1.dll
330    File bin\686\libsqlite3-0.dll    File bin\686\libsqlite3-0.dll
331    SetOutPath $vstPluginPath    SetOutPath $vstPluginPath
332    File bin\686sse\LinuxSampler.dll    File /oname=LinuxSampler32.dll bin\686sse\LinuxSampler.dll
333    Goto done    Goto done
334    
335    linuxsampler686:    linuxsampler686:
336      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-1.dll
339    File bin\686\libsqlite3-0.dll    File bin\686\libsqlite3-0.dll
340    SetOutPath $vstPluginPath    SetOutPath $vstPluginPath
341    File bin\686\LinuxSampler.dll    File /oname=LinuxSampler32.dll bin\686\LinuxSampler.dll
342    Goto done    Goto done
343    
344    done:    done:
# Line 323  Section "gigedit 0.1.1.x (cvs2009-05-10) Line 380  Section "gigedit 0.1.1.x (cvs2009-05-10)
380    ; installer, so no check and no download necessary ATM)    ; installer, so no check and no download necessary ATM)
381    ;Call CheckForGtkmm    ;Call CheckForGtkmm
382    
   ; Set output path to the installation directory.  
   SetOutPath $INSTDIR  
   
383    StrCmp $binType BIN_TYPE_64BIT gigedit64    StrCmp $binType BIN_TYPE_64BIT gigedit64
384    ; 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
385    ;StrCmp $binType BIN_TYPE_686SSE gigedit686sse    ;StrCmp $binType BIN_TYPE_686SSE gigedit686sse
# Line 334  Section "gigedit 0.1.1.x (cvs2009-05-10) Line 388  Section "gigedit 0.1.1.x (cvs2009-05-10)
388    ; Files to install    ; Files to install
389    
390    gigedit64:    gigedit64:
391      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-1.dll
394    SetOutPath "$INSTDIR\plugins"    SetOutPath "$INSTDIR\${SUBDIR_64_BIT}\plugins"
395    File bin\64\plugins\libgigeditlinuxsamplerplugin-1.dll    File bin\64\plugins\libgigeditlinuxsamplerplugin-1.dll
396    SetOutPath $INSTDIR    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
399    File bin\64\libcairo-2.dll    File bin\64\libcairo-2.dll
# Line 365  Section "gigedit 0.1.1.x (cvs2009-05-10) Line 420  Section "gigedit 0.1.1.x (cvs2009-05-10)
420    File bin\64\libsigc-2.0-0.dll    File bin\64\libsigc-2.0-0.dll
421    File bin\64\libtiff.dll    File bin\64\libtiff.dll
422    File bin\64\zlib1.dll    File bin\64\zlib1.dll
423    SetOutPath $INSTDIR\etc\gtk-2.0    SetOutPath $INSTDIR\${SUBDIR_64_BIT}\etc\gtk-2.0
424    File bin\64\etc\gtk-2.0\gtkrc    File bin\64\etc\gtk-2.0\gtkrc
425    SetOutPath $INSTDIR\lib\gtk-2.0\2.10.0\engines    SetOutPath $INSTDIR\${SUBDIR_64_BIT}\lib\gtk-2.0\2.10.0\engines
426    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
427    SetOutPath $INSTDIR\share\locale\de\LC_MESSAGES    SetOutPath $INSTDIR\${SUBDIR_64_BIT}\share\locale\de\LC_MESSAGES
428    File bin\64\share\locale\de\LC_MESSAGES\gigedit.mo    File bin\64\share\locale\de\LC_MESSAGES\gigedit.mo
429    File bin\64\share\locale\de\LC_MESSAGES\gtk20.mo    File bin\64\share\locale\de\LC_MESSAGES\gtk20.mo
430    SetOutPath $INSTDIR\share\locale\sv\LC_MESSAGES    SetOutPath $INSTDIR\${SUBDIR_64_BIT}\share\locale\sv\LC_MESSAGES
431    File bin\64\share\locale\sv\LC_MESSAGES\gigedit.mo    File bin\64\share\locale\sv\LC_MESSAGES\gigedit.mo
432    File bin\64\share\locale\sv\LC_MESSAGES\gtk20.mo    File bin\64\share\locale\sv\LC_MESSAGES\gtk20.mo
433    SetOutPath $INSTDIR\share\themes\MS-Windows\gtk-2.0    SetOutPath $INSTDIR\${SUBDIR_64_BIT}\share\themes\MS-Windows\gtk-2.0
434    File bin\64\share\themes\MS-Windows\gtk-2.0\gtkrc    File bin\64\share\themes\MS-Windows\gtk-2.0\gtkrc
435    Goto done  
436      ; shall we install the 32 bit version as well?
437      StrCmp $installing32BitToo "1" gigedit686 done
438    
439    gigedit686:    gigedit686:
440      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-1.dll
443    SetOutPath "$INSTDIR\plugins"    SetOutPath "$INSTDIR\${SUBDIR_32_BIT}\plugins"
444    File bin\686\plugins\libgigeditlinuxsamplerplugin-1.dll    File bin\686\plugins\libgigeditlinuxsamplerplugin-1.dll
445    SetOutPath $INSTDIR    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
448    File bin\686\libatk-1.0-0.dll    File bin\686\libatk-1.0-0.dll
# Line 411  Section "gigedit 0.1.1.x (cvs2009-05-10) Line 469  Section "gigedit 0.1.1.x (cvs2009-05-10)
469    File bin\686\libsigc-2.0-0.dll    File bin\686\libsigc-2.0-0.dll
470    File bin\686\libtiff3.dll    File bin\686\libtiff3.dll
471    File bin\686\zlib1.dll    File bin\686\zlib1.dll
472    SetOutPath $INSTDIR\etc\gtk-2.0    SetOutPath $INSTDIR\${SUBDIR_32_BIT}\etc\gtk-2.0
473    File bin\686\etc\gtk-2.0\gdk-pixbuf.loaders    File bin\686\etc\gtk-2.0\gdk-pixbuf.loaders
474    File bin\686\etc\gtk-2.0\gtkrc    File bin\686\etc\gtk-2.0\gtkrc
475    SetOutPath $INSTDIR\lib\gtk-2.0\2.10.0\engines    SetOutPath $INSTDIR\${SUBDIR_32_BIT}\lib\gtk-2.0\2.10.0\engines
476    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
477    SetOutPath $INSTDIR\lib\gtk-2.0\2.10.0\loaders    SetOutPath $INSTDIR\${SUBDIR_32_BIT}\lib\gtk-2.0\2.10.0\loaders
478    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
479    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
480    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
# Line 432  Section "gigedit 0.1.1.x (cvs2009-05-10) Line 490  Section "gigedit 0.1.1.x (cvs2009-05-10)
490    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
491    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
492    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
493    SetOutPath $INSTDIR\share\locale\de\LC_MESSAGES    SetOutPath $INSTDIR\${SUBDIR_32_BIT}\share\locale\de\LC_MESSAGES
494    File bin\686\share\locale\de\LC_MESSAGES\gigedit.mo    File bin\686\share\locale\de\LC_MESSAGES\gigedit.mo
495    File bin\686\share\locale\de\LC_MESSAGES\gtk20.mo    File bin\686\share\locale\de\LC_MESSAGES\gtk20.mo
496    SetOutPath $INSTDIR\share\locale\sv\LC_MESSAGES    SetOutPath $INSTDIR\${SUBDIR_32_BIT}\share\locale\sv\LC_MESSAGES
497    File bin\686\share\locale\sv\LC_MESSAGES\gigedit.mo    File bin\686\share\locale\sv\LC_MESSAGES\gigedit.mo
498    File bin\686\share\locale\sv\LC_MESSAGES\gtk20.mo    File bin\686\share\locale\sv\LC_MESSAGES\gtk20.mo
499    SetOutPath $INSTDIR\share\themes\MS-Windows\gtk-2.0    SetOutPath $INSTDIR\${SUBDIR_32_BIT}\share\themes\MS-Windows\gtk-2.0
500    File bin\686\share\themes\MS-Windows\gtk-2.0\gtkrc    File bin\686\share\themes\MS-Windows\gtk-2.0\gtkrc
501    Goto done    Goto done
502    
# Line 449  Section "libgig 3.2.1.x (cvs2009-05-03)" Line 507  Section "libgig 3.2.1.x (cvs2009-05-03)"
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
   ; Set output path to the installation directory.  
   SetOutPath $INSTDIR  
510    
511    StrCmp $binType BIN_TYPE_64BIT libgig64    StrCmp $binType BIN_TYPE_64BIT libgig64
512    StrCmp $binType BIN_TYPE_686SSE libgig686sse    StrCmp $binType BIN_TYPE_686SSE libgig686sse
# Line 459  Section "libgig 3.2.1.x (cvs2009-05-03)" Line 515  Section "libgig 3.2.1.x (cvs2009-05-03)"
515    ; Files to install    ; Files to install
516    
517    libgig64:    libgig64:
518      SetOutPath "$INSTDIR\${SUBDIR_64_BIT}"
519    File bin\64\libgig-6.dll    File bin\64\libgig-6.dll
520    File bin\64\rifftree.exe    File bin\64\rifftree.exe
521    File bin\64\dlsdump.exe    File bin\64\dlsdump.exe
# Line 466  Section "libgig 3.2.1.x (cvs2009-05-03)" Line 523  Section "libgig 3.2.1.x (cvs2009-05-03)"
523    File bin\64\gigextract.exe    File bin\64\gigextract.exe
524    ; special dependency for the 64 bit version    ; special dependency for the 64 bit version
525    File bin\64\libgcc_s_sjlj-1.dll    File bin\64\libgcc_s_sjlj-1.dll
526    Goto done  
527      ; shall we install the 32 bit version as well?
528      StrCmp $installing32BitToo "1" libgig686sse done
529    
530    libgig686sse:    libgig686sse:
531      SetOutPath "$INSTDIR\${SUBDIR_32_BIT}"
532    File bin\686sse\libgig-6.dll    File bin\686sse\libgig-6.dll
533    File bin\686sse\rifftree.exe    File bin\686sse\rifftree.exe
534    File bin\686sse\dlsdump.exe    File bin\686sse\dlsdump.exe
# Line 477  Section "libgig 3.2.1.x (cvs2009-05-03)" Line 537  Section "libgig 3.2.1.x (cvs2009-05-03)"
537    Goto done    Goto done
538    
539    libgig686:    libgig686:
540      SetOutPath "$INSTDIR\${SUBDIR_32_BIT}"
541    File bin\686\libgig-6.dll    File bin\686\libgig-6.dll
542    File bin\686\rifftree.exe    File bin\686\rifftree.exe
543    File bin\686\dlsdump.exe    File bin\686\dlsdump.exe
# Line 491  Section "libgig 3.2.1.x (cvs2009-05-03)" Line 552  Section "libgig 3.2.1.x (cvs2009-05-03)"
552    
553    ; Add LinuxSampler and friends to the system's PATH variable    ; Add LinuxSampler and friends to the system's PATH variable
554    ${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR"    ${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR"
555      ${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR\${SUBDIR_64_BIT}"
556      ${EnvVarUpdate} $0 "PATH" "A" "HKLM" "$INSTDIR\${SUBDIR_32_BIT}"
557    
558    ; Write the uninstall keys for Windows    ; Write the uninstall keys for Windows
559    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler" "DisplayName" "LinuxSampler ${RELEASE_DATE}"    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler" "DisplayName" "LinuxSampler ${RELEASE_DATE}"
# Line 501  Section "libgig 3.2.1.x (cvs2009-05-03)" Line 564  Section "libgig 3.2.1.x (cvs2009-05-03)"
564    
565    ; Store installation folders    ; Store installation folders
566    WriteRegStr HKLM "Software\LinuxSampler" "Main Directory" $INSTDIR    WriteRegStr HKLM "Software\LinuxSampler" "Main Directory" $INSTDIR
567    WriteRegStr HKLM "Software\LinuxSampler" "VST Directory" $vstPluginPath    StrCmp $binType BIN_TYPE_64BIT 0 +3
568      WriteRegStr HKLM "Software\LinuxSampler" "VST 64 Directory" $vstPluginPath64
569      StrCmp $installing32BitToo "1" 0 +2
570      WriteRegStr HKLM "Software\LinuxSampler" "VST 32 Directory" $vstPluginPath
571    
572    ; Just for info, store the release date as well    ; Just for info, store the release date as well
573    WriteRegStr HKLM "Software\LinuxSampler" "Release Date" ${RELEASE_DATE}    WriteRegStr HKLM "Software\LinuxSampler" "Release Date" ${RELEASE_DATE}
# Line 511  Section "libsndfile 1.0.19" Seclibsndfil Line 577  Section "libsndfile 1.0.19" Seclibsndfil
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
   ; Set output path to the installation directory.  
   SetOutPath $INSTDIR  
580    
581    StrCmp $binType BIN_TYPE_64BIT libsndfile64    StrCmp $binType BIN_TYPE_64BIT libsndfile64
582    ; 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
# Line 522  Section "libsndfile 1.0.19" Seclibsndfil Line 586  Section "libsndfile 1.0.19" Seclibsndfil
586    ; Files to install    ; Files to install
587    
588    libsndfile64:    libsndfile64:
589      SetOutPath "$INSTDIR\${SUBDIR_64_BIT}"
590    File bin\64\libsndfile-1.dll    File bin\64\libsndfile-1.dll
591    Goto done  
592      ; shall we install the 32 bit version as well?
593      StrCmp $installing32BitToo "1" libsndfile686 done
594    
595    libsndfile686:    libsndfile686:
596      SetOutPath "$INSTDIR\${SUBDIR_32_BIT}"
597    File bin\686\libsndfile-1.dll    File bin\686\libsndfile-1.dll
598    Goto done    Goto done
599    
# Line 534  SectionEnd Line 602  SectionEnd
602    
603  Section "Start Menu Shortcuts" SecShortcuts  Section "Start Menu Shortcuts" SecShortcuts
604    Var /GLOBAL javawbin    Var /GLOBAL javawbin
605      Var /GLOBAL samplerDir
606    
607      StrCmp $binType BIN_TYPE_64BIT 0 +3
608      StrCpy $samplerDir "$INSTDIR\${SUBDIR_64_BIT}"
609      Goto +2
610      StrCpy $samplerDir "$INSTDIR\${SUBDIR_32_BIT}"
611    
612    ; Switch system variables to 'all users', to ensure we create the start    ; Switch system variables to 'all users', to ensure we create the start
613    ; menu shortcuts for all users and not just for the current user.    ; menu shortcuts for all users and not just for the current user.
# Line 551  Section "Start Menu Shortcuts" SecShortc Line 625  Section "Start Menu Shortcuts" SecShortc
625    
626    CreateDirectory "$SMPROGRAMS\LinuxSampler"    CreateDirectory "$SMPROGRAMS\LinuxSampler"
627    
628      SetOutPath $INSTDIR
629    CreateShortCut "$SMPROGRAMS\LinuxSampler\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0    CreateShortCut "$SMPROGRAMS\LinuxSampler\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
630    
631    StrCmp $installingLinuxSampler '1' 0 +2    StrCmp $installingLinuxSampler '1' 0 +3
632    CreateShortCut "$SMPROGRAMS\LinuxSampler\LinuxSampler 0.5.1.12cvs (stand alone backend).lnk" "$INSTDIR\linuxsampler.exe" "" "$INSTDIR\linuxsampler.exe" 0    SetOutPath $samplerDir
633      CreateShortCut "$SMPROGRAMS\LinuxSampler\LinuxSampler 0.5.1.12cvs (stand alone backend).lnk" "$samplerDir\linuxsampler.exe" "" "$samplerDir\linuxsampler.exe" 0
634    
635    StrCmp $installingJSampler '1' 0 +2    StrCmp $installingJSampler '1' 0 +3
636      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.8a-cvs8 (frontend).lnk' '$javawbin' '-jar "$INSTDIR\Fantasia-0.8a-cvs8.jar"' '$INSTDIR\jsampler.ico' 0
638    
639    StrCmp $installingQSampler '1' 0 +2    StrCmp $installingQSampler '1' 0 +3
640      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.1.26 (frontend).lnk" "$INSTDIR\qsampler.exe" "" "$INSTDIR\qsampler.ico" 0
642    
643    StrCmp $installinggigedit '1' 0 +2    StrCmp $installinggigedit '1' 0 +3
644    CreateShortCut "$SMPROGRAMS\LinuxSampler\gigedit 0.1.1.x cvs2009-05-10 (stand alone).lnk" "$INSTDIR\gigedit.exe" "" "$INSTDIR\gigedit.exe" 0    SetOutPath $samplerDir
645      CreateShortCut "$SMPROGRAMS\LinuxSampler\gigedit 0.1.1.x cvs2009-05-10 (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  ;--------------------------------  ;--------------------------------
# Line 571  SectionEnd Line 655  SectionEnd
655  ; Uninstaller  ; Uninstaller
656    
657  Section "Uninstall"  Section "Uninstall"
658    Var /GLOBAL vstdir    Var /GLOBAL vstdir32
659      Var /GLOBAL vstdir64
660    
661    Call un.DetectSystemType    Call un.DetectSystemType
662    
663    DetailPrint "Removing LinuxSampler directory from PATH variable ..."    DetailPrint "Removing LinuxSampler directories from PATH variable ..."
664    ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR"    ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR"
665      ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR\${SUBDIR_32_BIT}"
666      ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR\${SUBDIR_64_BIT}"
667    
668      StrCmp $binType BIN_TYPE_64BIT 0 uninstallVst32
669      DetailPrint "Searching for VST plugin (64 bit) ..."
670      ClearErrors
671      ReadRegStr $0 HKLM "Software\LinuxSampler" "VST 64 Directory"
672      IfErrors uninstallVst32 0
673      StrCpy $vstdir64 $0
674      DetailPrint "Removing VST plugin (64 bit) from: $vstdir64 ..."
675      Delete "$vstdir64\LinuxSampler64.dll"
676    
677    DetailPrint "Searching for VST plugin ..."    uninstallVst32:
678    
679      DetailPrint "Searching for VST plugin (32 bit) ..."
680    ClearErrors    ClearErrors
681    ReadRegStr $0 HKLM "Software\LinuxSampler" "VST Directory"    ReadRegStr $0 HKLM "Software\LinuxSampler" "VST 32 Directory"
682    IfErrors usedefaultvstdir 0    IfErrors uninstallVstDone 0
683    StrCpy $vstdir $0    StrCpy $vstdir32 $0
684    DetailPrint "VST plugin location found in registry."    DetailPrint "Removing VST plugin (32 bit) from: $vstdir32 ..."
685    Goto vstdirDetected    Delete "$vstdir32\LinuxSampler32.dll"
686    usedefaultvstdir:  
687    DetailPrint "WRN: No VST plugin location found in registry, trying default location."    uninstallVstDone:
688    ClearErrors    ClearErrors
   StrCpy $vstdir "${DEFAULT_VST_DIR}"  
   vstdirDetected:  
689    
690    DetailPrint "Removing registry keys ..."    DetailPrint "Removing registry keys ..."
691    DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler"    DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler"
# Line 603  Section "Uninstall" Line 699  Section "Uninstall"
699    DetailPrint "Removing shortcuts (if any) from: $SMPROGRAMS ..."    DetailPrint "Removing shortcuts (if any) from: $SMPROGRAMS ..."
700    Delete "$SMPROGRAMS\LinuxSampler\*.*"    Delete "$SMPROGRAMS\LinuxSampler\*.*"
701    
   DetailPrint "Removing VST plugin from: $vstdir ..."  
   Delete "$vstdir\LinuxSampler.dll"  
   
702    DetailPrint "Removing directories used ..."    DetailPrint "Removing directories used ..."
703    RMDir /r "$SMPROGRAMS\LinuxSampler"    RMDir /r "$SMPROGRAMS\LinuxSampler"
704    RMDir /r "$INSTDIR"    RMDir /r "$INSTDIR"

Legend:
Removed from v.1926  
changed lines
  Added in v.1941

  ViewVC Help
Powered by ViewVC