-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPublish-InnoSetupInstaller-SiteViewerGui.iss
More file actions
51 lines (42 loc) · 1.77 KB
/
Publish-InnoSetupInstaller-SiteViewerGui.iss
File metadata and controls
51 lines (42 loc) · 1.77 KB
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 ScmCommit
#define ScmCommit = '???';
#endif
#define MyAppPublisher "Charles Miles"
#define MyAppOutputDir "M:\PointlessWaymarksPublications"
#define MyAppDefaultGroupName "Pointless Waymarks"
#define MyAppName "Pointless Waymarks Site Viewer"
#define MyAppDefaultDirName "PointlessWaymarksSiteViewer"
#define MyAppExeName "PointlessWaymarks.SiteViewerGui.exe"
#define MyAppOutputBaseFilename "PointlessWaymarks-SiteViewerGui-Setup--"
#define MyAppFilesSource "M:\PointlessWaymarksPublications\PointlessWaymarks.SiteViewerGui\*"
[Setup]
AppId={{03D32A38-B168-4F29-BC00-4115625F458D}
AppName={#MyAppName}
AppVersion={#Version}
AppPublisher={#MyAppPublisher}
WizardStyle=modern
DefaultDirName={autopf}\{#MyAppDefaultDirName}
DefaultGroupName={#MyAppDefaultGroupName}
Compression=lzma2
SolidCompression=yes
OutputDir={#MyAppOutputDir}
OutputBaseFilename={#MyAppOutputBaseFilename}{#Version}
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
PrivilegesRequired=lowest
WizardSmallImageFile="M:\PointlessWaymarksPublications\PointlessWaymarks.SiteViewerGui\SiteViewerInstallerTopRightImage.bmp"
WizardImageFile="M:\PointlessWaymarksPublications\PointlessWaymarks.SiteViewerGui\SiteViewerInstallerLeftImage.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('({#ScmCommit})'), False);
end;