@@ -36,7 +36,6 @@ Source: "{{SOURCE_DIR}}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdir
36
36
Source : " ..\..\dependencies\redist\VC_redist.x64.exe" ; DestDir : {tmp} ; Flags : dontcopy
37
37
38
38
[Run]
39
- Filename : " powershell.exe" ; Parameters : " -ExecutionPolicy Bypass -Command " " Add-MpPreference -ExclusionPath '{app} '" " " ; Flags : runhidden
40
39
Filename : " {app} \{{EXECUTABLE_NAME}}" ; Description : " {cm:LaunchProgram,{{DISPLAY_NAME}}}" ; Flags : runascurrentuser nowait postinstall skipifsilent
41
40
Filename : " {tmp} \VC_redist.x64.exe" ; StatusMsg : " {cm:InstallingVC2017redist}" ; Parameters : " /quiet" ; Check : VC2017RedistNeedsInstall; Flags : waituntilterminated
42
41
@@ -46,6 +45,44 @@ Name: "{autodesktop}\{{DISPLAY_NAME}}"; Filename: "{app}\{{EXECUTABLE_NAME}}"; T
46
45
Name : " {userstartup}\{{DISPLAY_NAME}}" ; Filename : " {app} \{{EXECUTABLE_NAME}}" ; WorkingDir : " {app} " ; Tasks: launchAtStartup
47
46
48
47
[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
+
49
86
function CompareVersion (version1, version2: String): Integer;
50
87
var
51
88
packVersion1, packVersion2: Int64;
0 commit comments