/build/static/layout/Breadcrumb_cap_w.png

RemoveExistingProducts location

In the default location in Package Studio for RemoveExistingProducts - after InstallFinalize - if the removal of the old product fails, it leaves both old and new versions.
The SDK says best to sequence between InstallExecute and InstallFinlize to roll back removal of the old and the install of the new - but it's not working for me, still getting both versions on a failed removal. Any suggestions?

0 Comments   [ + ] Show comments

Answers (4)

Posted by: zipsantro 15 years ago
Purple Belt
0
Sequence "RemoveExistingProducts" just before "InstallInitialize" and after "InstallValidate". Check your upgrade logic implemented in Upgrade Table. Make sure to uncheck "Continue install after a remove failure".
Cheers! :-)
Posted by: anonymous_9363 15 years ago
Red Belt
0
RemoveExistingProducts is so positioned in order to keep uninstall activity to a minimum. The logic goes that, for the majority of cases, files are generally the same and, if removed before the new version is installed, would simply be replaced. Therefore, leaving this action until the end reduces such pointlessness.

That's the theory, anyway...

http://msdn.microsoft.com/en-us/library/aa371197(VS.85).aspx
Posted by: LouisW 15 years ago
Senior Yellow Belt
0
Problem solved with unchecking the Continue Intallation after a remove failure. Thanks for your advice!
Posted by: jmcfadyen 15 years ago
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