Elevator has to use powershell

This commit is contained in:
idk
2022-05-17 18:31:44 -04:00
parent 10ca0ec281
commit cf4017f212
2 changed files with 3 additions and 3 deletions

View File

@ -155,7 +155,7 @@ Section Install
UserInfo::GetAccountType
pop $0
${If} $I2PINSTEXE != "${I2PINSTEXE_USERMODE}"
ExecShell runas /user:administrator "I2P-Profile-Installer-${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONBUILD}-wrapped.exe $PARENTOPTIONS"
ExecShell open "powershell -Command Start-Process cmd -Verb RunAs -ArgumentList 'I2P-Profile-Installer-${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONBUILD}-wrapped.exe $PARENTOPTIONS'"
${Else}
ExecShell open "I2P-Profile-Installer-${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONBUILD}-wrapped.exe $PARENTOPTIONS"
${EndIf}

View File

@ -346,9 +346,9 @@ FunctionEnd
Section Install
${GetOptions} $CMDLINE "/p" $PARENTOPTIONS
${If} ${FileExists} "${I2PINSTEXE64}\i2p.exe"
ExecShell runas /user:administrator "$EXEFILE $PARENTOPTIONS"
ExecShell open "powershell -Command Start-Process cmd -Verb RunAs -ArgumentList '$EXEFILE $PARENTOPTIONS'"
${ElseIf} ${FileExists} "${I2PINSTEXE32}\i2p.exe"
ExecShell runas /user:administrator "$EXEFILE $PARENTOPTIONS"
ExecShell open "powershell -Command Start-Process cmd -Verb RunAs -ArgumentList '$EXEFILE $PARENTOPTIONS'"
${Else}
Call installerFunction
${EndIf}