f@0
|
1 [Setup]
|
f@0
|
2 AppName=AccessibleSpectrumAnalyser
|
f@0
|
3 AppVersion=1.0.0
|
f@0
|
4 DefaultDirName={pf}\AccessibleSpectrumAnalyser
|
f@0
|
5 DefaultGroupName=AccessibleSpectrumAnalyser
|
f@0
|
6 Compression=lzma2
|
f@0
|
7 SolidCompression=yes
|
f@0
|
8 OutputDir=.\
|
f@0
|
9 ArchitecturesInstallIn64BitMode=x64
|
f@0
|
10 OutputBaseFilename=AccessibleSpectrumAnalyser Installer
|
f@0
|
11 LicenseFile=license.rtf
|
f@0
|
12 SetupLogging=yes
|
f@0
|
13
|
f@0
|
14 [Types]
|
f@0
|
15 Name: "full"; Description: "Full installation"
|
f@0
|
16 Name: "custom"; Description: "Custom installation"; Flags: iscustom
|
f@0
|
17
|
f@0
|
18 [Components]
|
f@0
|
19 Name: "app"; Description: "Standalone application (.exe)"; Types: full custom;
|
f@0
|
20 Name: "vst2_32"; Description: "32-bit VST2 Plugin (.dll)"; Types: full custom;
|
f@0
|
21 Name: "vst2_64"; Description: "64-bit VST2 Plugin (.dll)"; Types: full custom; Check: Is64BitInstallMode;
|
f@0
|
22 Name: "vst3_32"; Description: "32-bit VST3 Plugin (.vst3)"; Types: full custom;
|
f@0
|
23 Name: "vst3_64"; Description: "64-bit VST3 Plugin (.vst3)"; Types: full custom; Check: Is64BitInstallMode;
|
f@0
|
24 Name: "rtas_32"; Description: "32-bit RTAS Plugin (.dpm)"; Types: full custom;
|
f@0
|
25 Name: "aax_32"; Description: "32-bit AAX Plugin (.aaxplugin)"; Types: full custom;
|
f@0
|
26 Name: "aax_64"; Description: "64-bit AAX Plugin (.aaxplugin)"; Types: full custom; Check: Is64BitInstallMode;
|
f@0
|
27 Name: "manual"; Description: "User guide"; Types: full custom; Flags: fixed
|
f@0
|
28
|
f@0
|
29 [Files]
|
f@0
|
30 Source: "..\build-win\app\Win32\bin\AccessibleSpectrumAnalyser.exe"; DestDir: "{app}"; Check: not Is64BitInstallMode; Components:app; Flags: ignoreversion;
|
f@0
|
31 Source: "..\build-win\app\x64\bin\AccessibleSpectrumAnalyser.exe"; DestDir: "{app}"; Check: Is64BitInstallMode; Components:app; Flags: ignoreversion;
|
f@0
|
32
|
f@0
|
33 Source: "..\build-win\vst2\Win32\bin\AccessibleSpectrumAnalyser.dll"; DestDir: {code:GetVST2Dir_32}; Check: not Is64BitInstallMode; Components:vst2_32; Flags: ignoreversion;
|
f@0
|
34 Source: "..\build-win\vst2\Win32\bin\AccessibleSpectrumAnalyser.dll"; DestDir: {code:GetVST2Dir_32}; Check: Is64BitInstallMode; Components:vst2_32; Flags: ignoreversion;
|
f@0
|
35 Source: "..\build-win\vst2\x64\bin\AccessibleSpectrumAnalyser.dll"; DestDir: {code:GetVST2Dir_64}; Check: Is64BitInstallMode; Components:vst2_64; Flags: ignoreversion;
|
f@0
|
36
|
f@0
|
37 Source: "..\build-win\vst3\Win32\bin\AccessibleSpectrumAnalyser.vst3"; DestDir: "{cf}\VST3\"; Check: not Is64BitInstallMode; Components:vst3_32; Flags: ignoreversion;
|
f@0
|
38 Source: "..\build-win\vst3\Win32\bin\AccessibleSpectrumAnalyser.vst3"; DestDir: "{cf32}\VST3\"; Check: Is64BitInstallMode; Components:vst3_32; Flags: ignoreversion;
|
f@0
|
39 Source: "..\build-win\vst3\x64\bin\AccessibleSpectrumAnalyser.vst3"; DestDir: "{cf64}\VST3\"; Check: Is64BitInstallMode; Components:vst3_64; Flags: ignoreversion;
|
f@0
|
40
|
f@0
|
41 Source: "..\build-win\rtas\bin\AccessibleSpectrumAnalyser.dpm"; DestDir: "{cf32}\Digidesign\DAE\Plug-Ins\"; Components:rtas_32; Flags: ignoreversion;
|
f@0
|
42 Source: "..\build-win\rtas\bin\AccessibleSpectrumAnalyser.dpm.rsr"; DestDir: "{cf32}\Digidesign\DAE\Plug-Ins\"; Components:rtas_32; Flags: ignoreversion;
|
f@0
|
43
|
f@0
|
44 Source: "..\build-win\aax\bin\AccessibleSpectrumAnalyser.aaxplugin\*.*"; DestDir: "{cf32}\Avid\Audio\Plug-Ins\AccessibleSpectrumAnalyser.aaxplugin\"; Components:aax_32; Flags: ignoreversion recursesubdirs;
|
f@0
|
45 Source: "..\build-win\aax\bin\AccessibleSpectrumAnalyser.aaxplugin\*.*"; DestDir: "{cf}\Avid\Audio\Plug-Ins\AccessibleSpectrumAnalyser.aaxplugin\"; Components:aax_64; Flags: ignoreversion recursesubdirs;
|
f@0
|
46
|
f@0
|
47 Source: "..\manual\AccessibleSpectrumAnalyser_manual.pdf"; DestDir: "{app}"
|
f@0
|
48 Source: "changelog.txt"; DestDir: "{app}"
|
f@0
|
49 Source: "readmewin.rtf"; DestDir: "{app}"; DestName: "readme.rtf"; Flags: isreadme
|
f@0
|
50
|
f@0
|
51 [Icons]
|
f@0
|
52 Name: "{group}\AccessibleSpectrumAnalyser"; Filename: "{app}\AccessibleSpectrumAnalyser.exe"
|
f@0
|
53 Name: "{group}\User guide"; Filename: "{app}\AccessibleSpectrumAnalyser_manual.pdf"
|
f@0
|
54 Name: "{group}\Changelog"; Filename: "{app}\changelog.txt"
|
f@0
|
55 ;Name: "{group}\readme"; Filename: "{app}\readme.rtf"
|
f@0
|
56 Name: "{group}\Uninstall AccessibleSpectrumAnalyser"; Filename: "{app}\unins000.exe"
|
f@0
|
57
|
f@0
|
58 ;[Dirs]
|
f@0
|
59 ;Name: {cf}\Digidesign\DAE\Plugins\
|
f@0
|
60
|
f@0
|
61 [Code]
|
f@0
|
62 var
|
f@0
|
63 OkToCopyLog : Boolean;
|
f@0
|
64 VST2DirPage_32: TInputDirWizardPage;
|
f@0
|
65 VST2DirPage_64: TInputDirWizardPage;
|
f@0
|
66
|
f@0
|
67 procedure InitializeWizard;
|
f@0
|
68 begin
|
f@0
|
69 if IsWin64 then begin
|
f@0
|
70 VST2DirPage_64 := CreateInputDirPage(wpSelectDir,
|
f@0
|
71 'Confirm 64-Bit VST2 Plugin Directory', '',
|
f@0
|
72 'Select the folder in which setup should install the 64-bit VST2 Plugin, then click Next.',
|
f@0
|
73 False, '');
|
f@0
|
74 VST2DirPage_64.Add('');
|
f@0
|
75 VST2DirPage_64.Values[0] := ExpandConstant('{reg:HKLM\SOFTWARE\VST,VSTPluginsPath|{pf}\Steinberg\VSTPlugins}\');
|
f@0
|
76
|
f@0
|
77 VST2DirPage_32 := CreateInputDirPage(wpSelectDir,
|
f@0
|
78 'Confirm 32-Bit VST2 Plugin Directory', '',
|
f@0
|
79 'Select the folder in which setup should install the 32-bit VST2 Plugin, then click Next.',
|
f@0
|
80 False, '');
|
f@0
|
81 VST2DirPage_32.Add('');
|
f@0
|
82 VST2DirPage_32.Values[0] := ExpandConstant('{reg:HKLM\SOFTWARE\WOW6432NODE\VST,VSTPluginsPath|{pf32}\Steinberg\VSTPlugins}\');
|
f@0
|
83 end else begin
|
f@0
|
84 VST2DirPage_32 := CreateInputDirPage(wpSelectDir,
|
f@0
|
85 'Confirm 32-Bit VST2 Plugin Directory', '',
|
f@0
|
86 'Select the folder in which setup should install the 32-bit VST2 Plugin, then click Next.',
|
f@0
|
87 False, '');
|
f@0
|
88 VST2DirPage_32.Add('');
|
f@0
|
89 VST2DirPage_32.Values[0] := ExpandConstant('{reg:HKLM\SOFTWARE\VST,VSTPluginsPath|{pf}\Steinberg\VSTPlugins}\');
|
f@0
|
90 end;
|
f@0
|
91 end;
|
f@0
|
92
|
f@0
|
93 function GetVST2Dir_32(Param: String): String;
|
f@0
|
94 begin
|
f@0
|
95 Result := VST2DirPage_32.Values[0]
|
f@0
|
96 end;
|
f@0
|
97
|
f@0
|
98 function GetVST2Dir_64(Param: String): String;
|
f@0
|
99 begin
|
f@0
|
100 Result := VST2DirPage_64.Values[0]
|
f@0
|
101 end;
|
f@0
|
102
|
f@0
|
103 procedure CurStepChanged(CurStep: TSetupStep);
|
f@0
|
104 begin
|
f@0
|
105 if CurStep = ssDone then
|
f@0
|
106 OkToCopyLog := True;
|
f@0
|
107 end;
|
f@0
|
108
|
f@0
|
109 procedure DeinitializeSetup();
|
f@0
|
110 begin
|
f@0
|
111 if OkToCopyLog then
|
f@0
|
112 FileCopy (ExpandConstant ('{log}'), ExpandConstant ('{app}\InstallationLogFile.log'), FALSE);
|
f@0
|
113 RestartReplace (ExpandConstant ('{log}'), '');
|
f@0
|
114 end;
|
f@0
|
115
|
f@0
|
116 [UninstallDelete]
|
f@0
|
117 Type: files; Name: "{app}\InstallationLogFile.log" |