Regalis11 / scpcb

SCP - Containment Breach
376 stars 107 forks source link

Add MAVLess B3D installer #221

Open Veinhelm opened 2 years ago

Veinhelm commented 2 years ago

Just so people don't have to overwrite their Blitz3D install.

Saalvage commented 2 years ago

Where is this executable installer sourced from? If you wrote it yourself, could you provide the source?

Veinhelm commented 2 years ago

I made it. Here's the source:

; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!

#define AppName "Mavless B3D"
#define AppVersion "1.108"
#define AppPublisher "Juan Pablo Arce"
#define AppURL "https://github.com/juanjp600/blitz3d/"
#define AppExeName "Blitz3D.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={{BD12B0CE-2F68-4692-ADF6-BB9DC7CCBA27}
AppName={#AppName}
AppVersion={#AppVersion}
;AppVerName={#AppName} {#AppVersion}
AppPublisher={#AppPublisher}
AppPublisherURL={#AppURL}
AppSupportURL={#AppURL}
AppUpdatesURL={#AppURL}
DefaultDirName={autopf}\Mavless B3D
DefaultGroupName={#AppName}
LicenseFile=.\license.txt
; Uncomment the following line to run in non administrative install mode (install for current user only.)
;PrivilegesRequired=lowest
OutputDir=.\
OutputBaseFilename=MavlessB3DSetup
Compression=lzma
SolidCompression=yes
WizardStyle=modern

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

[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked

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

[Icons]
Name: "{group}\{#AppName}"; Filename: "{app}\{#AppExeName}"
Name: "{group}\{cm:UninstallProgram,{#AppName}}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\{#AppName}"; Filename: "{app}\{#AppExeName}"; Tasks: desktopicon

[Run]
Filename: "{app}\{#AppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(AppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
Saalvage commented 2 years ago

Considering the userlibs will likely remain static I wonder if it's worth considering embedding them into the installer one way or another to remove another step of the installation process.