/build/static/layout/Breadcrumb_cap_w.png

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!

0 Comments   [ + ] Show comments

Answers (5)

Posted by: brenthunter2005 19 years ago
Fifth Degree Brown Belt
0
[8D]

Put the "RemoveExistingProducts" action in the 'Execute Immediate' sequence table between 'InstallValidate' and 'InstallInitialize'.

Let us know if it works successfully for you.

[8D] Keep cool. [8D]
Posted by: MSIMonkey 19 years ago
Yellow Belt
0
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?
Posted by: brenthunter2005 19 years ago
Fifth Degree Brown Belt
0
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.


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
Fourth Degree Brown Belt
0
It might help if you told us what the error was? And what appears in your event log, and log files?
Posted by: adaptability 19 years ago
Orange Senior Belt
0
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?
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