-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathlumidex-installer-win.iss
59 lines (52 loc) · 2.21 KB
/
lumidex-installer-win.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
#define MyAppName "Lumidex"
#define MyAppPublisher "Alex Helms"
#define MyAppURL "https://github.com/alexhelms/lumidex"
#define MyAppSourceFolder "publish-win"
#define MyAppExeName MyAppName + ".Desktop.exe"
#define MyAppFileVersion GetStringFileInfo(MyAppSourceFolder + '\' + MyAppExeName, FILE_VERSION)
#ifndef MyAppProductVersion
#define MyAppProductVersion GetStringFileInfo(MyAppSourceFolder + '\' + MyAppExeName, PRODUCT_VERSION)
#endif
[Setup]
AppId={{2B380828-6D33-457B-B562-1A84B8043FD0}
AppName={#MyAppName}
AppVersion={#MyAppProductVersion}
AppVerName={#MyAppName} {#MyAppProductVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
AppCopyright=Copyright (c) 2024 {#MyAppPublisher}
VersionInfoVersion={#MyAppFileVersion}
DefaultDirName={autopf}\{#MyAppName}
DisableDirPage=yes
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
DisableProgramGroupPage=yes
PrivilegesRequired=lowest
OutputDir=dist/win
OutputBaseFilename={#MyAppName}-{#MyAppProductVersion}-win
SetupIconFile=Lumidex\Assets\lumidex-icon.ico
Compression=lzma2
SolidCompression=yes
LZMAUseSeparateProcess=yes
LZMANumBlockThreads=6
WizardStyle=modern
UninstallDisplayIcon={app}\{#MyAppExeName}
RestartIfNeededByRun=no
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
[Files]
Source: "{#MyAppSourceFolder}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "LICENSE.md"; DestDir: "{app}"; Flags: ignoreversion
Source: "installer\VC_redist.x64.exe"; DestDir: {tmp}; Flags: deleteafterinstall
[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
Filename: "{tmp}\VC_redist.x64.exe"; \
StatusMsg: "Installing VC++ 14.40.33810.0 x64"; \
Parameters: "/q /passive /norestart /Q:a /c:""msiexec /q /i /norestart vcredist.msi"""; Flags: waituntilterminated