TemplateProject.iss (8129B)
1 [Setup] 2 AppName=TemplateProject 3 AppContact=spam@spam.com 4 AppCopyright=Copyright (C) 2020 MANUFACTURER 5 AppPublisher=MANUFACTURER 6 AppPublisherURL=http://www.spam.com 7 AppSupportURL=http://www.spam.com 8 AppVersion=0.0.0 9 VersionInfoVersion=1.0.0 10 DefaultDirName={pf}\TemplateProject 11 DefaultGroupName=TemplateProject 12 Compression=lzma2 13 SolidCompression=yes 14 OutputDir=.\..\build-win\installer 15 ArchitecturesInstallIn64BitMode=x64 16 OutputBaseFilename=TemplateProject Installer 17 LicenseFile=license.rtf 18 SetupLogging=yes 19 ShowComponentSizes=no 20 ; WizardImageFile=installer_bg-win.bmp 21 ; WizardSmallImageFile=installer_icon-win.bmp 22 23 [Types] 24 Name: "full"; Description: "Full installation" 25 Name: "custom"; Description: "Custom installation"; Flags: iscustom 26 27 [Messages] 28 WelcomeLabel1=Welcome to the TemplateProject installer 29 SetupWindowTitle=TemplateProject installer 30 SelectDirLabel3=The standalone application and supporting files will be installed in the following folder. 31 SelectDirBrowseLabel=To continue, click Next. If you would like to select a different folder (not recommended), click Browse. 32 33 [Components] 34 Name: "app"; Description: "Standalone application (.exe)"; Types: full custom; 35 ;Name: "vst2_32"; Description: "32-bit VST2 Plugin (.dll)"; Types: full custom; 36 ;Name: "vst2_64"; Description: "64-bit VST2 Plugin (.dll)"; Types: full custom; Check: Is64BitInstallMode; 37 ;Name: "vst3_32"; Description: "32-bit VST3 Plugin (.vst3)"; Types: full custom; 38 Name: "vst3_64"; Description: "64-bit VST3 Plugin (.vst3)"; Types: full custom; Check: Is64BitInstallMode; 39 ;Name: "aax_32"; Description: "32-bit AAX Plugin (.aaxplugin)"; Types: full custom; 40 ;Name: "aax_64"; Description: "64-bit AAX Plugin (.aaxplugin)"; Types: full custom; Check: Is64BitInstallMode; 41 Name: "manual"; Description: "User guide"; Types: full custom; Flags: fixed 42 43 [Dirs] 44 ;Name: "{cf32}\Avid\Audio\Plug-Ins\TemplateProject.aaxplugin\"; Attribs: readonly; Components:aax_32; 45 ;Name: "{cf64}\Avid\Audio\Plug-Ins\TemplateProject.aaxplugin\"; Attribs: readonly; Check: Is64BitInstallMode; Components:aax_64; 46 ;Name: "{cf32}\VST3\TemplateProject.vst3\"; Attribs: readonly; Components:vst3_32; 47 Name: "{cf64}\VST3\TemplateProject.vst3\"; Attribs: readonly; Check: Is64BitInstallMode; Components:vst3_64; 48 49 [Files] 50 ;Source: "..\build-win\TemplateProject_Win32.exe"; DestDir: "{app}"; Check: not Is64BitInstallMode; Components:app; Flags: ignoreversion; 51 Source: "..\build-win\TemplateProject_x64.exe"; DestDir: "{app}"; Check: Is64BitInstallMode; Components:app; Flags: ignoreversion; 52 53 ;Source: "..\build-win\TemplateProject_Win32.dll"; DestDir: {code:GetVST2Dir_32}; Check: not Is64BitInstallMode; Components:vst2_32; Flags: ignoreversion; 54 ;Source: "..\build-win\TemplateProject_Win32.dll"; DestDir: {code:GetVST2Dir_32}; Check: Is64BitInstallMode; Components:vst2_32; Flags: ignoreversion; 55 ;Source: "..\build-win\TemplateProject_x64.dll"; DestDir: {code:GetVST2Dir_64}; Check: Is64BitInstallMode; Components:vst2_64; Flags: ignoreversion; 56 57 ;Source: "..\build-win\TemplateProject.vst3\*.*"; Excludes: "\Contents\x86_64\*,*.pdb,*.exp,*.lib,*.ilk,*.ico,*.ini"; DestDir: "{cf32}\VST3\TemplateProject.vst3\"; Components:vst3_32; Flags: ignoreversion recursesubdirs; 58 ;Source: "..\build-win\TemplateProject.vst3\Desktop.ini"; DestDir: "{cf32}\VST3\TemplateProject.vst3\"; Components:vst3_32; Flags: overwritereadonly ignoreversion; Attribs: hidden system; 59 ;Source: "..\build-win\TemplateProject.vst3\PlugIn.ico"; DestDir: "{cf32}\VST3\TemplateProject.vst3\"; Components:vst3_32; Flags: overwritereadonly ignoreversion; Attribs: hidden system; 60 61 Source: "..\build-win\TemplateProject.vst3\*.*"; Excludes: "\Contents\x86\*,*.pdb,*.exp,*.lib,*.ilk,*.ico,*.ini"; DestDir: "{cf64}\VST3\TemplateProject.vst3\"; Check: Is64BitInstallMode; Components:vst3_64; Flags: ignoreversion recursesubdirs; 62 Source: "..\build-win\TemplateProject.vst3\Desktop.ini"; DestDir: "{cf64}\VST3\TemplateProject.vst3\"; Check: Is64BitInstallMode; Components:vst3_64; Flags: overwritereadonly ignoreversion; Attribs: hidden system; 63 Source: "..\build-win\TemplateProject.vst3\PlugIn.ico"; DestDir: "{cf64}\VST3\TemplateProject.vst3\"; Check: Is64BitInstallMode; Components:vst3_64; Flags: overwritereadonly ignoreversion; Attribs: hidden system; 64 65 ;Source: "..\build-win\aax\bin\TemplateProject.aaxplugin\*.*"; Excludes: "\Contents\x64\*,*.pdb,*.exp,*.lib,*.ilk,*.ico,*.ini"; DestDir: "{cf32}\Avid\Audio\Plug-Ins\TemplateProject.aaxplugin\"; Components:aax_32; Flags: ignoreversion recursesubdirs; 66 ;Source: "..\build-win\aax\bin\TemplateProject.aaxplugin\Desktop.ini"; DestDir: "{cf32}\Avid\Audio\Plug-Ins\TemplateProject.aaxplugin\"; Components:aax_32; Flags: overwritereadonly ignoreversion; Attribs: hidden system; 67 ;Source: "..\build-win\aax\bin\TemplateProject.aaxplugin\PlugIn.ico"; DestDir: "{cf32}\Avid\Audio\Plug-Ins\TemplateProject.aaxplugin\"; Components:aax_32; Flags: overwritereadonly ignoreversion; Attribs: hidden system; 68 69 ;Source: "..\build-win\TemplateProject.aaxplugin\*.*"; Excludes: "\Contents\Win32\*,*.pdb,*.exp,*.lib,*.ilk,*.ico,*.ini"; DestDir: "{cf64}\Avid\Audio\Plug-Ins\TemplateProject.aaxplugin\"; Check: Is64BitInstallMode; Components:aax_64; Flags: ignoreversion recursesubdirs; 70 ;Source: "..\build-win\TemplateProject.aaxplugin\Desktop.ini"; DestDir: "{cf64}\Avid\Audio\Plug-Ins\TemplateProject.aaxplugin\"; Check: Is64BitInstallMode; Components:aax_64; Flags: overwritereadonly ignoreversion; Attribs: hidden system; 71 ;Source: "..\build-win\TemplateProject.aaxplugin\PlugIn.ico"; DestDir: "{cf64}\Avid\Audio\Plug-Ins\TemplateProject.aaxplugin\"; Check: Is64BitInstallMode; Components:aax_64; Flags: overwritereadonly ignoreversion; Attribs: hidden system; 72 73 Source: "..\manual\TemplateProject manual.pdf"; DestDir: "{app}" 74 Source: "changelog.txt"; DestDir: "{app}" 75 Source: "readme-win.rtf"; DestDir: "{app}"; DestName: "readme.rtf"; Flags: isreadme 76 77 [Icons] 78 Name: "{group}\TemplateProject"; Filename: "{app}\TemplateProject_x64.exe" 79 Name: "{group}\User guide"; Filename: "{app}\TemplateProject manual.pdf" 80 Name: "{group}\Changelog"; Filename: "{app}\changelog.txt" 81 ;Name: "{group}\readme"; Filename: "{app}\readme.rtf" 82 Name: "{group}\Uninstall TemplateProject"; Filename: "{app}\unins000.exe" 83 84 [Code] 85 var 86 OkToCopyLog : Boolean; 87 (* 88 VST2DirPage_32: TInputDirWizardPage; 89 VST2DirPage_64: TInputDirWizardPage; 90 91 procedure InitializeWizard; 92 begin 93 if IsWin64 then begin 94 VST2DirPage_64 := CreateInputDirPage(wpSelectDir, 95 'Confirm 64-Bit VST2 Plugin Directory', '', 96 'Select the folder in which setup should install the 64-bit VST2 Plugin, then click Next.', 97 False, ''); 98 VST2DirPage_64.Add(''); 99 VST2DirPage_64.Values[0] := ExpandConstant('{reg:HKLM\SOFTWARE\VST,VSTPluginsPath|{pf}\Steinberg\VSTPlugins}\'); 100 101 VST2DirPage_32 := CreateInputDirPage(wpSelectDir, 102 'Confirm 32-Bit VST2 Plugin Directory', '', 103 'Select the folder in which setup should install the 32-bit VST2 Plugin, then click Next.', 104 False, ''); 105 VST2DirPage_32.Add(''); 106 VST2DirPage_32.Values[0] := ExpandConstant('{reg:HKLM\SOFTWARE\WOW6432NODE\VST,VSTPluginsPath|{pf32}\Steinberg\VSTPlugins}\'); 107 end else begin 108 VST2DirPage_32 := CreateInputDirPage(wpSelectDir, 109 'Confirm 32-Bit VST2 Plugin Directory', '', 110 'Select the folder in which setup should install the 32-bit VST2 Plugin, then click Next.', 111 False, ''); 112 VST2DirPage_32.Add(''); 113 VST2DirPage_32.Values[0] := ExpandConstant('{reg:HKLM\SOFTWARE\VST,VSTPluginsPath|{pf}\Steinberg\VSTPlugins}\'); 114 end; 115 end; 116 117 function GetVST2Dir_32(Param: String): String; 118 begin 119 Result := VST2DirPage_32.Values[0] 120 end; 121 122 function GetVST2Dir_64(Param: String): String; 123 begin 124 Result := VST2DirPage_64.Values[0] 125 end; 126 *) 127 128 procedure CurStepChanged(CurStep: TSetupStep); 129 begin 130 if CurStep = ssDone then 131 OkToCopyLog := True; 132 end; 133 134 procedure DeinitializeSetup(); 135 begin 136 if OkToCopyLog then 137 FileCopy (ExpandConstant ('{log}'), ExpandConstant ('{app}\InstallationLogFile.log'), FALSE); 138 RestartReplace (ExpandConstant ('{log}'), ''); 139 end; 140 141 [UninstallDelete] 142 Type: files; Name: "{app}\InstallationLogFile.log"