Recently I needed to create an application to deploy an Office 2010 security update.
The silent installation was straight forward like any other application or an update. However, uninstalling the same KB is not that straight forward as installation.
I have used various commands to uninstall without much luck.
When I have reviewed the uninstall string in the registry it like below;
"C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE14\Oarpmany.exe" /removereleaseinpatch "{90140000-0011-0000-0000-0000000FF1CE}" "{80CEB9D6-F98A-47DD-B41C-DD40B7561AFD}" "1033" "0"
However, when I tried to use command line to uninstall it would not work.
After a bit of research, identified that we need to use the /package and /uninstall switches with associated GUIDs.
So for KB2883013,
The package is {90140000-0011-0000-0000-0000000FF1CE}
The actual patch is {80CEB9D6-F98A-47DD-B41C-DD40B7561AFD}
(We can get both the GUID’s from uninstall registry key)
So the complete uninstall command line syntax will be;
msiexec.exe /package {90140000-0011-0000-0000-0000000FF1CE} /uninstall {80CEB9D6-F98A-47DD-B41C-DD40B7561AFD} /qb
Change the package and patch GUID as required and that will uninstall the desired update.
The silent installation was straight forward like any other application or an update. However, uninstalling the same KB is not that straight forward as installation.
I have used various commands to uninstall without much luck.
When I have reviewed the uninstall string in the registry it like below;
"C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE14\Oarpmany.exe" /removereleaseinpatch "{90140000-0011-0000-0000-0000000FF1CE}" "{80CEB9D6-F98A-47DD-B41C-DD40B7561AFD}" "1033" "0"
However, when I tried to use command line to uninstall it would not work.
After a bit of research, identified that we need to use the /package and /uninstall switches with associated GUIDs.
So for KB2883013,
The package is {90140000-0011-0000-0000-0000000FF1CE}
The actual patch is {80CEB9D6-F98A-47DD-B41C-DD40B7561AFD}
(We can get both the GUID’s from uninstall registry key)
So the complete uninstall command line syntax will be;
msiexec.exe /package {90140000-0011-0000-0000-0000000FF1CE} /uninstall {80CEB9D6-F98A-47DD-B41C-DD40B7561AFD} /qb
Change the package and patch GUID as required and that will uninstall the desired update.
No comments:
Post a Comment