nsis: Fix removing entries from PATH.

Signed-off-by: Mark Yen <mark.yen@suse.com>
This commit is contained in:
Mark Yen
2021-07-09 16:32:09 -07:00
parent ceadad0f7e
commit d492f15061

View File

@@ -72,7 +72,8 @@
!macro customUnInstall !macro customUnInstall
# Remove the bin directory from the PATH # Remove the bin directory from the PATH
File "/oname=$PLUGINSDIR\remove-from-path.ps1" "${BUILD_RESOURCES_DIR}\remove-from-path.ps1" File "/oname=$PLUGINSDIR\remove-from-path.ps1" "${BUILD_RESOURCES_DIR}\remove-from-path.ps1"
ExecShellWait '' 'powershell.exe' \ nsExec::ExecToLog 'powershell.exe \
'-NoProfile -NonInteractive -ExecutionPolicy RemoteSigned "$PLUGINSDIR\remove-from-path.ps1" "$INSTDIR"' \ -NoProfile -NonInteractive -ExecutionPolicy RemoteSigned \
SW_HIDE -File "$PLUGINSDIR\remove-from-path.ps1" "$INSTDIR"'
Pop $R0
!macroend !macroend