Skip to content

Commit 3010f43

Browse files
committed
create installer
1 parent 94fe1a8 commit 3010f43

File tree

1 file changed

+67
-0
lines changed

1 file changed

+67
-0
lines changed

setup-script.iss

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
; Script generated by the Inno Setup Script Wizard.
2+
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
3+
4+
#define MyAppName "Macro Recorder"
5+
#ifndef MyAppVersion
6+
#define MyAppVersion "local-build"
7+
#endif
8+
#define MyAppPublisher "Alien_AV"
9+
#define MyAppURL "https://github.com/Alien-AV/macro_record"
10+
#define MyAppExeName "MacroRecorderGUI.exe"
11+
#ifndef Arch
12+
#define Arch "x64"
13+
#endif
14+
#ifndef MyOutputDir
15+
#define MyOutputDir=.
16+
#endif
17+
18+
[Setup]
19+
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
20+
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
21+
#if Arch == "x64"
22+
ArchitecturesInstallIn64BitMode=x64
23+
#endif
24+
AppId={{EE23E226-BC15-4B29-8183-3CCA04A4F9A4}
25+
AppName={#MyAppName}
26+
AppVersion={#MyAppVersion}
27+
;AppVerName={#MyAppName} {#MyAppVersion}
28+
AppPublisher={#MyAppPublisher}
29+
AppPublisherURL={#MyAppURL}
30+
AppSupportURL={#MyAppURL}
31+
AppUpdatesURL={#MyAppURL}
32+
DefaultDirName={pf}\{#MyAppName}
33+
DefaultGroupName={#MyAppName}
34+
AllowNoIcons=yes
35+
; Uncomment the following line to run in non administrative install mode (install for current user only.)
36+
;PrivilegesRequired=lowest
37+
;PrivilegesRequiredOverridesAllowed=dialog
38+
OutputDir={#MyOutputDir}
39+
OutputBaseFilename=MacroRecorderSetup-{#Arch}-{#MyAppVersion}
40+
Compression=lzma
41+
SolidCompression=yes
42+
WizardStyle=modern
43+
44+
[Languages]
45+
Name: "english"; MessagesFile: "compiler:Default.isl"
46+
47+
[Tasks]
48+
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
49+
Name: "autorun"; Description: "Autorun on system start"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
50+
51+
[Registry]
52+
Root: HKLM; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Run"; ValueType: string; ValueName: "{#MyAppName}"; ValueData: """{app}\{#MyAppExeName}"""; Flags: uninsdeletevalue; Tasks: autorun
53+
54+
[Files]
55+
Source: "{#Arch}\Release\MacroRecorderGUI.exe"; DestDir: "{app}"; Flags: ignoreversion
56+
Source: "{#Arch}\Release\Google.Protobuf.dll"; DestDir: "{app}"; Flags: ignoreversion
57+
Source: "{#Arch}\Release\RecordPlaybackDLL.dll"; DestDir: "{app}"; Flags: ignoreversion
58+
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
59+
60+
[Icons]
61+
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
62+
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
63+
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
64+
65+
[Run]
66+
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
67+

0 commit comments

Comments
 (0)