-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstaller.iss
More file actions
70 lines (62 loc) · 2.78 KB
/
installer.iss
File metadata and controls
70 lines (62 loc) · 2.78 KB
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
65
66
67
68
69
70
; ──────────────────────────────────────────────────────────────
; PyMon – Inno Setup Installer Script
; Builds a single-file Windows installer from the PyInstaller
; output in dist\PyMon\
; ──────────────────────────────────────────────────────────────
#define MyAppName "PyMon"
#define MyAppVersion "1.0.0"
#define MyAppPublisher "GeneraBlack"
#define MyAppURL "https://github.com/GeneraBlack/PyMon"
#define MyAppExeName "PyMon.exe"
[Setup]
; Unique application ID – do NOT change between versions
AppId={{A3F7B2E1-9C4D-4E8F-B6A1-7D2E3F4C5B6A}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}/issues
AppUpdatesURL={#MyAppURL}/releases
DefaultDirName={autopf}\{#MyAppName}
DefaultGroupName={#MyAppName}
DisableProgramGroupPage=yes
OutputDir=installer_output
OutputBaseFilename=PyMon-{#MyAppVersion}-Setup
Compression=lzma2/ultra64
SolidCompression=yes
; Require Windows 10+
MinVersion=10.0
; Modern wizard style
WizardStyle=modern
; Uninstall icon & info
UninstallDisplayName={#MyAppName}
; No admin required – install in user profile by default
PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
; Architecture
ArchitecturesAllowed=x64compatible
ArchitecturesInstallIn64BitMode=x64compatible
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"
Name: "autostart"; Description: "PyMon beim Windows-Start automatisch starten"; GroupDescription: "Systemintegration:"
[Files]
; Copy entire PyInstaller output directory
Source: "dist\PyMon\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
[Icons]
; Start menu
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{#MyAppName} deinstallieren"; Filename: "{uninstallexe}"
; Desktop shortcut (optional task)
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
; Autostart (optional task)
Name: "{userstartup}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: autostart
[Run]
; Option to launch after install
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[UninstallDelete]
; Clean up app data cache on uninstall (optional)
Type: filesandordirs; Name: "{localappdata}\{#MyAppName}\cache"