mirror of
https://github.com/DrBeef/JKXR.git
synced 2024-11-21 11:41:05 +00:00
91 lines
3.9 KiB
Text
91 lines
3.9 KiB
Text
; Script generated by the Inno Setup Script Wizard.
|
|
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
|
|
|
|
#define MyAppName "JKXR - Jedi Outcast"
|
|
#define MyAppVersion "1.1.27"
|
|
#define MyAppPublisher "Team Beef VR"
|
|
#define MyAppURL "https://www.patreon.com/teambeef"
|
|
#define MyAppExeName "openjo_sp.x86_64.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={{962B9188-98B6-4216-BEB8-C8BCF901C6D0}
|
|
AppName={#MyAppName}
|
|
AppVersion={#MyAppVersion}
|
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
|
AppPublisher={#MyAppPublisher}
|
|
AppPublisherURL={#MyAppURL}
|
|
AppSupportURL={#MyAppURL}
|
|
AppUpdatesURL={#MyAppURL}
|
|
DefaultDirName={autopf}\Steam\steamapps\common\Jedi Outcast\GameData\
|
|
DisableProgramGroupPage=yes
|
|
; Uncomment the following line to run in non administrative install mode (install for current user only.)
|
|
;PrivilegesRequired=lowest
|
|
OutputDir=C:\Dev\Quest\JKXR\JKXR-PCVR-Installer
|
|
OutputBaseFilename=JKXR_JKO_Setup
|
|
Compression=zip
|
|
SolidCompression=yes
|
|
WizardStyle=modern
|
|
AlwaysShowDirOnReadyPage=yes
|
|
AppendDefaultDirName=no
|
|
DisableWelcomePage=yes
|
|
|
|
[Languages]
|
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
|
|
|
[Tasks]
|
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
|
|
|
[Files]
|
|
Source: "C:\Dev\Quest\JKXR\JKXR-PCVR-Installer\JKO\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
|
|
Source: "C:\Dev\Quest\JKXR\JKXR-PCVR-Installer\JKO\jospgamex86_64.dll"; DestDir: "{app}"; Flags: ignoreversion
|
|
Source: "C:\Dev\Quest\JKXR\JKXR-PCVR-Installer\JKO\TeamBeefVR.bat"; DestDir: "{app}"; Flags: ignoreversion
|
|
Source: "C:\Dev\Quest\JKXR\JKXR-PCVR-Installer\JKO\OpenAL32.dll"; DestDir: "{app}"; Flags: ignoreversion
|
|
Source: "C:\Dev\Quest\JKXR\JKXR-PCVR-Installer\JKO\rdjosp-vanilla_x86_64.dll"; DestDir: "{app}"; Flags: ignoreversion
|
|
Source: "C:\Dev\Quest\JKXR\JKXR-PCVR-Installer\JKO\SDL2.dll"; DestDir: "{app}"; Flags: ignoreversion
|
|
Source: "C:\Dev\Quest\JKXR\JKXR-PCVR-Installer\packaged_mods_credits.txt"; DestDir: "{app}"; Flags: ignoreversion
|
|
Source: "C:\Dev\Quest\JKXR\JKXR-PCVR-Installer\JKO\base\*"; DestDir: "{app}\base"; Flags: ignoreversion recursesubdirs createallsubdirs
|
|
Source: "C:\Dev\Quest\JKXR\JKXR-PCVR-Installer\vr_splash.bmp"; Flags: dontcopy
|
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
|
|
|
[Icons]
|
|
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
|
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
|
|
|
[Run]
|
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
|
|
|
[Code]
|
|
var
|
|
Page: TWizardPage;
|
|
|
|
procedure InitializeWizard();
|
|
var
|
|
BitmapImage: TBitmapImage;
|
|
BitmapFileName: String;
|
|
|
|
begin
|
|
Page := CreateCustomPage(wpWelcome, 'JKXR - Jedi Outcast Installer', 'Join our Patreon at: patreon.com/teambeef');
|
|
BitmapFileName := ExpandConstant('{tmp}\vr_splash.bmp');
|
|
ExtractTemporaryFile(ExtractFileName(BitmapFileName));
|
|
BitmapImage := TBitmapImage.Create(Page);
|
|
BitmapImage.Bitmap.LoadFromFile(BitmapFileName);
|
|
BitmapImage.Center := True;
|
|
BitmapImage.Stretch := True;
|
|
BitmapImage.Parent := Page.Surface;
|
|
with BitmapImage do begin
|
|
Width := Page.SurfaceHeight + 10;
|
|
Height := Page.SurfaceHeight + 10;
|
|
Parent := Page.Surface;
|
|
end;
|
|
end;
|
|
|
|
function NextButtonClick(CurPageID: Integer): Boolean;
|
|
begin
|
|
{ Validate certain pages before allowing the user to proceed }
|
|
if CurPageID = Page.ID then begin
|
|
SuppressibleMsgBox('If installing into the same location as an existing Jedi Outcast install, please ensure you choose the directory that contains the single player executable and the "base" folder (probably called Jedi Outcast\GameData)', mbConfirmation, MB_OK, IDOK);
|
|
end;
|
|
Result := True;
|
|
end;
|