/build/static/layout/Breadcrumb_cap_w.png

Uninstall strategy

Let's say for example that I have to deploy a new version of an home made application every day. (It's not really that often, but let's use an extreme example.)

The appliation consist of 5 files and a few shortcuts creation that all change with each version.

I'd like the msi package to be able to uninstall any of the previous version before installing itself. There could be potentially 10s of old versions. What's the best way of doing this. Any specific details are welcome, since I'm quite new to packaging.

On a side note, I've been told that this would be alot easier to do in a script rather than with an msi package. But let's pretend that an msi package is the only way to go.

Thanks

0 Comments   [ + ] Show comments

Answers (2)

Posted by: AngelD 16 years ago
Red Belt
0
Read the topic "Patching and Upgrades" in the SDK help-file (msi.chm).
Either use a patch to update the files or use the Upgrade table to remove/uninstall previous version(s).

Search the forum as this has been discussed before.
Posted by: qafyg 16 years ago
Senior Yellow Belt
0
Let me elaborate then on what I'm doing and what's not working.

I've chosen to go with the upgrade table. I was under the impression that if all packages had the same upgrade code, then I would be able to uninstall any previous version with the versionmin, versionmax value.

The problem seems to be that the new package will install correctly, then it will uninstall the previous versions (That's the part that I'm not really understanding). The end result is that all my new files with the same name as the old files get deleted and I'm left with only the new files that have a different name.

EDIT: Just found that it has probably something to do with the RemoveExistingProducts being at the end of the install sequence. Moving it up will probably fix this.
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