remove unused elevatorCallback, elevation for installs performed as an admin is now handled on the Java side and has been for a long time

This commit is contained in:
idk
2022-08-19 16:14:11 -04:00
parent 6afecedf59
commit 217f54db07

View File

@@ -130,7 +130,6 @@ RequestExecutionLevel user
PageEx license PageEx license
licensetext "${LICENSE_TITLE}" licensetext "${LICENSE_TITLE}"
licensedata "licenses\LICENSE.txt" licensedata "licenses\LICENSE.txt"
#PageCallbacks elevatorCallback
PageExEnd PageExEnd
PageEx directory PageEx directory
dirtext "${FIREFOX_MESSAGE}" dirtext "${FIREFOX_MESSAGE}"
@@ -346,20 +345,6 @@ ${If} ${Silent}
CreateShortCut "$SMPROGRAMS\${APPNAME}\Uninstall-${APPNAME}.lnk" "$INSTDIR\uninstall-i2pbrowser.exe" CreateShortCut "$SMPROGRAMS\${APPNAME}\Uninstall-${APPNAME}.lnk" "$INSTDIR\uninstall-i2pbrowser.exe"
FunctionEnd FunctionEnd
Function elevatorCallback
${GetOptions} $CMDLINE "/p" $PARENTOPTIONS
${If} "${PARENTOPTIONS}" != ""
StrCpy $PARENTOPTIONS "-ArgumentList '$PARENTOPTIONS'"
${EndIf}
${If} ${FileExists} "${I2PINSTEXE64}\i2p.exe"
ExecShell open "powershell -Command Start-Process .\$EXEFILE -Wait -Verb RunAs $PARENTOPTIONS"
#Quit
${ElseIf} ${FileExists} "${I2PINSTEXE32}\i2p.exe"
ExecShell open "powershell -Command Start-Process .\$EXEFILE -Wait -Verb RunAs $PARENTOPTIONS"
#Quit
${EndIf}
FunctionEnd
# start default section # start default section
Section Install Section Install