Why is product upgrade failing?
Hello,
I have a small application I've packaged, with an upgrade code specified to upgrade an older package of the same software. The new package works great when it doesn't have to perform an upgrade, but when the old package is on the machine and an upgrade is performed, the resulting installation doesn't function. If the old package is removed through Add/Remove Programs before dropping the new installation, everything works fine.
I have tried moving the "RemoveExistingProducts" action in the MSI Script section to each of the locations that the Windows Installer SDK help said were allowable. Unfortunately, my results didn't change with these modifications.
I would greatly appreciate any suggestions that anyone has. Thanks!
I have a small application I've packaged, with an upgrade code specified to upgrade an older package of the same software. The new package works great when it doesn't have to perform an upgrade, but when the old package is on the machine and an upgrade is performed, the resulting installation doesn't function. If the old package is removed through Add/Remove Programs before dropping the new installation, everything works fine.
I have tried moving the "RemoveExistingProducts" action in the MSI Script section to each of the locations that the Windows Installer SDK help said were allowable. Unfortunately, my results didn't change with these modifications.
I would greatly appreciate any suggestions that anyone has. Thanks!
0 Comments
[ + ] Show comments
Answers (5)
Please log in to answer
Posted by:
brenthunter2005
19 years ago
Posted by:
MSIMonkey
19 years ago
Brent, thanks for the suggestion. I did try it there, but unfortunately I had the same results.
I did forget to mention one thing originally. When the new package is dropped on top of an old install, it doesn't work. However, if I do a repair on that new installation, it resolves the issue and the app functions correctly. That makes me think that maybe a default value for an option that I'm missing is preventing the old install from being completely uninstalled or the new package from being applied correctly.
Ideas, anyone?
I did forget to mention one thing originally. When the new package is dropped on top of an old install, it doesn't work. However, if I do a repair on that new installation, it resolves the issue and the app functions correctly. That makes me think that maybe a default value for an option that I'm missing is preventing the old install from being completely uninstalled or the new package from being applied correctly.
Ideas, anyone?
Posted by:
brenthunter2005
19 years ago
It sounds like the new MSI package isn't running a complete uninstall of the old package. Double check your attribute setting in the Upgrade table.
For testing, ensure that you don't include msidbUpgradeAttributesMigrateFeatures or msidbUpgradeAttributesIgnoreRemoveFailure.
Good luck.
For testing, ensure that you don't include msidbUpgradeAttributesMigrateFeatures or msidbUpgradeAttributesIgnoreRemoveFailure.
from the Windows Installer SDK Documentation:
msidbUpgradeAttributesMigrateFeatures 0x001 Migrate feature states by enabling the logic in the MigrateFeatureStates action.
msidbUpgradeAttributesIgnoreRemoveFailure 0x004 Continue installation upon failure to remove a product or application.
Good luck.
Posted by:
WiseUser
19 years ago
Posted by:
adaptability
19 years ago
Hi Guys,
I think indeed the upgrade will happen when you put the remove existing properties between 'InstallValidate' and 'InstallInitialize'.You should try comparing the older version msi with the newer version to narrow down to the problem.
Have you tried installing your upgraded version msi with out upgrade logic on th emachine where the old msi exists.
what is the result?
I think indeed the upgrade will happen when you put the remove existing properties between 'InstallValidate' and 'InstallInitialize'.You should try comparing the older version msi with the newer version to narrow down to the problem.
Have you tried installing your upgraded version msi with out upgrade logic on th emachine where the old msi exists.
what is the result?
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.