Skip to content

Commit 0cfa4af

Browse files
committed
10.0.4
1 parent d42946c commit 0cfa4af

File tree

2 files changed

+39
-2
lines changed

2 files changed

+39
-2
lines changed

gui/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: reboot_launcher
22
description: Graphical User Interface for Project Reboot
3-
version: "10.0.3"
3+
version: "10.0.4"
44

55
publish_to: 'none'
66

gui/windows/packaging/exe/custom-inno-setup-script.iss

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ Source: "{{SOURCE_DIR}}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdir
3636
Source: "..\..\dependencies\redist\VC_redist.x64.exe"; DestDir: {tmp}; Flags: dontcopy
3737

3838
[Run]
39-
Filename: "powershell.exe"; Parameters: "-ExecutionPolicy Bypass -Command ""Add-MpPreference -ExclusionPath '{app}'"""; Flags: runhidden
4039
Filename: "{app}\{{EXECUTABLE_NAME}}"; Description: "{cm:LaunchProgram,{{DISPLAY_NAME}}}"; Flags: runascurrentuser nowait postinstall skipifsilent
4140
Filename: "{tmp}\VC_redist.x64.exe"; StatusMsg: "{cm:InstallingVC2017redist}"; Parameters: "/quiet"; Check: VC2017RedistNeedsInstall; Flags: waituntilterminated
4241

@@ -46,6 +45,44 @@ Name: "{autodesktop}\{{DISPLAY_NAME}}"; Filename: "{app}\{{EXECUTABLE_NAME}}"; T
4645
Name: "{userstartup}\{{DISPLAY_NAME}}"; Filename: "{app}\{{EXECUTABLE_NAME}}"; WorkingDir: "{app}"; Tasks: launchAtStartup
4746

4847
[Code]
48+
var
49+
Page: TInputOptionWizardPage;
50+
51+
procedure InitializeWizard();
52+
begin
53+
Page := CreateInputOptionPage(
54+
wpWelcome,
55+
' Allow DLL injection',
56+
' The Reboot Launcher needs to inject DLLs into Fortnite to create the game server',
57+
'Selecting the option below will add the Reboot Launcher to the Windows Exclusions list. ' +
58+
'This is necessary because DLL injection is often detected as a virus, but is necessary to modify Fortnite. ' +
59+
'This option was designed for advanced users who want to manually manage the exclusions list on their machine. ' +
60+
'If you do not trust the Reboot Launcher, you can audit the source code at https://github.com/Auties00/reboot_launcher and build it from source.',
61+
False,
62+
False
63+
);
64+
Page.Add('&Add the launcher to the Windows Exclusions list');
65+
Page.Values[0] := True;
66+
end;
67+
68+
function ShouldSkipPage(PageID: Integer): Boolean;
69+
begin
70+
Result := False;
71+
end;
72+
73+
procedure CurStepChanged(CurStep: TSetupStep);
74+
var
75+
ResultCode: Integer;
76+
InstallationDir: String;
77+
begin
78+
if (CurStep = ssPostInstall) and Page.Values[0] then
79+
begin
80+
InstallationDir := ExpandConstant('{app}');
81+
Exec('powershell.exe', '-ExecutionPolicy Bypass -Command ""Add-MpPreference -ExclusionPath ''' + InstallationDir + '''""' , '', SW_HIDE, ewWaitUntilTerminated, ResultCode);
82+
Log('Powershell exit code: ' + IntToStr(ResultCode));
83+
end;
84+
end;
85+
4986
function CompareVersion(version1, version2: String): Integer;
5087
var
5188
packVersion1, packVersion2: Int64;

0 commit comments

Comments
 (0)