Uninstall Non MSI legacy apps (unwise.exe)

Topics: Archive - Deployment Scripts
Oct 15, 2014 at 4:44 AM

We are using SCCM and have a bunch of legacy apps which have been installed on a clients Win 7 fleet.

I would like to be able to use PS App toolkit to remove these apps prior to installing the new MSI packaged versions.

The legacy apps have a reg entry in HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall that hold the Quiet Uninstall Value.

The legacy apps use Wisescript to handle the uninstall via a command something like:

Does anyone have an example of how to edit the script to do this as either the pre-install step or as a separate uninstall package?
Oct 15, 2014 at 12:26 PM
Edited Oct 15, 2014 at 12:26 PM
Don't worry, found it for myself.

Added the following to the Pre-Installation sections:
Execute-Process -FilePath "C:\Windows\SMS_FI~1\UNWISE.EXE" -Arguments "/s C:\Windows\SMS_FI~1\LOGS\NOTEPA~1.LOG"

Great work you guys. I've been in app packaging and deployment for 10 years and this is THE BEST tool i've seen to date. Thank you!