/[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 1580 by schoenebeck, Wed Dec 5 01:01:01 2007 UTC revision 1581 by schoenebeck, Fri Dec 7 17:52:39 2007 UTC
# Line 11  SetCompressor lzma Line 11  SetCompressor lzma
11  ;Include Modern UI  ;Include Modern UI
12  !include "MUI.nsh"  !include "MUI.nsh"
13    
14    !define RELEASE_DATE "20071207"
15    
16  ; The name of the installer  ; The name of the installer
17  Name "LinuxSampler"  Name "LinuxSampler (${RELEASE_DATE})"
18    
19  ; The file to write  ; The file to write
20  OutFile "linuxsampler_20071206_setup.exe"  OutFile "linuxsampler_${RELEASE_DATE}_setup.exe"
21    
22  ; Java Runtime Environment, needed for JSampler  ; Java Runtime Environment, needed for JSampler
23  !define JRE_VERSION "1.6"  !define JRE_VERSION "1.6"
# Line 27  InstallDir $PROGRAMFILES\LinuxSampler Line 29  InstallDir $PROGRAMFILES\LinuxSampler
29  ; Get installation folder from registry if available  ; Get installation folder from registry if available
30  InstallDirRegKey HKCU "Software\LinuxSampler" ""  InstallDirRegKey HKCU "Software\LinuxSampler" ""
31    
 ;LoadLanguageFile "${NSISDIR}\Contrib\Language files\English.nlf"  
   
32  ;--------------------------------  ;--------------------------------
33  ;Interface Settings  ;Interface Settings
34    
# Line 40  InstallDirRegKey HKCU "Software\LinuxSam Line 40  InstallDirRegKey HKCU "Software\LinuxSam
40  ;Version Information  ;Version Information
41    
42  VIProductVersion "0.0.0.0"  VIProductVersion "0.0.0.0"
43  VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "LinuxSampler Installer"  VIAddVersionKey /LANG=${LANG_ENGLISH} "ProductName" "all-in-one installer"
44  VIAddVersionKey /LANG=${LANG_ENGLISH} "Comments" "http://linuxsampler.org"  VIAddVersionKey /LANG=${LANG_ENGLISH} "Comments" "http://linuxsampler.org"
45  VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "The LinuxSampler Project"  VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "The LinuxSampler Project"
46  VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" ""  VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" ""
47  VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" " 2003-2007 The LinuxSampler Project"  VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" " 2003-2007 The LinuxSampler Project"
48  VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "all-in-one installer"  VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "LinuxSampler Installer (${RELEASE_DATE})"
49  VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "0.0.0"  VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "0.0.0"
50    
51  ;--------------------------------  ;--------------------------------
   
52  ; Pages  ; Pages
53    
 ;Page license  
 ;Page components  
 ;Page directory  
 ;Page instfiles  
   
54  !insertmacro MUI_PAGE_LICENSE "license.rtf"  !insertmacro MUI_PAGE_LICENSE "license.rtf"
55  !insertmacro MUI_PAGE_COMPONENTS  !insertmacro MUI_PAGE_COMPONENTS
56  !insertmacro MUI_PAGE_DIRECTORY  !insertmacro MUI_PAGE_DIRECTORY
# Line 64  VIAddVersionKey /LANG=${LANG_ENGLISH} "F Line 58  VIAddVersionKey /LANG=${LANG_ENGLISH} "F
58  !insertmacro MUI_UNPAGE_CONFIRM  !insertmacro MUI_UNPAGE_CONFIRM
59  !insertmacro MUI_UNPAGE_INSTFILES  !insertmacro MUI_UNPAGE_INSTFILES
60    
 ;UninstPage uninstConfirm  
 ;UninstPage instfiles  
   
 ;LicenseData license.rtf  
   
61  ;--------------------------------  ;--------------------------------
62  ;Languages  ;Languages
63    
# Line 76  VIAddVersionKey /LANG=${LANG_ENGLISH} "F Line 65  VIAddVersionKey /LANG=${LANG_ENGLISH} "F
65    
66  ;--------------------------------  ;--------------------------------
67    
68    Function .onInit
69      Var /GLOBAL installingLinuxSampler
70      Var /GLOBAL installingJSampler
71      Var /GLOBAL installingQSampler
72      Var /GLOBAL installinggigedit
73      StrCpy $installingLinuxSampler "0"
74      StrCpy $installingJSampler "0"
75      StrCpy $installingQSampler "0"
76      StrCpy $installinggigedit "0"
77    FunctionEnd
78    
79  ; 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
80  ; download and install gtkmm now from the internet.  ; download and install gtkmm now from the internet.
81  Function CheckForGtkmm  Function CheckForGtkmm
82    Var /GLOBAL gtkmmSetupFile    Var /GLOBAL gtkmmSetupFile
83    
84      ClearErrors
85    ; This is just a lazy check for the presence of gtkmm, we should better use:    ; This is just a lazy check for the presence of gtkmm, we should better use:
86    ; System::Call function (NSI internal function) to actually call an arbitrary    ; System::Call function (NSI internal function) to actually call an arbitrary
87    ; gtkmm function (/method) from a gtkmm DLL to make it certain    ; gtkmm function (/method) from a gtkmm DLL to make it certain
# Line 137  FunctionEnd Line 138  FunctionEnd
138    
139  ; The stuff to install  ; The stuff to install
140  Section "LinuxSampler 0.5.1" SecLinuxSampler  Section "LinuxSampler 0.5.1" SecLinuxSampler
141      StrCpy $installingLinuxSampler "1"
142    ; Set output path to the installation directory.    ; Set output path to the installation directory.
143    SetOutPath $INSTDIR    SetOutPath $INSTDIR
144    ; Files to install    ; Files to install
145  ;  File linuxsampler.exe    File linuxsampler.exe
146  ;  File liblinuxsampler.dll    File liblinuxsampler-1.dll
147  SectionEnd  SectionEnd
148    
149  Section "JSampler 'Fantasia' 0.0.1" SecJSampler  Section "JSampler 'Fantasia' 0.8a" SecJSampler
150    ; make sure JRE is installed    ; make sure JRE is installed
151    Call DetectJRE    Call DetectJRE
152      StrCpy $installingJSampler "1"
153    ; Set output path to the installation directory.    ; Set output path to the installation directory.
154    SetOutPath $INSTDIR    SetOutPath $INSTDIR
155    ; Files to install    ; Files to install
156  ;  File jsampler.jar    File Fantasia-0.8a.jar
157      File jsampler.ico
158  SectionEnd  SectionEnd
159    
160  Section "QSampler 0.2.0" SecQSampler  Section "QSampler 0.2.1" SecQSampler
161      StrCpy $installingQSampler "1"
162    ; Set output path to the installation directory.    ; Set output path to the installation directory.
163    SetOutPath $INSTDIR    SetOutPath $INSTDIR
164    ; Files to install    ; Files to install
165  ;  File qsampler.exe    File qsampler.exe
166  ;  File liblscp.dll    File QtCore4.dll
167      File QtGui4.dll
168      File mingwm10.dll
169  SectionEnd  SectionEnd
170    
171  Section "gigedit 0.1.1" Secgigedit  Section "gigedit 0.1.1" Secgigedit
172      StrCpy $installinggigedit "1"
173    ; make sure gtkmm is installed    ; make sure gtkmm is installed
174    Call CheckForGtkmm    Call CheckForGtkmm
175    ; Set output path to the installation directory.    ; Set output path to the installation directory.
176    SetOutPath $INSTDIR    SetOutPath $INSTDIR
177    ; Files to install    ; Files to install
178  ;  File gigedit.exe    File gigedit.exe
179    SetOutPath "$INSTDIR\Plugins"    File libsndfile-1.dll
180  ;  File libgigedit.dll    SetOutPath "$INSTDIR\plugins"
181      File libgigedit.dll
182  SectionEnd  SectionEnd
183    
184  Section "libgig 3.2.1" Seclibgig  Section "libgig 3.2.1" Seclibgig
# Line 178  Section "libgig 3.2.1" Seclibgig Line 187  Section "libgig 3.2.1" Seclibgig
187    ; Set output path to the installation directory.    ; Set output path to the installation directory.
188    SetOutPath $INSTDIR    SetOutPath $INSTDIR
189    ; Files to install    ; Files to install
190  ;  File libgig.dll    File libgig-6.dll
191      File rifftree.exe
192      File dlsdump.exe
193      File gigdump.exe
194      File gigextract.exe
195    ; As this is a mandatory component, we misuse it to install the uninstaller as well ...    ; As this is a mandatory component, we misuse it to install the uninstaller as well ...
196    ; Write the uninstall keys for Windows    ; Write the uninstall keys for Windows
197    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler" "DisplayName" "LinuxSampler 2007-12-05"    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler" "DisplayName" "LinuxSampler ${RELEASE_DATE}"
198    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler" "UninstallString" '"$INSTDIR\uninstall.exe"'    WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler" "UninstallString" '"$INSTDIR\uninstall.exe"'
199    WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler" "NoModify" 1    WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler" "NoModify" 1
200    WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler" "NoRepair" 1    WriteRegDWORD HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler" "NoRepair" 1
# Line 190  Section "libgig 3.2.1" Seclibgig Line 203  Section "libgig 3.2.1" Seclibgig
203    WriteRegStr HKCU "Software\LinuxSampler" "" $INSTDIR    WriteRegStr HKCU "Software\LinuxSampler" "" $INSTDIR
204  SectionEnd  SectionEnd
205    
 Section "libsndfile 1.0.17" Seclibsndfile  
   ; We make this a mandatory component  
   SectionIn RO  
   ; Set output path to the installation directory.  
   SetOutPath $INSTDIR  
   ; Files to install  
 ;  File libsndfile-1.dll  
 SectionEnd  
   
206  Section "Start Menu Shortcuts" SecShortcuts  Section "Start Menu Shortcuts" SecShortcuts
207      
208    CreateDirectory "$SMPROGRAMS\LinuxSampler"    CreateDirectory "$SMPROGRAMS\LinuxSampler"
209      
210    CreateShortCut "$SMPROGRAMS\LinuxSampler\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0    CreateShortCut "$SMPROGRAMS\LinuxSampler\Uninstall.lnk" "$INSTDIR\uninstall.exe" "" "$INSTDIR\uninstall.exe" 0
211    CreateShortCut "$SMPROGRAMS\LinuxSampler\LinuxSampler (backend).lnk" "$INSTDIR\linuxsampler.exe" "" "$INSTDIR\linuxsampler.exe" 0    
212    CreateShortCut "$SMPROGRAMS\LinuxSampler\JSampler Fantasia (frontend).lnk" "$INSTDIR\jjjjjsampler.exe" "" "$INSTDIR\jjjjjsampler.exe" 0    StrCmp $installingLinuxSampler '1' 0 +2
213    CreateShortCut "$SMPROGRAMS\LinuxSampler\QSampler (frontend).lnk" "$INSTDIR\qsampler.exe" "" "$INSTDIR\qsampler.exe" 0    CreateShortCut "$SMPROGRAMS\LinuxSampler\LinuxSampler 0.5.1 (backend).lnk" "$INSTDIR\linuxsampler.exe" "" "$INSTDIR\linuxsampler.exe" 0
214    CreateShortCut "$SMPROGRAMS\LinuxSampler\gigedit (stand alone).lnk" "$INSTDIR\gigedit.exe" "" "$INSTDIR\gigedit.exe" 0    
215      StrCmp $installingJSampler '1' 0 +2
216      CreateShortCut '$SMPROGRAMS\LinuxSampler\JSampler Fantasia 0.8a (frontend).lnk' 'javaw' '-jar "$INSTDIR\Fantasia-0.8a.jar"' '$INSTDIR\jsampler.ico' 0
217      
218      StrCmp $installingQSampler '1' 0 +2
219      CreateShortCut "$SMPROGRAMS\LinuxSampler\QSampler 0.2.1 (frontend).lnk" "$INSTDIR\qsampler.exe" "" "$INSTDIR\qsampler.exe" 0
220      
221      StrCmp $installinggigedit '1' 0 +2
222      CreateShortCut "$SMPROGRAMS\LinuxSampler\gigedit 0.1.1 (stand alone).lnk" "$INSTDIR\gigedit.exe" "" "$INSTDIR\gigedit.exe" 0
223      
224  SectionEnd  SectionEnd
225    
226  ;--------------------------------  ;--------------------------------
# Line 217  Section "Uninstall" Line 232  Section "Uninstall"
232    DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler"    DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\LinuxSampler"
233    ; Remove files and uninstaller    ; Remove files and uninstaller
234    Delete $INSTDIR\*.*    Delete $INSTDIR\*.*
235      Delete $INSTDIR\plugins\*.*
236    ; Remove shortcuts, if any    ; Remove shortcuts, if any
237    Delete "$SMPROGRAMS\LinuxSampler\*.*"    Delete "$SMPROGRAMS\LinuxSampler\*.*"
238    ; Remove directories used    ; Remove directories used
239    RMDir "$SMPROGRAMS\LinuxSampler"    RMDir "$SMPROGRAMS\LinuxSampler"
240      RMDir "$INSTDIR\plugins"
241    RMDir "$INSTDIR"    RMDir "$INSTDIR"
242  SectionEnd  SectionEnd
243    
# Line 233  LangString DESC_SecJSampler ${LANG_ENGLI Line 250  LangString DESC_SecJSampler ${LANG_ENGLI
250  LangString DESC_SecQSampler ${LANG_ENGLISH} "Graphical light-weight frontend (user interface) for LinuxSampler written in C++, offering a fast native user interface. NOTE: QSampler doesn't support all LinuxSampler features yet!"  LangString DESC_SecQSampler ${LANG_ENGLISH} "Graphical light-weight frontend (user interface) for LinuxSampler written in C++, offering a fast native user interface. NOTE: QSampler doesn't support all LinuxSampler features yet!"
251  LangString DESC_Secgigedit ${LANG_ENGLISH} "Graphical instrument editor for Gigasampler format v2 and v3 files. Can be used stand-alone or in conjunction with LinuxSampler. NOTE: this is yet an early development version!"  LangString DESC_Secgigedit ${LANG_ENGLISH} "Graphical instrument editor for Gigasampler format v2 and v3 files. Can be used stand-alone or in conjunction with LinuxSampler. NOTE: this is yet an early development version!"
252  LangString DESC_Seclibgig ${LANG_ENGLISH} "C++ program library for accessing DLS (Level 1 and Level 2) and Gigasampler format (v2 and v3) files. This library is required by LinuxSampler, gigedit and QSampler."  LangString DESC_Seclibgig ${LANG_ENGLISH} "C++ program library for accessing DLS (Level 1 and Level 2) and Gigasampler format (v2 and v3) files. This library is required by LinuxSampler, gigedit and QSampler."
 LangString DESC_Seclibsndfile ${LANG_ENGLISH} "C program library for reading and writing files containing sampled sound (such as MS Windows WAV and the Apple/SGI AIFF format), used by gigedit to import samples."  
253  LangString DESC_SecShortcuts ${LANG_ENGLISH} "Installs start menu shortcuts for all applications."  LangString DESC_SecShortcuts ${LANG_ENGLISH} "Installs start menu shortcuts for all applications."
254    
255  ;Assign language strings to sections  ;Assign language strings to sections
# Line 243  LangString DESC_SecShortcuts ${LANG_ENGL Line 259  LangString DESC_SecShortcuts ${LANG_ENGL
259    !insertmacro MUI_DESCRIPTION_TEXT ${SecQSampler} $(DESC_SecQSampler)    !insertmacro MUI_DESCRIPTION_TEXT ${SecQSampler} $(DESC_SecQSampler)
260    !insertmacro MUI_DESCRIPTION_TEXT ${Secgigedit} $(DESC_Secgigedit)    !insertmacro MUI_DESCRIPTION_TEXT ${Secgigedit} $(DESC_Secgigedit)
261    !insertmacro MUI_DESCRIPTION_TEXT ${Seclibgig} $(DESC_Seclibgig)    !insertmacro MUI_DESCRIPTION_TEXT ${Seclibgig} $(DESC_Seclibgig)
   !insertmacro MUI_DESCRIPTION_TEXT ${Seclibsndfile} $(DESC_Seclibsndfile)  
262    !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} $(DESC_SecShortcuts)    !insertmacro MUI_DESCRIPTION_TEXT ${SecShortcuts} $(DESC_SecShortcuts)
263  !insertmacro MUI_FUNCTION_DESCRIPTION_END  !insertmacro MUI_FUNCTION_DESCRIPTION_END

Legend:
Removed from v.1580  
changed lines
  Added in v.1581

  ViewVC Help
Powered by ViewVC