-
Notifications
You must be signed in to change notification settings - Fork 12
/
NextFlow.iss
65 lines (56 loc) · 2.65 KB
/
NextFlow.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
52
53
54
55
56
57
58
59
60
61
62
63
64
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; InnoSetup Compiler File
;
; This file is intended to be run by the InnoSetup Compiler program which is available
; at http://www.jrsoftware.org/isinfo.php. This file relies on the batch file
; installerPreBuild.bat which comes with the PyForecast source code and should be
; located in the same directory as this file. Update the path below to point to
; where you have the batch file on your local machine.
;
; POC: Jon Rocha, jrocha@usbr.gov
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Run required batch file to consolidate all the stuff that InnoSetup needs.
;#expr Exec("C:\Users\jrocha\Documents\Python\NextFlow\installerPreBuild.bat")
#define MyAppName "PyForecast"
#define MyAppVersion "4.0"
#define MyAppPublisher "USBR"
#define MyAppURL "https://github.com/usbr/PyForecast"
#define MyAppExeName "main.exe"
#define bin "dist\main\"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
AppId={{2946A417-10F3-4AE9-A3C3-8996F365A395}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName=C:\{#MyAppName}
DisableProgramGroupPage=yes
; Assign a name to the installer file
OutputBaseFilename=Install_PyForecastV4
; Define the icon to use for the installer and the application
SetupIconFile={#bin}resources\GraphicalResources\icons\icon.ico
Compression=lzma
SolidCompression=yes
PrivilegesRequired=lowest
;SignTool=signtool $f
;signtool = "signtool.exe" sign /tr http://timestamp.digicert.com /td sha256 /fd sha256 /a $p
LicenseFile=.\license.txt
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
; Give user the option to create a desktop icon shortcut
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
; Copy all the files from the defined bin-directory into the installation folder
[Files]
Source: "{#bin}*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
; Create a shortcut to the application at the specified locations
[Icons]
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent