You could achieve that by simply scheduling RemoveExistingProducts
before InstallInitialize ->
http://msdn.microsoft.com/en-us/library/aa371197(VS.85).aspx. "normal"
usage placement tends to be after InstallInitialize as the WiX
documentation suggests ->
http://wix.sourceforge.net/manual-wix3/major_upgrade.htm but it also
mentions reviewing the placement options as above.

Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer

-----Original Message-----
From: Rob Hamflett [mailto:r...@snsys.com] 
Sent: 02 August 2010 08:52
To: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Does WIX / MSI support product downgrade ?

 > Does Wix / MSI  support product downgrade ?

Sort of, but not fully.  You can schedule RemoveExistingProducts after
InstallInitialize to remove the old version before installing the new
version.  By this point though the costing has already happened so
Windows Installer has already decided what it thinks needs to be done
with the files, despite the fact that RemoveExistingProducts changes all
that.  You can specify the REINSTALLMODE property to have the value
"amus" which will force the files from the installer you're running to
overwrite any existing ones.  This is needed to make sure that files get
downgraded to the lower versions your older install will be carrying.
This is only safe though if you have no shared components.  In this case
you'll need to uninstall the existing version via some other method
(i.e. 
a bootstrapper) before installing the new/old one.

Rob


------------------------------------------------------------------------
------
The Palm PDK Hot Apps Program offers developers who use the Plug-In
Development Kit to bring their C/C++ apps to Palm for a share of $1
Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to