Skip to content

Commit

Permalink
Patched UninstallWindowsAppScript for Windows 7 / Powershell 2.0 back…
Browse files Browse the repository at this point in the history
…wards compatibility.
  • Loading branch information
BuvinJ committed Dec 29, 2020
1 parent 535a339 commit 8ac3ab3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions distbuilder/qt_installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -5458,7 +5458,7 @@ def UninstallWindowsAppScript( appName, arguments=None,
# Exit with error if no command found
if( !$UninstallCmd ){
Write-Error "Uninstall command not found for: $APP_NAME"
exit {NOT_FOUND_EXIT_CODE}
[Environment]::Exit( {NOT_FOUND_EXIT_CODE} )
}
Write-Host "OS registered uninstall command: $UninstallCmd"
Expand Down Expand Up @@ -5498,8 +5498,7 @@ def UninstallWindowsAppScript( appName, arguments=None,
Write-Host "Running: $prog"
if( $args.Count -gt 0 ){ Write-Host "With arguments: $args" }
Start-Process $prog {wait}{hide}-ArgumentList $args
Write-Host "Launched..."
exit 0
[Environment]::Exit( 0 )
""")
if arguments:
ADD_ARG_TMPL = '$args.Add("%s")\n'
Expand Down

0 comments on commit 8ac3ab3

Please sign in to comment.