-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwindows-installer.iss
More file actions
62 lines (53 loc) · 2.35 KB
/
windows-installer.iss
File metadata and controls
62 lines (53 loc) · 2.35 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
; R6 Replay Recorder - Inno Setup Installer Script
; Download Inno Setup from: https://jrsoftware.org/isinfo.php
#define MyAppName "R6 Replay Recorder"
#define MyAppVersion "1.0.0"
#define MyAppPublisher "R6 Replay Recorder"
#define MyAppURL "https://github.com/yourusername/r6-replay-recorder"
#define MyAppExeName "R6ReplayRecorder.exe"
[Setup]
AppId={{A1B2C3D4-E5F6-7890-ABCD-EF1234567890}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
; Output directory for the installer
OutputDir=installers
OutputBaseFilename=R6ReplayRecorder_Setup_{#MyAppVersion}
; Compression settings
Compression=lzma2
SolidCompression=yes
; Require admin rights to install to Program Files
PrivilegesRequired=admin
; Windows version requirements
MinVersion=10.0
; Installer appearance
WizardStyle=modern
SetupIconFile=assets\icon.ico
UninstallDisplayIcon={app}\{#MyAppExeName}
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "startupicon"; Description: "Start with Windows"; GroupDescription: "Startup:"; Flags: unchecked
[Files]
Source: "build\R6ReplayRecorder_windows_amd64.exe"; DestDir: "{app}"; DestName: "{#MyAppExeName}"; Flags: ignoreversion
; Include any additional files here
; Source: "assets\*"; DestDir: "{app}\assets"; Flags: ignoreversion recursesubdirs
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Registry]
; Add to startup if task selected
Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "{#MyAppName}"; ValueData: """{app}\{#MyAppExeName}"""; Flags: uninsdeletevalue; Tasks: startupicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[UninstallDelete]
; Clean up app data on uninstall (optional - comment out to preserve user data)
; Type: filesandordirs; Name: "{userappdata}\R6ReplayRecorder"