Skip to content

Commit e8ec35d

Browse files
committed
Fix Installer: Disabling ASLR for the Igor process was never applied
The powershell script uses the Set-ProcessMitigation CmdLet. However, when calling powershell.exe from the 32-bit installer the 32-bit powershell is started and it does not support the CmdLet. This commit fixes this by explicitly calling the 64 bit powershell executable.
1 parent 437ea2a commit e8ec35d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/installer/installer.nsi

+2-1
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,8 @@ SkipVCRedistInstallation:
852852

853853
IntCmp $ISADMIN 0 SkipASLRSetup
854854
IntCmp $XOPINST 0 SkipASLRSetup
855-
ExecWait 'Powershell.exe -executionPolicy bypass -File "$INSTDIR\Packages\ITCXOP2\tools\Disable-ASLR-for-Igor64.ps1"' $0
855+
# This special execution is required because we need to run 64-bit powershell here
856+
ExecWait '$WINDIR\sysnative\windowspowershell\v1.0\powershell.exe -executionPolicy bypass -File "$INSTDIR\Packages\ITCXOP2\tools\Disable-ASLR-for-Igor64.ps1"' $0
856857
IntCmp $0 0 SkipASLRSetup
857858
IfSilent +2
858859
MessageBox MB_OK "Can not disable ASLR for Igor64.exe."

0 commit comments

Comments
 (0)