diff --git a/coreutils.iss b/coreutils.iss index 0a36d7e..8211ce3 100644 --- a/coreutils.iss +++ b/coreutils.iss @@ -375,7 +375,11 @@ begin if CurUninstallStep = usUninstall then begin InitializeGlobals; - InstallPowerShellProfiles(PWSH_SCOPE_NONE); + try + InstallPowerShellProfiles(PWSH_SCOPE_NONE); + except + MsgBox('An error occurred: ' + GetExceptionMessage, mbError, MB_OK); + end; ModifyPath(False); DelTree(g_AppDirPath, True, True, True); end;