Skip to content

Commit 88c9c51

Browse files
Update windows installer to get version number from the executable
metadata This removes one less step when compiling the windows installers
1 parent 7b1c930 commit 88c9c51

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

WindowsInstaller.iss.sample

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,23 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
; MAKE SURE TO CHANGE THIS INFORMATION BEFORE BUILDING A NEW RELEASE
5-
; MUST UPDATE VERSION NUMBER AND SOURCE DIRECTORY AT A MINIMUM
5+
; MUST UPDATE SOURCE DIRECTORY AT A MINIMUM
66
#define MyAppName "SIUE Fat Segmentation Tool"
7-
#define MyAppVersion "1.0.2.0"
87
#define MyAppPublisher "Addison Elliott"
98
#define MyAppURL "https://github.com/addisonElliott/SIUE-Fat-Segmentation-Tool"
109
#define MyAppExeName "SIUE Fat Segmentation Tool.exe"
1110
#define MyAppRelease "Release"
1211

12+
; Source directory of the build. This should be the folder that Qt Creator generates when building
13+
#define SrcDir "<SOURCE-DIRECTORY>-" + MyAppRelease + "\" + LowerCase(MyAppRelease)
14+
15+
; Get application version based on the metadata from the executable
16+
#define MyAppVersion GetFileVersion(SrcDir + "\" + MyAppExeName)
17+
1318
; Output filename and directory for the installer
1419
#define OutputFilename "SIUE-Fat-Segmentation-Tool-v" + MyAppVersion + "-" + MyAppRelease + "-Win_x64"
1520
#define OutputDirectory "<DESIRED-OUTPUT-DIRECTORY-HERE>"
1621

17-
; Source directory of the build. This should be the folder that Qt Creator generates when building
18-
#define SrcDir "<SOURCE-DIRECTORY>-" + MyAppRelease + "\" + LowerCase(MyAppRelease)
19-
2022
; Location of the binary directories for the external libraries: NIFTI, ZLIB, OpenCV Debug & Release
2123
#define NiftiBin "<NIFTI-BIN-PATH>"
2224
#define ZlibBin "<ZLIB-BIN-PATH>"

0 commit comments

Comments
 (0)