Skip to content

Commit

Permalink
Add new installer #51
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryptogenic committed Jun 24, 2020
1 parent 79ffbc1 commit af1619c
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 0 deletions.
Binary file added extra/installer-wizard-large.bmp
Binary file not shown.
Binary file added extra/installer-wizard-small.bmp
Binary file not shown.
80 changes: 80 additions & 0 deletions extra/installer.iss
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define MyAppName "OpenOrbis PS4 Toolchain"
#define MyAppVersion "0.4"
#define MyAppPublisher "OpenOrbis"
#define MyAppURL "http://www.github.com/openorbis"
#define Toolchain GetEnv('OO_PS4_TOOLCHAIN_SRC')

[Setup]
; Tell Windows Explorer to reload the environment
ChangesEnvironment=yes
; 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={{0E4C58BF-178A-4E2F-98C6-5BC7B5ED3472}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName=C:\OpenOrbis\PS4Toolchain
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
LicenseFile={#Toolchain}\LICENSE
InfoBeforeFile={#Toolchain}\extra\readme.txt
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
PrivilegesRequiredOverridesAllowed=dialog
OutputDir={#Toolchain}\
OutputBaseFilename=OpenOrbis PS4 Toolchain
SetupIconFile={#Toolchain}\extra\logo.ico
Compression=lzma
SolidCompression=yes
WizardStyle=modern
WizardSmallImageFile={#Toolchain}\extra\installer-wizard-small.bmp
WizardImageFile={#Toolchain}\extra\installer-wizard-large.bmp

[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"

[Files]
Source: "{#Toolchain}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Code]
const
SMTO_ABORTIFHUNG = 2;
WM_WININICHANGE = $001A;
WM_SETTINGCHANGE = WM_WININICHANGE;
type
WPARAM = UINT_PTR;
LPARAM = INT_PTR;
LRESULT = INT_PTR;
function SendTextMessageTimeout(hWnd: HWND; Msg: UINT;
wParam: WPARAM; lParam: PAnsiChar; fuFlags: UINT;
uTimeout: UINT; out lpdwResult: DWORD): LRESULT;
external '[email protected] stdcall';
procedure RefreshEnvironment;
var
S: AnsiString;
MsgResult: DWORD;
begin
S := 'Environment';
SendTextMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0,
PAnsiChar(S), SMTO_ABORTIFHUNG, 5000, MsgResult);
end;
procedure CurStepChanged(CurStep: TSetupStep);
begin
if CurStep = ssPostInstall then
begin
WizardForm.StatusLabel.Caption := 'Setting environment variable...';
RefreshEnvironment;
end;
end;
Binary file added extra/logo.ico
Binary file not shown.
5 changes: 5 additions & 0 deletions extra/readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This installer will install the OpenOrbis PS4 Toolchain to a location of your choosing, and will automatically setup the OO_PS4_TOOLCHAIN environment variable all the build scripts reference.

Some samples are included in /OpenOrbis-PS4-Toolchain/samples and you can find some docs too at /OpenOrbis-PS4-Toolchain/docs.

OpenOrbis PS4 Toolchain does also require you to have copy of LLVM installed, which can be installed by their pre-built binary installers at releases.llvm.org/download.html. Python 3 is optional but recommended if you want to run scripts in /scripts.

0 comments on commit af1619c

Please sign in to comment.