-
Notifications
You must be signed in to change notification settings - Fork 1
/
Publish-InnoSetupInstaller-CmsGui.iss
51 lines (42 loc) · 1.69 KB
/
Publish-InnoSetupInstaller-CmsGui.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 CMS"
#define MyAppDefaultDirName "PointlessWaymarksCms"
#define MyAppExeName "PointlessWaymarks.CmsGui.exe"
#define MyAppOutputBaseFilename "PointlessWaymarks-CmsGui-Setup--"
#define MyAppFilesSource "M:\PointlessWaymarksPublications\PointlessWaymarks.CmsGui\*"
[Setup]
AppId={{1780F4D0-0A17-4460-878B-58136D038D51}
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.CmsGui\CmsInstallerTopRightImage.bmp"
WizardImageFile="M:\PointlessWaymarksPublications\PointlessWaymarks.CmsGui\CmsInstallerLeftImage.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;