Skip to content

Commit e1a043a

Browse files
author
nothing
committed
Moved names to vars for ease of use. Updated naming
1 parent 60dd2c5 commit e1a043a

1 file changed

Lines changed: 18 additions & 11 deletions

File tree

innosetup/setup.iss

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
1+
#define AppName "Keychron mice updater"
2+
#define ExeName AppName + ".exe"
3+
#define Version "1.1"
4+
#define AppPublisher "Pyenb"
5+
16
[Setup]
2-
AppName=Keychron Mice Software Updater
3-
AppVersion=1.0
4-
DefaultDirName={commonpf}\Keychron Mice Software Updater
5-
DefaultGroupName=Keychron Mice Software Updater
6-
UninstallDisplayIcon={app}\keychron.exe
7+
AppName={#AppName}
8+
AppVersion={#Version}
9+
AppPublisher={#AppPublisher}
10+
DefaultDirName={commonpf}\{#AppName}
11+
DefaultGroupName={#AppName}
12+
UninstallDisplayIcon={app}\{#ExeName}
713
OutputDir=.
8-
OutputBaseFilename=Keychron_mice_updater_setup
14+
OutputBaseFilename="{#AppName} SETUP"
915
Compression=lzma
1016
SolidCompression=yes
17+
SetupIconFile=..\images\logo.ico
1118

1219
[Files]
13-
Source: "..\dist\Keychron_mice_updater.exe"; DestDir: "{app}"; Flags: ignoreversion
20+
Source: "..\dist\{#ExeName}"; DestDir: "{app}"; Flags: ignoreversion
1421

1522
[Icons]
16-
Name: "{group}\Keychron Mice Software Updater"; Filename: "{app}\Keychron_mice_updater.exe"
17-
Name: "{group}\Uninstall Keychron Mice Software Updater"; Filename: "{uninstallexe}"
18-
Name: "{commonstartup}\Keychron Mice Software Updater"; Filename: "{app}\Keychron_mice_updater.exe"; Tasks: autostart
23+
Name: "{group}\{#AppName}"; Filename: "{app}\{#ExeName}"
24+
Name: "{group}\Uninstall {#AppName}"; Filename: "{uninstallexe}"
25+
Name: "{commonstartup}\{#AppName}"; Filename: "{app}\{#ExeName}"; Tasks: autostart
1926

2027
[Run]
21-
Filename: "{app}\Keychron_mice_updater.exe"; Description: "Launch the application"; Flags: nowait postinstall skipifsilent
28+
Filename: "{app}\{#ExeName}"; Description: "Launch the application"; Flags: nowait postinstall skipifsilent
2229

2330
[Tasks]
2431
Name: "autostart"; Description: "Start the application when Windows starts"; GroupDescription: "Additional tasks"; Flags: checkedonce

0 commit comments

Comments
 (0)