1 #!Nsis Installer Command Script
3 # This is an NSIS Installer Command Script generated automatically
4 # by the Fedora nsiswrapper program. For more information see:
6 # http://fedoraproject.org/wiki/MinGW
8 # To build an installer from the script you would normally do:
10 # makensis this_script
12 # which will generate the output file 'installer.exe' which is a Windows
13 # installer containing your program.
15 SetCompressor /SOLID lzma
16 SetCompressorDictSize 32
20 !define MUI_ABORTWARNING
21 !define MUI_ICON ..\icons\icon\ardour.ico
22 !define MUI_UNICON "${NSISDIR}\Contrib\Graphics\Icons\modern-uninstall.ico"
23 ;!define MUI_HEADERIMAGE
24 ;!define MUI_HEADERIMAGE_BITMAP header.bmp
25 ;!define MUI_WELCOMEFINISHPAGE_BITMAP welcomefinish.bmp
26 ;!define MUI_COMPONENTSPAGE_SMALLDESC
29 !insertmacro MUI_PAGE_WELCOME
31 LicenseForceSelection off
33 !define MUI_LICENSEPAGE_BUTTON "$(^NextBtn)"
34 !define MUI_LICENSEPAGE_TEXT_BOTTOM "$(LICENSE_BOTTOM_TEXT)"
35 !insertmacro MUI_PAGE_LICENSE ..\COPYING
37 !insertmacro MUI_PAGE_DIRECTORY
39 !insertmacro MUI_PAGE_INSTFILES
41 !define MUI_FINISHPAGE_RUN "$INSTDIR\Ardour-3.0.exe"
42 !insertmacro MUI_PAGE_FINISH
45 !insertmacro MUI_UNPAGE_CONFIRM
47 !insertmacro MUI_UNPAGE_INSTFILES
48 ShowUninstDetails hide
49 !insertmacro MUI_UNPAGE_FINISH
51 !insertmacro MUI_LANGUAGE "English"
54 ;!define DUMMYINSTALL ; Define this to make it build quickly, not including any of the files or code in the sections, for quick testing of features of the installer and development thereof.
55 !define INSTDIR_KEY "SOFTWARE\Ardour-3.0"
59 OutFile "Ardour-3.0-Setup.exe"
60 InstallDir "$PROGRAMFILES\Ardour"
61 InstallDirRegKey HKLM "${INSTDIR_KEY}" "Install_Dir"
64 ComponentText "Select which optional components you want to install."
66 DirText "Please select the installation folder."
85 Section "Start Menu Shortcuts"
87 CreateDirectory "$SMPROGRAMS\Ardour-3.0"
88 CreateShortCut "$SMPROGRAMS\Ardour-3.0\Uninstall Ardour-3.0.lnk" "$INSTDIR\Uninstall Ardour-3.0.exe" "" "$INSTDIR\Uninstall Ardour-3.0.exe" 0
89 CreateShortCut "$SMPROGRAMS\Ardour-3.0\ardour-3.0.exe.lnk" "$INSTDIR\.\ardour-3.0.exe" "" "$INSTDIR\ardour.ico" 0
93 Section "Desktop Icons"
95 CreateShortCut "$DESKTOP\Ardour-3.0.exe.lnk" "$INSTDIR\ardour-3.0.exe" "" "$INSTDIR\ardour.ico"
100 !ifndef DUMMY_INSTALL
101 Delete /rebootok "$DESKTOP\ardour-3.0.exe.lnk"
102 Delete /rebootok "$SMPROGRAMS\Ardour-3.0\ardour-3.0.exe.lnk"
103 Delete /rebootok "$SMPROGRAMS\Ardour-3.0\Uninstall Ardour-3.0.lnk"
104 RMDir "$SMPROGRAMS\Ardour-3.0"
107 Delete /rebootok "$INSTDIR\ardour-3.0.exe"
108 Delete /rebootok "$INSTDIR\jack*.exe"
109 Delete /rebootok "$INSTDIR\*.dll"
110 Delete /rebootok "$INSTDIR\ardour.ico"
111 RMDir /r "$INSTDIR\etc"
112 RMDir /r "$INSTDIR\jack"
113 RMDir /r "$INSTDIR\lib"
114 RMDir /r "$INSTDIR\share"
120 !ifndef DUMMY_INSTALL
121 WriteUninstaller "$INSTDIR\Uninstall Ardour-3.0.exe"