Repository navigation
Expand file tree
/
Copy pathinstaller.iss
More file actions
84 lines (74 loc) · 2.4 KB
/
Copy pathinstaller.iss
File metadata and controls
84 lines (74 loc) · 2.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
[Setup]
AppName=Empty Void VST3
AppVersion=1.0.0
AppPublisher=sttek.com
AppPublisherURL=https://sttek.com
AppSupportURL=https://sttek.com
AppUpdatesURL=https://sttek.com
DefaultDirName={commoncf}\VST3\EmptyVoid.vst3
DefaultGroupName=STTek
AllowNoIcons=yes
OutputBaseFilename=EmptyVoid-Installer-1.0.0
Compression=lzma
SolidCompression=yes
WizardStyle=modern
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
PrivilegesRequired=admin
UsedUserAreasWarning=no
UninstallDisplayIcon={app}\Contents\x86_64-win\EmptyVoid.vst3
DisableDirPage=no
DisableProgramGroupPage=yes
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Files]
Source: "build\EmptyVoid_artefacts\Release\VST3\EmptyVoid.vst3\Contents\x86_64-win\*"; DestDir: "{app}\Contents\x86_64-win"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "build\EmptyVoid_artefacts\Release\VST3\EmptyVoid.vst3\Contents\Resources\moduleinfo.json"; DestDir: "{app}\Contents\Resources"; Flags: ignoreversion
[Icons]
Name: "{group}\Uninstall Empty Void VST3"; Filename: "{uninstallexe}"
[Code]
var
InstallScopePage: TInputOptionWizardPage;
procedure InitializeWizard;
begin
InstallScopePage := CreateInputOptionPage(wpLicense,
'Installation Scope', 'Choose the installation scope for this plugin.',
'Select whether to install for the current user only or for all users.',
True, False);
InstallScopePage.Add('Install only for me');
InstallScopePage.Add('Install for all users');
InstallScopePage.Values[0] := True;
end;
function NextButtonClick(CurPageID: Integer): Boolean;
var
UserVST3Path, SystemVST3Path: string;
begin
Result := True;
if CurPageID = InstallScopePage.ID then
begin
UserVST3Path := ExpandConstant('{localappdata}\Programs/Common/VST3\EmptyVoid.vst3');
SystemVST3Path := ExpandConstant('{commoncf}\VST3\EmptyVoid.vst3');
if InstallScopePage.Values[0] then
begin
WizardForm.DirEdit.Text := UserVST3Path;
end
else
begin
WizardForm.DirEdit.Text := SystemVST3Path;
end;
end;
end;
procedure CurPageChanged(CurPageID: Integer);
begin
if CurPageID = wpSelectDir then
begin
if InstallScopePage.Values[0] then
begin
WizardForm.DirEdit.Text := ExpandConstant('{localappdata}\Programs\Common\VST3\EmptyVoid.vst3');
end
else
begin
WizardForm.DirEdit.Text := ExpandConstant('{commoncf}\VST3\EmptyVoid.vst3');
end;
end;
end;