-
Notifications
You must be signed in to change notification settings - Fork 1
/
Publish-InnoSetupInstaller-FeedReaderGui.iss
51 lines (42 loc) · 1.75 KB
/
Publish-InnoSetupInstaller-FeedReaderGui.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
#ifndef Version
#define Version = '1902-07-02-00-00-00';
#endif
#ifndef GitCommit
#define GitCommit = '???';
#endif
#define MyAppPublisher "Charles Miles"
#define MyAppOutputDir "M:\PointlessWaymarksPublications"
#define MyAppDefaultGroupName "Pointless Waymarks"
#define MyAppName "Pointless Waymarks Feed Reader"
#define MyAppDefaultDirName "PointlessWaymarksFeedReader"
#define MyAppExeName "PointlessWaymarks.FeedReaderGui.exe"
#define MyAppOutputBaseFilename "PointlessWaymarks-FeedReaderGui-Setup--"
#define MyAppFilesSource "M:\PointlessWaymarksPublications\PointlessWaymarks.FeedReaderGui\*"
[Setup]
AppId={{9375815B-69EB-481E-9E12-25448E02B50A}
AppName={#MyAppName}
AppVersion={#Version}
AppPublisher={#MyAppPublisher}
WizardStyle=modern
DefaultDirName={autopf}\{#MyAppDefaultDirName}
DefaultGroupName={#MyAppDefaultGroupName}
Compression=lzma2
SolidCompression=yes
OutputDir={#MyAppOutputDir}
OutputBaseFilename={#MyAppOutputBaseFilename}{#Version}
ArchitecturesAllowed=x64
ArchitecturesInstallIn64BitMode=x64
PrivilegesRequired=lowest
WizardSmallImageFile="M:\PointlessWaymarksPublications\PointlessWaymarks.FeedReaderGui\FeedReaderInstallerTopRightImage.bmp"
WizardImageFile="M:\PointlessWaymarksPublications\PointlessWaymarks.FeedReaderGui\FeedReaderInstallerLeftImage.bmp"
[Files]
Source: {#MyAppFilesSource}; DestDir: "{app}\"; Flags: recursesubdirs ignoreversion; AfterInstall:PublishVersionAfterInstall;
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}";
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "Launch application"; Flags: postinstall nowait skipifsilent
[Code]
procedure PublishVersionAfterInstall();
begin
SaveStringToFile(ExpandConstant('{app}\PublishVersion--{#Version}.txt'), ExpandConstant('({#GitCommit})'), False);
end;