Kernel Hotfix deinstallation script

Hi guys,

I need to write a script, that will install KB3000700 kernel HotFix for AX 2009 clients, whitch looks like this:

@ECHO off
@SET SETUP_PATH=\\axaptauat\AX\Install\KB3000700\axupdate.exe

"%SETUP_PATH%"^
	AcceptLicenseTerms=1^
	HideUI=1^
	InstallComponents=1 

My problem is that I also need an uninstallation script, that will silently rollback this update in case of any problems, but I can’t find axupdate syntax elements for components removal. I found out that I can be removed manually in “Programs and functions” tab when displaying updates, but via commandline, with “wmic” command it shows only Windows Updates positions and programs installations ( no updates informaton).

Via Powershell there is the same result. I’ve tried:

Get-WmiKey win32_product or qfe

Have anybody ever had this problem before? Is the only solution is to uninstall client completely and install it again?

You can uninstall this KB using a command in CMD like this:

msiexec /uninstall “your_path_of_KB3000700\msi\components64\components64.msp” /package {AE6DCEE8-6D08-4221-A770-897DBD85ED64} /passive

This command works fine for me.