|
3 | 3 |
|
4 | 4 | ; MAKE SURE TO CHANGE THIS INFORMATION BEFORE BUILDING A NEW RELEASE |
5 | 5 | ; MUST UPDATE VERSION NUMBER AND SOURCE DIRECTORY AT A MINIMUM |
6 | | -#define MyAppName "Visceral Fat Validation" |
7 | | -#define MyAppVersion "1.0.1.0" |
| 6 | +#define MyAppName "SIUE Fat Segmentation Tool" |
| 7 | +#define MyAppVersion "1.0.2.0" |
8 | 8 | #define MyAppPublisher "Addison Elliott" |
9 | | -#define MyAppURL "https://github.com/addisonElliott/VisceralFatValidation" |
10 | | -#define MyAppExeName "VisceralFatValidation.exe" |
11 | | -#define OutputFilename "VisceralFatValidation-v1.0.1.0-Release-Win_x64" |
| 9 | +#define MyAppURL "https://github.com/addisonElliott/SIUE-Fat-Segmentation-Tool" |
| 10 | +#define MyAppExeName "SIUE Fat Segmentation Tool.exe" |
| 11 | +#define MyAppRelease "Release" |
| 12 | + |
| 13 | +; Output filename and directory for the installer |
| 14 | +#define OutputFilename "SIUE-Fat-Segmentation-Tool-v" + MyAppVersion + "-" + MyAppRelease + "-Win_x64" |
12 | 15 | #define OutputDirectory "D:\Users\addis\Desktop\Output" |
13 | | -#define SrcDir "D:\Users\addis\Desktop\VisceralFatValidation-v1.0.1.0-Release" |
| 16 | + |
| 17 | +; Source directory of the build. This should be the folder that Qt Creator generates when building |
| 18 | +#define SrcDir "D:\Users\addis\Documents\QtProjects\build-SIUE-Fat-Segmentation-Tool-Desktop_Qt_5_8_0_MSVC2015_64bit_Custom-" + MyAppRelease + "\" + LowerCase(MyAppRelease) |
| 19 | + |
| 20 | +; Location of the binary directories for the external libraries: NIFTI, ZLIB, OpenCV Debug & Release |
| 21 | +#define NiftiBin "D:\DevelLibs\nifticlib\buildShared\bin" |
| 22 | +#define ZlibBin "D:\DevelLibs\zlib-1.2.8\build\bin" |
| 23 | +#define OpenCVBinDebug "D:\DevelLibs\opencv\build\\bin\Debug" |
| 24 | +#define OpenCVBinRelease "D:\DevelLibs\opencv\build\\bin\Release" |
| 25 | + |
| 26 | +#define WinDeployQt "D:\DevelLibs\Qt\qt5-build\qtbase\bin\windeployqt.exe" |
| 27 | + |
| 28 | +; Run WinDeployQt when compiling script to get Qt DLLs to directory |
| 29 | +; Add --debug or --release depending on MyAppRelease macro |
| 30 | +#expr Exec(WinDeployQt, SrcDir + " --" + LowerCase(MyAppRelease)) |
14 | 31 |
|
15 | 32 | [Setup] |
16 | 33 | ; NOTE: The value of AppId uniquely identifies this application. |
@@ -47,15 +64,35 @@ Name: {app}\platforms\; Permissions: users-modify |
47 | 64 | Name: {app}\translations\; Permissions: users-modify |
48 | 65 |
|
49 | 66 | [Files] |
50 | | -Source: "{#SrcDir}\*.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 67 | +Source: "{#NiftiBin}/niftiio.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 68 | +Source: "{#NiftiBin}/nifticdf.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 69 | +Source: "{#NiftiBin}/znz.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 70 | + |
| 71 | +Source: "{#ZlibBin}/zlib.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 72 | + |
| 73 | +#if MyAppRelease == "Debug" |
| 74 | +Source: "{#OpenCVBinDebug}/opencv_core310d.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 75 | +Source: "{#OpenCVBinDebug}/opencv_imgproc310d.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 76 | +Source: "{#OpenCVBinDebug}/opencv_highgui310d.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 77 | +Source: "{#OpenCVBinDebug}/opencv_ml310d.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 78 | +Source: "{#OpenCVBinDebug}/opencv_video310d.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 79 | +#else |
| 80 | +Source: "{#OpenCVBinRelease}/opencv_core310.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 81 | +Source: "{#OpenCVBinRelease}/opencv_imgproc310.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 82 | +Source: "{#OpenCVBinRelease}/opencv_highgui310.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 83 | +Source: "{#OpenCVBinRelease}/opencv_ml310.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 84 | +Source: "{#OpenCVBinRelease}/opencv_video310.dll"; DestDir: "{app}"; Flags: ignoreversion |
| 85 | +#endif |
| 86 | + |
| 87 | +Source: "{#SrcDir}\*.dll"; DestDir: "{app}"; Flags: ignoreversion skipifsourcedoesntexist |
51 | 88 | Source: "{#SrcDir}\*.pdb"; DestDir: "{app}"; Flags: ignoreversion skipifsourcedoesntexist |
52 | | -Source: "{#SrcDir}\VisceralFatValidation.exe"; DestDir: "{app}"; Flags: ignoreversion |
53 | | -Source: "{#SrcDir}\VisceralFatValidation_resource.res"; DestDir: "{app}"; Flags: ignoreversion |
| 89 | +Source: "{#SrcDir}\{#MyAppName}.exe"; DestDir: "{app}"; Flags: ignoreversion |
| 90 | +Source: "{#SrcDir}\{#MyAppName}_resource.res"; DestDir: "{app}"; Flags: ignoreversion |
54 | 91 | Source: "{#SrcDir}\iconengines\*"; DestDir: "{app}\iconengines"; Flags: ignoreversion recursesubdirs createallsubdirs skipifsourcedoesntexist |
55 | 92 | Source: "{#SrcDir}\imageformats\*"; DestDir: "{app}\imageformats"; Flags: ignoreversion recursesubdirs createallsubdirs skipifsourcedoesntexist |
56 | 93 | Source: "{#SrcDir}\platforms\*"; DestDir: "{app}\platforms"; Flags: ignoreversion recursesubdirs createallsubdirs skipifsourcedoesntexist |
57 | 94 | Source: "{#SrcDir}\translations\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs skipifsourcedoesntexist |
58 | | -Source: "{#SrcDir}\vcredist_x64.exe"; DestDir: {tmp}; Flags: deleteafterinstall |
| 95 | +Source: "{#SrcDir}\vcredist_x64.exe"; DestDir: {tmp}; Flags: deleteafterinstall skipifsourcedoesntexist |
59 | 96 | ; NOTE: Don't use "Flags: ignoreversion" on any shared system files |
60 | 97 |
|
61 | 98 | [Icons] |
|
0 commit comments