forked from AlexxEG/BSA_Browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Inno Setup Script.iss
93 lines (83 loc) · 6.04 KB
/
Inno Setup Script.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
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
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "BSA Browser"
#define MyAppVersion "1.17.0"
#define MyAppPublisher "Alexander Ellingsen"
#define MyAppURL "https://github.com/AlexxEG/BSA_Browser/"
#define MyAppExeName "BSA Browser.exe"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{3A99EA20-5728-49D4-A05C-C870571AE6AF}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={commonpf}\{#MyAppName}
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
ChangesAssociations=yes
LicenseFile=LICENSE
OutputDir=Inno Output
OutputBaseFilename=BSA Browser.{#MyAppVersion}
Compression=lzma
SolidCompression=yes
UninstallDisplayIcon={app}\BSA Browser.exe
VersionInfoVersion={#MyAppVersion}
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "cli"; Description: "Install CLI executable"; GroupDescription: "Optional"; Flags: unchecked
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
Name: "bsaassociation"; Description: "Associate "".bsa"" extension"; GroupDescription: File extensions:
Name: "ba2aassociation"; Description: "Associate "".ba2"" extension"; GroupDescription: File extensions:
Name: "quickextractassociation"; Description: "Add ""Extract with BSA Browser"" to context menu"; GroupDescription: File extensions:
[Files]
Source: "Licenses\*"; DestDir: "{app}\Licenses"; Flags: ignoreversion
Source: "BSA Browser\bin\Release\BSA Browser.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "BSA Browser\bin\Release\BSA Browser.exe.config"; DestDir: "{app}"; Flags: ignoreversion
Source: "BSA Browser\bin\Release\ICSharpCode.SharpZipLib.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "BSA Browser\bin\Release\ICSharpCode.TextEditor.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "BSA Browser\bin\Release\lz4.AnyCPU.loader.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "BSA Browser\bin\Release\mw_hash_table.bin"; DestDir: "{app}"; Flags: ignoreversion
Source: "BSA Browser\bin\Release\Pfim.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "BSA Browser\bin\Release\Sharp.BSA.BA2.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "BSA Browser\bin\Release\System.Management.Automation.dll"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
; Optional
Source: "BSA Browser CLI\bin\Release\bsab.exe"; DestDir: "{app}"; Flags: ignoreversion; Tasks: cli
[InstallDelete]
Type: files; Name: {app}\lz4.x64.dll
Type: files; Name: {app}\lz4.x86.dll
[Registry]
Root: HKCR; Subkey: ".bsa"; ValueType: string; ValueName: ""; ValueData: "BSABrowser"; Flags: uninsdeletevalue; Tasks: bsaassociation
Root: HKCR; Subkey: ".ba2"; ValueType: string; ValueName: ""; ValueData: "BSABrowser"; Flags: uninsdeletevalue; Tasks: ba2aassociation
Root: HKCR; Subkey: "BSABrowser"; ValueType: string; ValueName: ""; ValueData: "Bethesda File Archive"; Flags: deletekey uninsdeletekey; Tasks: bsaassociation or ba2aassociation
Root: HKCR; Subkey: "BSABrowser\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"",0"; Tasks: bsaassociation or ba2aassociation
Root: HKCR; Subkey: "BSABrowser\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""; Tasks: bsaassociation or ba2aassociation
; Extract
Root: HKCR; Subkey: "BSABrowser\shell\Extract"; ValueType: string; ValueName: ""; ValueData: ""; Tasks: quickextractassociation
Root: HKCR; Subkey: "BSABrowser\shell\Extract"; ValueType: string; ValueName: "MUIVerb"; ValueData: "BSA Browser"; Tasks: quickextractassociation
Root: HKCR; Subkey: "BSABrowser\shell\Extract"; ValueType: string; ValueName: "Icon"; ValueData: """{app}\{#MyAppExeName}"",0"; Tasks: quickextractassociation
Root: HKCR; Subkey: "BSABrowser\shell\Extract"; ValueType: string; ValueName: "subcommands"; ValueData: ""; Tasks: quickextractassociation
; Extract here
Root: HKCR; Subkey: "BSABrowser\shell\Extract\shell\1here"; ValueType: string; ValueName: ""; ValueData: "Extract here"; Tasks: quickextractassociation
Root: HKCR; Subkey: "BSABrowser\shell\Extract\shell\1here"; ValueType: string; ValueName: "Icon"; ValueData: """{app}\{#MyAppExeName}"",0"; Tasks: quickextractassociation
Root: HKCR; Subkey: "BSABrowser\shell\Extract\shell\1here\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" /h /extract ""%1"""; Tasks: quickextractassociation
; Extract to directory
Root: HKCR; Subkey: "BSABrowser\shell\Extract\shell\2directory"; ValueType: string; ValueName: ""; ValueData: "Extract to directory"; Tasks: quickextractassociation
Root: HKCR; Subkey: "BSABrowser\shell\Extract\shell\2directory"; ValueType: string; ValueName: "Icon"; ValueData: """{app}\{#MyAppExeName}"",0"; Tasks: quickextractassociation
Root: HKCR; Subkey: "BSABrowser\shell\Extract\shell\2directory\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" /d /extract ""%1"""; Tasks: quickextractassociation
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent