Repository navigation
Expand file tree
/
Copy pathSetup.iss
More file actions
110 lines (100 loc) · 4.49 KB
/
Copy pathSetup.iss
File metadata and controls
110 lines (100 loc) · 4.49 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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
; Non-commercial use only
#ifndef MyAppName
#define MyAppName "VeriRandom"
#endif
#ifndef MyAppVersion
#define MyAppVersion "APP_VERSION"
#endif
#define MyAppPublisher "WinFunan"
; Renamed together with the desktop head; keep this in step with the AssemblyName of VeriRandom.Desktop.
#define MyAppExeName "VeriRandom.Desktop.exe"
#define MyAppURL "https://github.com/WinFunan/VeriRandom"
#ifndef MyAppOutDir
#define MyAppOutDir "APP_OUTDIR"
#endif
[Setup]
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
; VeriRandom coexists with upstream SecRandom on the same machine, so this MUST stay a distinct GUID: sharing
; upstream's AppId would make Inno treat the two products as one and let either install/uninstall the other.
AppId={{7C4E1B92-3D5A-4F18-9B6E-A2C80F5D3E47}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppSupportURL={#MyAppURL}
#ifdef UiAccessBuild
DefaultDirName={autopf}\WinFunan\VeriRandom
#else
DefaultDirName={localappdata}\WinFunan\VeriRandom
#endif
UninstallDisplayIcon={app}\{#MyAppExeName}
#ifdef BuildArchX86
ArchitecturesAllowed=x86compatible
#else
#ifdef BuildArchArm64
ArchitecturesAllowed=arm64
ArchitecturesInstallIn64BitMode=arm64
#else
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
#endif
#endif
DisableProgramGroupPage=yes
; LicenseFile=E:\Projects\Avalonia\SecRandom\LICENSE
#ifdef UiAccessBuild
; UIAccess is granted only to signed binaries installed under Program Files.
PrivilegesRequired=admin
PrivilegesRequiredOverridesAllowed=none
#else
PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
#endif
OutputDir=artifacts\release\setup
OutputBaseFilename=VeriRandom-Setup
SetupIconFile=SecRandom\Assets\AppLogo.ico
SolidCompression=yes
WizardStyle=modern dynamic windows11
LanguageDetectionMethod=none
[Languages]
Name: "chinesesimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "{#MyAppOutDir}\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
Source: "{#MyAppOutDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[Code]
// As-is disclaimer shown before anything is written to disk. Kept ASCII-only on purpose: the .iss file is
// compiled outside this repository's UTF-8 tooling, and a mis-decoded notice is worse than a plain one.
const
AsIsNotice =
'VeriRandom - As-is notice' + #13#10 + #13#10 +
'This software is an open-source fork of SecRandom and is provided "AS IS", ' +
'without warranty of any kind, express or implied, including but not limited to ' +
'the warranties of merchantability, fitness for a particular purpose and ' +
'non-infringement.' + #13#10 + #13#10 +
'In no event shall the authors or copyright holders be liable for any claim, ' +
'damages or other liability, whether in an action of contract, tort or otherwise, ' +
'arising from, out of or in connection with the software or the use or other ' +
'dealings in the software.' + #13#10 + #13#10 +
'VeriRandom is designed to coexist with upstream SecRandom. It is not affiliated ' +
'with, endorsed by, or a product of SECTL, and it is not SecRandom itself. If both ' +
'products are installed, they may compete for the same system-level registrations ' +
'(for example the secrandom:// URL scheme, which only one program can own). Any ' +
'interface incompatibility caused by installing both products is the user''s own ' +
'responsibility.' + #13#10 + #13#10 +
'VeriRandom is licensed under the GPLv3; upstream SecRandom code keeps its own license.';
function InitializeSetup(): Boolean;
begin
MsgBox(AsIsNotice, mbInformation, MB_OK);
Result := True;
end;