Skip to content

Fix uninstall when pwsh.exe is missing#40

Merged
carlos-zamora merged 1 commit into
mainfrom
dev/lhecker/uninstall-fix
Jun 3, 2026
Merged

Fix uninstall when pwsh.exe is missing#40
carlos-zamora merged 1 commit into
mainfrom
dev/lhecker/uninstall-fix

Conversation

@lhecker
Copy link
Copy Markdown
Member

@lhecker lhecker commented Jun 3, 2026

Closes #17

Comment thread coreutils.iss
Comment on lines +249 to +250
if not ExecAndCaptureOutput('pwsh.exe', Params, '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode, Output) then
Exit;
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the fix: By inlining ExecPwsh here, we can check if it returned false (= command not found) and return early.

@carlos-zamora carlos-zamora merged commit f514790 into main Jun 3, 2026
1 check passed
@carlos-zamora carlos-zamora deleted the dev/lhecker/uninstall-fix branch June 3, 2026 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Runtime error: Failed to update PowerShell profiles

2 participants