2024-11-07 18:21:49 +01:00
|
|
|
; Script generated by the Inno Setup Script Wizard.
|
|
|
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
|
|
|
|
|
|
|
#define MyAppName "KolibriOS gcc toolchain"
|
2024-11-09 18:16:13 +01:00
|
|
|
#define MyAppVersion "0.1.4"
|
2024-11-07 18:21:49 +01:00
|
|
|
#define MyAppPublisher "Egor00f"
|
|
|
|
#define MyAppURL "https://github.com/Egor00f/kolibrios-gcc-toolchain"
|
|
|
|
|
|
|
|
[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={{789D6392-8CEF-48F3-A790-C2714961561E}
|
|
|
|
AppName={#MyAppName}
|
|
|
|
AppVersion={#MyAppVersion}
|
|
|
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
|
|
|
AppPublisher={#MyAppPublisher}
|
|
|
|
AppPublisherURL={#MyAppURL}
|
|
|
|
AppSupportURL={#MyAppURL}
|
2024-11-11 12:09:41 +01:00
|
|
|
AppUpdatesURL={#MyAppURL}\releases
|
|
|
|
AppReadmeFile=.\README.md
|
2024-11-07 18:21:49 +01:00
|
|
|
DefaultDirName=C:\MinGW\msys\1.0\home\autobuild\tools
|
|
|
|
DefaultGroupName={#MyAppName}
|
|
|
|
AllowNoIcons=yes
|
|
|
|
LicenseFile=.\LICENSE
|
|
|
|
; Uncomment the following line to run in non administrative install mode (install for current user only.)
|
|
|
|
;PrivilegesRequired=lowest
|
|
|
|
OutputBaseFilename=installer
|
|
|
|
Compression=lzma
|
|
|
|
SolidCompression=yes
|
|
|
|
WizardStyle=modern
|
|
|
|
|
|
|
|
[Languages]
|
|
|
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
|
|
Name: "armenian"; MessagesFile: "compiler:Languages\Armenian.isl"
|
|
|
|
Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
|
|
|
|
Name: "bulgarian"; MessagesFile: "compiler:Languages\Bulgarian.isl"
|
|
|
|
Name: "catalan"; MessagesFile: "compiler:Languages\Catalan.isl"
|
|
|
|
Name: "corsican"; MessagesFile: "compiler:Languages\Corsican.isl"
|
|
|
|
Name: "czech"; MessagesFile: "compiler:Languages\Czech.isl"
|
|
|
|
Name: "danish"; MessagesFile: "compiler:Languages\Danish.isl"
|
|
|
|
Name: "dutch"; MessagesFile: "compiler:Languages\Dutch.isl"
|
|
|
|
Name: "finnish"; MessagesFile: "compiler:Languages\Finnish.isl"
|
|
|
|
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
|
|
|
|
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
|
|
|
|
Name: "hebrew"; MessagesFile: "compiler:Languages\Hebrew.isl"
|
|
|
|
Name: "hungarian"; MessagesFile: "compiler:Languages\Hungarian.isl"
|
|
|
|
Name: "icelandic"; MessagesFile: "compiler:Languages\Icelandic.isl"
|
|
|
|
Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl"
|
|
|
|
Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
|
|
|
|
Name: "korean"; MessagesFile: "compiler:Languages\Korean.isl"
|
|
|
|
Name: "norwegian"; MessagesFile: "compiler:Languages\Norwegian.isl"
|
|
|
|
Name: "polish"; MessagesFile: "compiler:Languages\Polish.isl"
|
|
|
|
Name: "portuguese"; MessagesFile: "compiler:Languages\Portuguese.isl"
|
|
|
|
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
|
|
|
|
Name: "slovak"; MessagesFile: "compiler:Languages\Slovak.isl"
|
|
|
|
Name: "slovenian"; MessagesFile: "compiler:Languages\Slovenian.isl"
|
|
|
|
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
|
|
|
|
Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl"
|
|
|
|
Name: "ukrainian"; MessagesFile: "compiler:Languages\Ukrainian.isl"
|
|
|
|
|
2024-11-11 12:09:41 +01:00
|
|
|
|
|
|
|
[Registry]
|
|
|
|
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; \
|
|
|
|
ValueType: expandsz; ValueName: "Path"; ValueData: "{olddata};{app}\win32\bin"; \
|
|
|
|
Check: NeedsAddPath('{app}\win32\bin')
|
|
|
|
|
2024-11-07 18:21:49 +01:00
|
|
|
[Files]
|
2024-11-11 11:01:49 +01:00
|
|
|
Source: ".\install.bat"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
|
2024-11-07 18:21:49 +01:00
|
|
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
2024-11-11 12:09:41 +01:00
|
|
|
|
2024-11-07 18:21:49 +01:00
|
|
|
[Run]
|
2024-11-11 11:01:49 +01:00
|
|
|
Filename: "{app}\install.bat"; description: "install script"; StatusMsg: "Installing toolchain"; Parameters: "{app}"; Flags: runhidden logoutput
|
2024-11-11 12:09:41 +01:00
|
|
|
|
|
|
|
[Icons]
|
|
|
|
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
|
|
|
|
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
|
|
|
|
|
|
|
|
[UninstallDelete]
|
|
|
|
Type: files; Name: "{app}\*"
|
|
|
|
|
|
|
|
[Code]
|
|
|
|
function NeedsAddPath(Param: string): boolean;
|
|
|
|
var
|
|
|
|
OrigPath: string;
|
|
|
|
begin
|
|
|
|
if not RegQueryStringValue(HKEY_LOCAL_MACHINE,
|
|
|
|
'SYSTEM\CurrentControlSet\Control\Session Manager\Environment',
|
|
|
|
'Path', OrigPath)
|
|
|
|
then begin
|
|
|
|
Result := True;
|
|
|
|
exit;
|
|
|
|
end;
|
|
|
|
{ look for the path with leading and trailing semicolon }
|
|
|
|
{ Pos() returns 0 if not found }
|
|
|
|
Result := Pos(';' + Param + ';', ';' + OrigPath + ';') = 0;
|
|
|
|
end;
|