Not all vendors are doing a good job when I come to MSI and uninstalling previous versions. This can lead to multiple instances of the application showing up in Program and Features… This calls for a clean-up via post scripts.
Would it be possible to have variables like Vendor, Version, AppName ect. available to send to a post script as arguments, this way we can create more generic clean-up scripts.
Quick use case related to PSAppDeployToolkit (I'm not going to use PSADT as clean-up script, but it shows what I would like to do)
Remove-MSIApplications -Name ‘VLC media' -ExcludeFromUninstall (,('DisplayName',$AppName, 'Exact'))
In addition to this request, I think it would be nice to have the exit code of the install made available as a variable for arguments or environment variable in a post-script too.