Quantcast
Channel: psappdeploytoolkit Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1769

New Post: If statement to check for an installed application then uninstall if found.

$
0
0
Thanks for the help Paul.

I will test it and report back.

I did try the Remove-MSIApplications, but for whatever reason it will not uninstall this application.

I then decided to build an uninstaller using PsApp with the following code:

Execute-MSI -Action Uninstall -Path "{49E48BAD-ED29-44FF-BB27-9BE66CC61852}"

and it works. I want to think it is because the old version of this app is installed in the "users app data folder", but the new version installs in ProgramData, but this should not matter as I do reference the GUID.

Maybe I am better off running the Execute-MSI -Action Uninstall -Path "{49E48BAD-ED29-44FF-BB27-9BE66CC61852}" then add a pause, then remove the second application.

You have given me something to think about regardless.

Thanks

Viewing all articles
Browse latest Browse all 1769

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>