/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
Have you tried removing the application using the "ProductCode" of "application1-1.msi"?

Msiexec.exe /x {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX} /qb!
Answered 06/05/2007 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
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 [:)]
Answered 06/05/2007 by: Rob5643665
Senior Yellow Belt

Please log in to comment
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
Answered 06/05/2007 by: WiseUser
Fourth Degree Brown Belt

Please log in to comment
0
Thanks again!
Answered 06/06/2007 by: Rob5643665
Senior Yellow Belt

Please log in to comment