-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathInstallerSetup.iss
40 lines (33 loc) · 1.45 KB
/
InstallerSetup.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
; InnoSetupScript for PELD
; See Inno Setup documentation for explanation of these settings
; I'm not happy with the AppVersion here. I'm just using a generic 1.0 for now.
; Sadly, there isn't a great way for us to automatically populate this value.
; Inno Setup does allow us to use a preprocessor GetFileVersion function,
; but PyInstaller's .exe versioning utility doesn't support Python 3.x!
; There are other ways we could hack it in, but really it's just not worth it.
[Setup]
AppName=PELD
AppVersion=1.0
DefaultDirName={pf}\PELD
DefaultGroupName=PELD
UninstallDisplayIcon={app}\PELD.exe
Compression=lzma2
SolidCompression=yes
ArchitecturesAllowed=x86 x64
ArchitecturesInstallIn64BitMode=x64
SetupIconFile=app.ico
OutputDir=dist
OutputBaseFilename=PELD-installer
[InstallDelete]
Type: files; Name: "{app}\api-ms-win*.dll"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
[Files]
Source: "dist\PELD\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "LICENSE"; DestDir: "{app}"
[Icons]
Name: "{group}\PELD"; Filename: "{app}\PELD.exe"; WorkingDir: "{app}"
Name: "{group}\Uninstall PELD"; Filename: "{uninstallexe}"
Name: "{userdesktop}\PELD"; Filename: "{app}\PELD.exe"; WorkingDir: "{app}"; Tasks: desktopicon
[Run]
Filename: "{app}\PELD.exe"; Description: "Run PELD"; WorkingDir: "{app}"; Flags: postinstall skipifsilent nowait unchecked