Compare commits

..

2 Commits

2 changed files with 4 additions and 16 deletions

View File

@@ -10,13 +10,13 @@ PATH="$NSIS_PATH:$PATH:$NSIS_PATH/"
export PATH="$NSIS_PATH:$PATH:$NSIS_PATH/"
wget(){
which wget && wget $@; return
which powershell && powershell Invoke-WebRequest $@; return
which wget && wget $@ && return
which powershell && powershell Invoke-WebRequest $@ && return
}
makensisi(){
which makensis && makensis $@; return
which wsl && wsl makensis $@; return
which makensis && makensis $@ && return
which wsl && wsl makensis $@ && return
}
if [[ -n "$IS_WSL" || -n "$WSL_DISTRO_NAME" ]]; then

View File

@@ -274,21 +274,9 @@ Function LaunchLink
${If} ${Silent}
ReadEnvStr $0 RESTART_I2P
${If} $0 != ""
UserInfo::GetAccountType
pop $0
${If} $0 == "admin"
ShellExecAsUser::ShellExecAsUser "open" "$DESKTOP\Browse I2P.lnk"
${Else}
ExecShell "" "$DESKTOP\Browse I2P.lnk"
${EndIf}
${EndIf}
${Else}
UserInfo::GetAccountType
pop $0
${If} $0 == "admin"
ShellExecAsUser::ShellExecAsUser "open" "$DESKTOP\Browse I2P.lnk"
${Else}
ExecShell "" "$DESKTOP\Browse I2P.lnk"
${EndIf}
${EndIf}
FunctionEnd