This project has moved and is read-only. For the latest updates, please go here.

Custom update - msi uninstall

Topics: Publishing Issue
Feb 16, 2015 at 10:01 PM
Hi all,
I'm new to WSUS WPP and I managed to configure install and uninstall of well known products in this forum.

However, I'm trying to do a custom uninstall of a program using msiexec since I don't have msi files for the software to do a regular uninstall using WSUS publish update option

I tried adding registry product code and do a custom uninstall using msiexec /X{Productcode} and follow the same step for uninstalling Java. I also added Msi Productcode manually, but when I publish and go to approval view, I don't have option to "Approve for uninstall".

Anyone have any ideas as to going about uninstalling software with product codes only?

I forgot to mention, if I do

msiexec /X{productcode} /qn

in cmd, I'm able to uninstall the software fine.
Feb 17, 2015 at 11:19 AM
I tried adding registry product code and do a custom uninstall using msiexec /X{Productcode} and follow the same step for uninstalling Java. I also added Msi Productcode manually, but when I publish and go to approval view, I don't have option to "Approve for uninstall".
You are creating a Custom Update, which use CustomeUpdateEngine.exe to perform. Wsus can only uninstall MSI/MSP updates.
By the way, you don't need to approve for uninstallation, because your script launch an uninstallation (/X). So approve the custom update for installation to uninstall the program !
Feb 17, 2015 at 8:08 PM
Thanks for the reply. I actually took a look at my package, I actually set the rule so that if the product code exists, do not run it. Do I checked "reverse rule" to flip the condition. Now it works perfectly.
Marked as answer by DCourtel on 2/17/2015 at 9:34 PM