/build/static/layout/Breadcrumb_cap_w.png

Uninstalling patched MSI's

Hi my first post and I did a search but couldnt find what I needed and hope someone can help,

I have an the following:

application1-0.msi
this package has a problem so I create
application1-1.msi
and also create a .msp to patch all 1-0 installs to 1-1

all well up to this point but when i go to uninstall application1-1.msi that has been patched im getting the another version installed error when using the following in a bat file

msiexec.exe /x application1-1.msi /qb!

but it uninstalls correctly when using

msiexec.exe /x application1-0.msi /qb!

I want to only have one uninstall bat and msi for consistancy, is this possable?

0 Comments   [ + ] Show comments

Answers (4)

Posted by: WiseUser 16 years ago
Fourth Degree Brown Belt
0
Have you tried removing the application using the "ProductCode" of "application1-1.msi"?

Msiexec.exe /x {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} /qb!
Posted by: Rob5643665 16 years ago
Senior Yellow Belt
0
Thanks WiseUser, that worked a treat.

But now I am wondering if anyone can explain why the uninstall wouldnt work using 'msiexec.exe /x application1-1.msi /qb!' when that is the version it has been patched to?

Anyway, thanks again for your help WiseUser [:)]
Posted by: WiseUser 16 years ago
Fourth Degree Brown Belt
0
No problem.

It's because the "PackageCode" of your installed MSI is different to that of the new one (and so it should be).

Try running the following vbscript (.vbs) on a patched PC to check the PackageCode, and then compare it with the PackageCode of your newer MSI.


Set oInst = CreateObject("WindowsInstaller.Installer")

Const sPRODCODE = "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"

Msgbox oInst.ProductInfo(sPRODCODE, "PackageCode")

Set oInst=nothing
Posted by: Rob5643665 16 years ago
Senior Yellow Belt
0
Thanks again!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ