Also attempt to do it without the wrapper

This commit is contained in:
idk
2022-05-17 16:52:22 -04:00
parent cf091c9e10
commit 9aba119a49
2 changed files with 6 additions and 4 deletions

View File

@@ -155,9 +155,9 @@ Section Install
UserInfo::GetAccountType
pop $0
${If} $I2PINSTEXE != "${I2PINSTEXE_USERMODE}"
ExecShell runas /user:administrator "I2P-Profile-Installer-${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONBUILD}-wrapped.exe" $PARENTOPTIONS
ExecShell runas /user:administrator "I2P-Profile-Installer-${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONBUILD}-wrapped.exe $PARENTOPTIONS"
${Else}
ExecShell open "I2P-Profile-Installer-${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONBUILD}-wrapped.exe" $PARENTOPTIONS
ExecShell open "I2P-Profile-Installer-${VERSIONMAJOR}.${VERSIONMINOR}.${VERSIONBUILD}-wrapped.exe $PARENTOPTIONS"
${EndIf}
# create the uninstaller

View File

@@ -45,6 +45,7 @@ RequestExecutionLevel user
!include LogicLib.nsh
!include x64.nsh
!include FileFunc.nsh
!define MUI_ICON ui2pbrowser_icon.ico
!define MUI_FINISHPAGE
!include "MUI2.nsh"
@@ -342,10 +343,11 @@ FunctionEnd
# start default section
Section Install
${GetOptions} $CMDLINE "/p" $PARENTOPTIONS
${If} ${FileExists} "${I2PINSTEXE64}\i2p.exe"
ExecShell runas /user:administrator "$EXEFILE"
ExecShell runas /user:administrator "$EXEFILE $PARENTOPTIONS"
${ElseIf} ${FileExists} "${I2PINSTEXE32}\i2p.exe"
ExecShell runas /user:administrator "$EXEFILE"
ExecShell runas /user:administrator "$EXEFILE $PARENTOPTIONS"
${Else}
Call installerFunction
${EndIf}