-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.iss
More file actions
81 lines (69 loc) · 2.7 KB
/
Copy pathsetup.iss
File metadata and controls
81 lines (69 loc) · 2.7 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
; OpenSnap — Inno Setup installer script
; Build: ISCC.exe setup.iss
; Usage:
; ISCC.exe setup.iss # normal
; ISCC.exe setup.iss /DALLUSERS # per-machine install (admin)
; installer.exe /VERYSILENT /ALLUSERS # silent per-machine
; installer.exe /VERYSILENT /CURRENTUSER # silent per-user
#define MyAppName "OpenSnap"
#define MyAppVersion "0.9.0"
#define MyAppPublisher "Sparsh"
#define MyAppURL "https://github.com/sparshsam/opensnap"
#define MyAppExeName "OpenSnap.exe"
[Setup]
AppId={{B8A3C1E0-4F2D-4A8E-9C7B-5D6F1E2A3B4C}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
DefaultGroupName={#MyAppName}
DisableProgramGroupPage=yes
OutputDir=dist
OutputBaseFilename=OpenSnap-Setup-v{#MyAppVersion}
SetupIconFile=Resources\app.ico
UninstallDisplayIcon={app}\OpenSnap.exe
UninstallDisplayName={#MyAppName} {#MyAppVersion}
Compression=lzma2
SolidCompression=yes
CloseApplications=force
DisableWelcomePage=no
DisableFinishedPage=no
ShowLanguageDialog=no
AppCopyright=© {#MyAppPublisher}
AppContact={#MyAppURL}
VersionInfoVersion={#MyAppVersion}
VersionInfoCompany={#MyAppPublisher}
VersionInfoDescription={#MyAppName} Screenshot Widget
MinVersion=10.0.17763.0
; Install mode: per-user (default, no admin) or per-machine (/ALLUSERS)
PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=commandline dialog
; Silent install support:
; installer.exe /VERYSILENT /SUPPRESSMSGBOXES /CURRENTUSER
; installer.exe /VERYSILENT /SUPPRESSMSGBOXES /ALLUSERS
; Branding — place 164×314 (WizardSmallImageFile) and 55×58 (WizardImageFile)
; BMPs in Resources/ to replace the default Inno Setup graphics.
; WizardSmallImageFile=Resources\wizard-small.bmp
; WizardImageFile=Resources\wizard-large.bmp
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "Create a &desktop shortcut"; GroupDescription: "Additional shortcuts:"; Flags: checkedonce
[Files]
Source: "release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; Preserve user settings — %APPDATA%\OpenSnap is never touched by the installer
[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "Launch {#MyAppName}"; Flags: nowait postinstall skipifsilent unchecked
[UninstallRun]
Filename: "{cmd}"; Parameters: "/c taskkill /f /im OpenSnap.exe 2>nul"; Flags: runhidden
[Code]
function InitializeUninstall: Boolean;
begin
Result := True;
end;