Skip to content

Commit

Permalink
Update windows installer to get version number from the executable
Browse files Browse the repository at this point in the history
metadata

This removes one less step when compiling the windows installers
  • Loading branch information
addisonElliott committed Sep 10, 2017
1 parent 7b1c930 commit 88c9c51
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions WindowsInstaller.iss.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,23 @@
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

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

; Source directory of the build. This should be the folder that Qt Creator generates when building
#define SrcDir "<SOURCE-DIRECTORY>-" + MyAppRelease + "\" + LowerCase(MyAppRelease)

; Get application version based on the metadata from the executable
#define MyAppVersion GetFileVersion(SrcDir + "\" + MyAppExeName)

; Output filename and directory for the installer
#define OutputFilename "SIUE-Fat-Segmentation-Tool-v" + MyAppVersion + "-" + MyAppRelease + "-Win_x64"
#define OutputDirectory "<DESIRED-OUTPUT-DIRECTORY-HERE>"

; Source directory of the build. This should be the folder that Qt Creator generates when building
#define SrcDir "<SOURCE-DIRECTORY>-" + MyAppRelease + "\" + LowerCase(MyAppRelease)

; Location of the binary directories for the external libraries: NIFTI, ZLIB, OpenCV Debug & Release
#define NiftiBin "<NIFTI-BIN-PATH>"
#define ZlibBin "<ZLIB-BIN-PATH>"
Expand Down

0 comments on commit 88c9c51

Please sign in to comment.