Skip to content

Commit 488b183

Browse files
committed
update Win installer with additional metadata, optional desktop icon, custom setup icon
also includes automated version write to replace the need to edit this file manually on every new release
1 parent 4e2045e commit 488b183

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

target/InnoSetup-Windows/Slice-Installer.iss

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,21 @@
1616
; You should have received a copy of the GNU General Public License
1717
; along with this program. If not, see <https://www.gnu.org/licenses/>.
1818

19+
#define BUILDPATH "..\..\dist\Slice.exe"
1920

2021
[Setup]
2122
AppName=Slice
22-
AppVersion=0.3.0
23+
AppVersion=GetFileVersion({#BUILDPATH})
24+
AppPublisher="Christopher Simpkins"
25+
AppPublisherURL=https://github.com/source-foundry/Slice
26+
AppReadmeFile=https://github.com/source-foundry/Slice/blob/main/README.md
27+
AppSupportURL=https://github.com/source-foundry/Slice/issues
28+
AppUpdatesURL=https://github.com/source-foundry/Slice/releases
29+
AppCopyright="Copyright 2021 Christopher Simpkins. GPLv3 License"
2330
WizardStyle=modern
2431
DefaultDirName={autopf}\Slice
25-
; Since no icons will be created in "{group}", we don't need the wizard
26-
; to ask for a Start Menu folder name:
2732
DisableProgramGroupPage=yes
33+
SetupIconFile=..\..\icons\Icon.ico
2834
UninstallDisplayIcon={app}\Slice.exe
2935
Compression=lzma2
3036
SolidCompression=yes
@@ -33,7 +39,13 @@ OutputDir=..\..\dist\Windows-Installer
3339
LicenseFile=..\..\LICENSE
3440

3541
[Files]
36-
Source: "..\..\dist\Slice.exe"; DestDir: "{app}"
42+
Source: {#BUILDPATH}; DestDir: "{app}"
43+
44+
[Tasks]
45+
Name: desktopicon; Description: "Create a &desktop icon"; GroupDescription: "Additional icons:"
46+
Name: desktopicon\common; Description: "For all users"; GroupDescription: "Additional icons:"; Flags: exclusive
47+
Name: desktopicon\user; Description: "For the current user only"; GroupDescription: "Additional icons:"; Flags: exclusive unchecked
3748

3849
[Icons]
3950
Name: "{autoprograms}\Slice"; Filename: "{app}\Slice.exe"
51+
Name: "{commondesktop}\Slice"; Filename: "{app}\Slice.exe"; Tasks: desktopicon

0 commit comments

Comments
 (0)