diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-08-11 19:28:51 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-08-11 19:29:14 (GMT) |
commit | 0a2f7274a08ab5ed6e1305977d85fa02b01aaea7 (patch) | |
tree | 512d1c55a363bc8cda6fdf79a4a0e4be693be931 | |
parent | 8fa9a04d820f73dc00b3dcb137b417b846e6ff68 (diff) | |
download | swift-contrib-0a2f7274a08ab5ed6e1305977d85fa02b01aaea7.zip swift-contrib-0a2f7274a08ab5ed6e1305977d85fa02b01aaea7.tar.bz2 |
Making the nsis installer copy qt files et al.
-rw-r--r-- | Swift/Packaging/nsis/swift.nsi (renamed from tools/nsis/swift.nsi) | 49 |
1 files changed, 35 insertions, 14 deletions
diff --git a/tools/nsis/swift.nsi b/Swift/Packaging/nsis/swift.nsi index 577becb..f62450b 100644 --- a/tools/nsis/swift.nsi +++ b/Swift/Packaging/nsis/swift.nsi @@ -1,5 +1,14 @@ +# set dependencies +!define buildDate "20090811" +!define swiftBuildDir "..\..\QtUI\" +!define openSSLDir "G:\usr\openssl-0.9.8a.win32\bin" +!define msvccRedistributableDir "G:\devel\vcredist" +!define msvccRedistributableExe "vcredist_x86.exe" +!define qtDLLDir "G:\Qt\4.5.2-lgpl-vs2008\bin" + + # define installer name -outFile "Swift-installer-win32.exe" +outFile "Swift-installer-win32-${buildDate}.exe" # set desktop as install directory installDir "$PROGRAMFILES\Swift" @@ -12,16 +21,21 @@ section "Main install" # define output path setOutPath $INSTDIR -# specify files to go in output path -file ..\..\src\UI\Qt\release\* +# Specify files to go in output path. +# If you update this list, update the uninstall list too. +file ${swiftBuildDir}\Swift.exe +file ${openSSLDir}\ssleay32.dll +file ${openSSLDir}\libeay32.dll +file ${qtDLLDir}\phonon4.dll +file ${qtDLLDir}\QtCore4.dll +file ${qtDLLDir}\QtGui4.dll +file ${qtDLLDir}\QtWebKit4.dll +file ${qtDLLDir}\QtNetwork4.dll # create start menu item createShortCut "$SMPROGRAMS\Swift\Swift.lnk" "$INSTDIR\Swift.exe" createShortCut "$SMPROGRAMS\Swift\Unistall Swift.lnk" "$INSTDIR\unistall.exe" -# We /could/ start on login: -# WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Run" "Swift" "$INSTDIR\Swift.exe" - # Add the information to Add/Remove WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Swift" "DisplayName" "Swift" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Swift" "UninstallString" "$\"$INSTDIR\uninstall.exe$\"" @@ -36,18 +50,18 @@ sectionEnd Section -Prerequisites # http://nsis.sourceforge.net/Embedding_other_installers - SetOutPath $INSTDIR\Prerequisites - MessageBox MB_YESNO "Install C++ Runtime?" /SD IDYES IDNO endRuntime - File ..\..\vcredist_x86.exe - ExecWait "$INSTDIR\Prerequisites\vcredist_x86.exe" - delete $INSTDIR\Prerequisites\vcredist_x86.exe + SetOutPath $INSTDIR\Prerequisites + MessageBox MB_YESNO "Install C++ Runtime?" /SD IDYES IDNO endRuntime + File ${msvccRedistributableDir}\${msvccRedistributableExe} + ExecWait "$INSTDIR\Prerequisites\${msvccRedistributableExe}" + delete $INSTDIR\Prerequisites\${msvccRedistributableExe} delete $INSTDIR\Prerequisites Goto endRuntime endRuntime: SectionEnd section "autostart" - MessageBox MB_YESNO "Run at startup?" /SD IDYES IDNO endAutostart + MessageBox MB_YESNO "Would you like Swift to run at startup?" /SD IDYES IDNO endAutostart WriteRegStr HKEY_LOCAL_MACHINE "Software\Microsoft\Windows\CurrentVersion\Run" "Swift" "$INSTDIR\Swift.exe" Goto endAutostart endAutostart: @@ -56,12 +70,19 @@ sectionEnd # create a section to define what the uninstaller does. # the section will always be named "Uninstall" section "Uninstall" - MessageBox MB_YESNO "The uninstaller will delete the entire Swift folder, including any user-created files. Are you sure?" /SD IDYES IDNO endUninstall + MessageBox MB_YESNO "The uninstaller will remove Swift. Are you sure?" /SD IDYES IDNO endUninstall # Always delete uninstaller first delete $INSTDIR\uninstaller.exe # now delete installed files - delete $INSTDIR\* + delete $INSTDIR\Swift.exe + delete $INSTDIR\ssleay32.dll + delete $INSTDIR\libeay32.dll + delete $INSTDIR\phonon4.dll + delete $INSTDIR\QtCore4.dll + delete $INSTDIR\QtGui4.dll + delete $INSTDIR\QtWebKit4.dll + delete $INSTDIR\QtNetwork4.dll Goto endUninstall endUninstall: sectionEnd |