Skip to content

Commit 1da1358

Browse files
committed
installer: allow testing the new page with -d SecurityOptions
This lets the user run `installer/release.sh -d SecurityOptions` to see what the page looks like, even if they do not have Mandatory ASLR enabled. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
1 parent d519e7c commit 1da1358

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

installer/install.iss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2352,8 +2352,12 @@ begin
23522352
23532353
RdbExtraOptions[GP_Symlinks].Checked:=Data<>'Disabled';
23542354
2355+
#ifdef DEBUG_WIZARD_PAGE
2356+
if ('{#DEBUG_WIZARD_PAGE}'='SecurityOptionsPage.ID') then begin
2357+
#else
23552358
RegQueryBinaryValue(HKEY_LOCAL_MACHINE, 'SYSTEM\CurrentControlSet\Control\Session Manager\kernel', 'MitigationOptions', AslrSetting);
23562359
if (AslrSetting[2]=AnsiChar(#01)) then begin
2360+
#endif
23572361
SecurityOptionsPage:=CreatePage(PrevPageID,'Security options','Add mandatory ASLR security exceptions?',TabOrder,Top,Left);
23582362
RdbSecurityOptions[SO_MandatoryASLR]:=CreateCheckBox(SecurityOptionsPage, 'Add mandatory ASLR security exceptions','Add mandatory ASLR security exceptions for the executables in the "usr/bin"'+#13+'directory and Git Bash to function correctly on Windows systems with'+#13+'mandatory ASLR enabled which is a Windows security feature that is'+#13+'disabled by default but appears to be enabled on your system.'+#13++#13+'<RED>WARNING</RED>: If you have installed Git to a path modifiable by an unprivileged user'+#13+'or an external drive this will add mandatory ASLR security exceptions for'+#13+'those paths on which could introduce a security vulnerability!'+#13++#13+'<RED>WARNING</RED>: Doing this significantly slows down the load time of the program'+#13+'settings list in the exploit protection section of the Windows security application'+#13+'but it will load eventually!',TabOrder,Top,Left);
23592363
RdbSecurityOptions[SO_MandatoryASLR].Checked:=ReplayChoice('Add mandatory ASLR security exceptions','Auto')='Enabled';

0 commit comments

Comments
 (0)