neo42-GmbH / PSAppDeployToolKitExtensions

Explore a next level packaging experience with the neo42 Extensions for the PSAppDeployToolkit. The base for the neo42 Application Package Depot
https://neo42.de/application-package-depot
GNU Lesser General Public License v3.0
4 stars 0 forks source link

CMDlet Remove-NxtProductMember must pass the return result especially if the AskKillProcesses dialog box is canceled or times out #1079

Open neo42rkh opened 2 weeks ago

neo42rkh commented 2 weeks ago

Confirmation

Description

if AskKillPrcesses dialog window is aborted or timed out during removal of a product member package this will currently regcognized as a regular error and ends up in a throw and this exits the calling package with general error instead of defined error 1618 for this case -> The occurrence of error codes during the execution of the called uninstallation routine via the CMDlet Remove-NxtProductMember must be passed and only then evaluated directly in the DeployApplication.ps1 (-> Exit-NxtScriptWithError) - no general throw in the event of an error within the CMDlet. In particular, it must be possible to distinguish the errors ONLY if they were generated by the AskKillProcesses dialog window (masking of the result codes 1618 of the AskKillProcess dialog window required?) from the possibly identical return value of an MSI uninstallation.

Release

2024.09.23.47

Windows build

any

Architecture

No response

Deployment System

No response

Relevant logs

No response