I think the only way to do this is to fully support side-by-side
installation of different versions of the product, and that means different
install folders, different component GUIDs, not using
RemoveExistingProducts, ensuring the user doesn't try to install to a folder
containing any other version (to ensure you don't get the
one-resource-managed-by-two-components problem), and a lot of testing. The
Windows Installer file-versioning scheme will overwrite older (versions of)
files with newer ones, but will never overwrite newer files with older ones.
--
Mike Dimmick
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Igor Lemsky
Sent: 23 March 2007 07:49
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Ways of downgrading
In my product I need support functionallity of downgrading. For example,
after release of the version 2.0.5 and version 2.1.0 and after installing
2.1.0 user can install 2.0.5 and it installs correctly. But how to implement
this without bootstrapping, using only MSI functionality?
If I use major upgrade and RemoveExistingProducts it leave newer versions of
the files (for assemblies - due to version check, for other - modify date)
- if RemoveExistingProducts after InstallFinalize or little earlier. If
RemoveExistingProducts is before InstallInitialize, it removes files
entirely - because it uninstall them, but then not install, it was newer
versions of them...
Only way is to remove right after FindRelatedProducts but then we lost
Rollback functionality (if we cancel downgrade process - newer product will
not remain).
Of course there is way - minor upgrade and REINSTALL, but it also has some
limitations, or no?
Can anyone help me to find better way?
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users