--- misc/trunk/win32_installer/linuxsampler_all.nsi 2011/02/08 18:22:51 2163 +++ misc/trunk/win32_installer/linuxsampler_all.nsi 2015/01/04 01:32:55 2686 @@ -1,25 +1,29 @@ ; LinuxSampler Windows installer ; -; Copyright (C) 2007-2011, The LinuxSampler Developers +; Copyright (C) 2007-2015, The LinuxSampler Developers ; ; All-in-one Installer for all subprojects / software components of the ; LinuxSampler Project. ; ; PREREQUISITES: ; -; -> You must install the file cpudesc\cpudesc.dll into the NSIS's -; plugin directory before being able to compile this installer! +; -> You must install the file cpudesc\cpudesc.dll into the working +; directory before being able to compile this installer! ; ; -> The compiled binaries must be placed into the respective directories ; under bin\ (you have to read this file in order to get those exact ; locations and expected file names). +; NSIS plug-in for getting CPU information +!addplugindir cpudesc + ; Probably the best compression ratio SetCompressor lzma ;Include Modern UI !include "MUI.nsh" !include "EnvVarUpdate.nsh" +!include "WordFunc.nsh" !define /date RELEASE_DATE "%Y%m%d" !searchparse /file bin/686/linuxsampler.pc `Version: ` LINUXSAMPLER_VERSION @@ -37,10 +41,10 @@ ; Java Runtime Environment, needed for JSampler !define JRE_VERSION "1.6" -; jre-6u23-windows-i586.exe, 1.6.0_23-b05: -!define JRE_32_URL "http://javadl.sun.com/webapps/download/AutoDL?BundleId=45825" -; jre-6u23-windows-x64.exe, 1.6.0_23-b05: -!define JRE_64_URL "http://javadl.sun.com/webapps/download/AutoDL?BundleId=43883" +; jre-7u67-windows-i586.exe: +!define JRE_32_URL "http://javadl.sun.com/webapps/download/AutoDL?BundleId=95123" +; jre-7u67-windows-x64.exe: +!define JRE_64_URL "http://javadl.sun.com/webapps/download/AutoDL?BundleId=95125" ; The default installation directory InstallDir "$PROGRAMFILES64\LinuxSampler" @@ -89,7 +93,7 @@ VIAddVersionKey /LANG=${LANG_ENGLISH} "Comments" "http://linuxsampler.org" VIAddVersionKey /LANG=${LANG_ENGLISH} "CompanyName" "The LinuxSampler Project" VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalTrademarks" "" -VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "© 2003-2011 The LinuxSampler Project" +VIAddVersionKey /LANG=${LANG_ENGLISH} "LegalCopyright" "© 2003-2014 The LinuxSampler Project" VIAddVersionKey /LANG=${LANG_ENGLISH} "FileDescription" "LinuxSampler Installer (${RELEASE_DATE})" VIAddVersionKey /LANG=${LANG_ENGLISH} "FileVersion" "0.0.0" @@ -160,8 +164,8 @@ DetailPrint "Downloading JRE from: $jreUri" - MessageBox MB_OK "JSampler requires Java ${JRE_VERSION}, it will now \ - be downloaded and installed" + MessageBox MB_OK "JSampler requires Java ${JRE_VERSION} or later, \ + it will now be downloaded and installed" StrCpy $2 "$TEMP\Java Runtime Environment.exe" nsisdl::download /TIMEOUT=30000 "$jreUri" $2 @@ -177,7 +181,8 @@ Function DetectJRE ReadRegStr $2 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" \ "CurrentVersion" - StrCmp $2 ${JRE_VERSION} done + ${VersionCompare} $2 ${JRE_VERSION} $R0 + IntCmp $R0 1 done done StrCmp $binType BIN_TYPE_64BIT 0 downloadjre @@ -187,7 +192,8 @@ ReadRegStr $3 HKLM "SOFTWARE\JavaSoft\Java Runtime Environment" \ "CurrentVersion" SetRegView 64 ; restore 64 bit view - StrCmp $3 ${JRE_VERSION} done + ${VersionCompare} $3 ${JRE_VERSION} $R0 + IntCmp $R0 1 done done downloadjre: Call GetJRE @@ -497,33 +503,67 @@ libgig64: SetOutPath "$INSTDIR\${SUBDIR_64_BIT}" File bin\64\libgig-6.dll + File bin\64\libakai-0.dll File bin\64\rifftree.exe File bin\64\dlsdump.exe File bin\64\gigdump.exe File bin\64\gigextract.exe + File bin\64\gigmerge.exe + File bin\64\gig2mono.exe + File bin\64\gig2stereo.exe + File bin\64\korg2gig.exe + File bin\64\korgdump.exe + File bin\64\akaidump.exe + File bin\64\akaiextract.exe + File bin\64\sf2dump.exe ; special dependencies for the 64 bit version File bin\64\libgcc_s_sjlj-1.dll File bin\64\libstdc++-6.dll ; shall we install the 32 bit version as well? - StrCmp $installing32BitToo "1" libgig686sse done + StrCmp $installing32BitToo "1" libgig686sse + StrCmp $installingQSampler "1" libgigForQsampler done + + ; QSampler needs the 32 bit libgig dll + libgigForQsampler: + SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" + File bin\686sse\libgig-6.dll + Goto done libgig686sse: SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" File bin\686sse\libgig-6.dll + File bin\686sse\libakai-0.dll File bin\686sse\rifftree.exe File bin\686sse\dlsdump.exe File bin\686sse\gigdump.exe File bin\686sse\gigextract.exe + File bin\686sse\gigmerge.exe + File bin\686sse\gig2mono.exe + File bin\686sse\gig2stereo.exe + File bin\686sse\korg2gig.exe + File bin\686sse\korgdump.exe + File bin\686sse\akaidump.exe + File bin\686sse\akaiextract.exe + File bin\686sse\sf2dump.exe Goto done libgig686: SetOutPath "$INSTDIR\${SUBDIR_32_BIT}" File bin\686\libgig-6.dll + File bin\686\libakai-0.dll File bin\686\rifftree.exe File bin\686\dlsdump.exe File bin\686\gigdump.exe File bin\686\gigextract.exe + File bin\686\gigmerge.exe + File bin\686\gig2mono.exe + File bin\686\gig2stereo.exe + File bin\686\korg2gig.exe + File bin\686\korgdump.exe + File bin\686\akaidump.exe + File bin\686\akaiextract.exe + File bin\686\sf2dump.exe Goto done done: