!macro NSIS_HOOK_PREUNINSTALL DetailPrint "ProxyWarden: cleaning managed components" nsExec::ExecToLog 'powershell.exe -NoProfile -ExecutionPolicy Bypass -File "$INSTDIR\bundled\cleanup\uninstall-managed-components.ps1" -InstallRoot "$INSTDIR"' Pop $0 DetailPrint "ProxyWarden cleanup exit code: $0" !macroend