Also attempt to do it without the wrapper
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user