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?
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)
Please log in to answer
Posted by:
WiseUser
16 years ago
Posted by:
Rob5643665
16 years ago
Posted by:
WiseUser
16 years ago
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
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.
Const sPRODCODE = "{XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX}"
Msgbox oInst.ProductInfo(sPRODCODE, "PackageCode")
Set oInst=nothing
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.