-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.iss
107 lines (95 loc) · 4.16 KB
/
install.iss
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
[Setup]
AppName=C1Bitcrusher
AppVerName=C1Bitcrusher
DefaultDirName={pf}\C1Bitcrusher
DefaultGroupName=C1Bitcrusher
AllowNoIcons=yes
OutputBaseFilename=C1Bitcrusher
Compression=lzma
SolidCompression=yes
ArchitecturesInstallIn64BitMode=X64 IA64
[Languages]
Name: en; MessagesFile: "compiler:Default.isl"
Name: ba; MessagesFile: "compiler:Languages\Basque.isl"
Name: br; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
Name: ca; MessagesFile: "compiler:Languages\Catalan.isl"
Name: cz; MessagesFile: "compiler:Languages\Czech.isl"
Name: da; MessagesFile: "compiler:Languages\Danish.isl"
Name: nl; MessagesFile: "compiler:Languages\Dutch.isl"
Name: fi; MessagesFile: "compiler:Languages\Finnish.isl"
Name: fr; MessagesFile: "compiler:Languages\French.isl"
Name: de; MessagesFile: "compiler:Languages\German.isl"
Name: he; MessagesFile: "compiler:Languages\Hebrew.isl"
Name: hu; MessagesFile: "compiler:Languages\Hungarian.isl"
Name: it; MessagesFile: "compiler:Languages\Italian.isl"
Name: ja; MessagesFile: "compiler:Languages\Japanese.isl"
Name: no; MessagesFile: "compiler:Languages\Norwegian.isl"
Name: pl; MessagesFile: "compiler:Languages\Polish.isl"
Name: pt; MessagesFile: "compiler:Languages\Portuguese.isl"
Name: ru; MessagesFile: "compiler:Languages\Russian.isl"
Name: se; MessagesFile: "compiler:Languages\SerbianLatin.isl"
Name: se2; MessagesFile: "compiler:Languages\SerbianCyrillic.isl"
Name: sl; MessagesFile: "compiler:Languages\Slovak.isl"
Name: sl2; MessagesFile: "compiler:Languages\Slovenian.isl"
Name: sp; MessagesFile: "compiler:Languages\Spanish.isl"
Name: uk; MessagesFile: "compiler:Languages\Ukrainian.isl"
[Components]
Name: "Docs"; Description: "Documentation"; Types: "full"
Name: "VST32"; Description: "32-bit VST Plug-in"; Types: "full"
Name: "VST64"; Description: "64-bit VST Plug-in"; Types: "full"; Check: Is64BitInstallMode
[Files]
Source: "LICENSE.TXT"; DestDir: "{app}"; Components: "Docs"
Source: "readme.md"; DestDir: "{app}"; Components: "Docs"; DestName: "readme.txt"
Source: "C1Bitcrusher.dll"; DestDir: {code:GetVSTDir_32}; Components: VST32
Source: "C1Bitcrusher_IA64.dll"; DestDir: {code:GetVSTDir_64}; Components: VST64; Check: IsIA64
Source: "C1Bitcrusher_X64.dll"; DestDir: {code:GetVSTDir_64}; Components: VST64; Check: IsX64
[Icons]
Name: "{group}\License"; Filename: "{app}\LICENSE.TXT"; Components: "Docs"
Name: "{group}\Readme"; Filename: "{app}\readme.txt"; Components: "Docs"
Name: "{group}\Uninstall"; Filename: "{uninstallexe}"
[Messages]
SelectDirLabel3=The documentation will be installed in the following folder.
[Code]
function IsX64: Boolean;
begin
Result := Is64BitInstallMode and (ProcessorArchitecture = paX64);
end;
function IsIA64: Boolean;
begin
Result := Is64BitInstallMode and (ProcessorArchitecture = paIA64);
end;
var
VSTDirPage_32: TInputDirWizardPage;
VSTDirPage_64: TInputDirWizardPage;
procedure InitializeWizard;
begin
if IsWin64 then begin
VSTDirPage_64 := CreateInputDirPage(wpSelectDir,
'Confirm 64-Bit VST Plug-in Directory', '',
'Select the folder in which setup should install the 64-bit VST Plug-in, then click Next.',
False, '');
VSTDirPage_64.Add('');
VSTDirPage_64.Values[0] := ExpandConstant('{reg:HKLM\SOFTWARE\VST,VSTPluginsPath|{pf}\Steinberg\VSTPlugins}\');
VSTDirPage_32 := CreateInputDirPage(wpSelectDir,
'Confirm 32-Bit VST Plug-in Directory', '',
'Select the folder in which setup should install the 32-bit VST Plug-in, then click Next.',
False, '');
VSTDirPage_32.Add('');
VSTDirPage_32.Values[0] := ExpandConstant('{reg:HKLM\SOFTWARE\WOW6432NODE\VST,VSTPluginsPath|{pf32}\Steinberg\VSTPlugins}\');
end else begin
VSTDirPage_32 := CreateInputDirPage(wpSelectDir,
'Confirm 32-Bit VST Plug-in Directory', '',
'Select the folder in which setup should install the 32-bit VST Plug-in, then click Next.',
False, '');
VSTDirPage_32.Add('');
VSTDirPage_32.Values[0] := ExpandConstant('{reg:HKLM\SOFTWARE\VST,VSTPluginsPath|{pf}\Steinberg\VSTPlugins}\');
end;
end;
function GetVSTDir_32(Param: String): String;
begin
Result := VSTDirPage_32.Values[0]
end;
function GetVSTDir_64(Param: String): String;
begin
Result := VSTDirPage_64.Values[0]
end;