-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstaller.iss
More file actions
113 lines (92 loc) · 4.02 KB
/
installer.iss
File metadata and controls
113 lines (92 loc) · 4.02 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
; =============================================================================
; VDV463 Validator - Inno Setup Installer Script
; =============================================================================
; Creates a Windows installer for the VDV463 JSON Validator application
;
; Build Requirements:
; - Inno Setup 6.x or later
; - PyInstaller dist/main/ folder must exist
;
; Usage:
; - Run this script with Inno Setup Compiler (ISCC.exe)
; - Output: Output/VDV463-Validator-Setup.exe
; =============================================================================
; Version is defined via command line: /DMyAppVersion=x.y.z
; Default to 3.0.0 if not provided
#ifndef MyAppVersion
#define MyAppVersion "3.0.0"
#endif
#define MyAppName "VDV463 Validator"
#define MyAppPublisher "VDV463 Project"
#define MyAppURL "https://github.com/VDVde/JSON-Validator"
#define MyAppExeName "VDV463Validator.exe"
[Setup]
; Application identification - unique UUID for this application
AppId={{F06826E6-E8E1-4C5C-8114-5322B8F3C21C}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}/issues
AppUpdatesURL={#MyAppURL}/releases
; Installation directories
DefaultDirName={autopf}\{#MyAppName}
DefaultGroupName={#MyAppName}
DisableProgramGroupPage=yes
; Installer output
OutputDir=Output
OutputBaseFilename=VDV463-Validator-Setup-{#MyAppVersion}
UninstallDisplayIcon={app}\{#MyAppExeName}
; Compression settings
Compression=lzma2/ultra64
SolidCompression=yes
LZMAUseSeparateProcess=yes
; Windows version requirements
MinVersion=10.0
; Privileges (install for current user by default)
PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
; Wizard settings
WizardStyle=modern
; License and info
LicenseFile=LICENSE
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 6.1; Check: not IsAdminInstallMode
[Files]
; Main application files from PyInstaller dist/main/ folder
Source: "dist\main\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; Note: The UI folder including run_ui.bat is already included via PyInstaller
; but we ensure the bat file is accessible at the app root for easy access
Source: "UI\run_ui.bat"; DestDir: "{app}"; Flags: ignoreversion
[Icons]
; Start Menu shortcuts
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
; Desktop shortcut
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
; Quick Launch shortcut (legacy)
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
[Run]
; Option to run after installation
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[Registry]
; Associate .vdv463 file extension (optional)
Root: HKA; Subkey: "Software\Classes\.vdv463"; ValueType: string; ValueName: ""; ValueData: "VDV463File"; Flags: uninsdeletevalue
Root: HKA; Subkey: "Software\Classes\VDV463File"; ValueType: string; ValueName: ""; ValueData: "VDV463 JSON File"; Flags: uninsdeletekey
Root: HKA; Subkey: "Software\Classes\VDV463File\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
Root: HKA; Subkey: "Software\Classes\VDV463File\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
[Code]
// Check for running instances before install/uninstall
function InitializeSetup(): Boolean;
begin
Result := True;
end;
function InitializeUninstall(): Boolean;
begin
Result := True;
end;