Thanks Peter and Pally for the replies. I don't make a lot of installers, but I did read and follow the component rules very carefully when I created the original installer. What I'm unclear on is if I have the same component snippet in two MSI files (same GUID), but one snippet contains a newer version of the underlying file, how does the windows installer know that the newer version is in fact a newer version?
E.g. Version 1 created in 2008 and Version 2 created in 2010 are identical except the "Source" attribute of the "File" element points to an updated version of the file "..\USGS Topographic\250k\NY\c43078a1.tif". Since components don't appear to have any version info, if I run the version 2 installer, followed by the version 1 installer, what prevents the old file from overwriting the newer file? <Component Id='c43078a1.tif' Guid='784351B6-50BC-43B3-B668-F5248B4A4B90'> <File Id='c43078a1.tif' Name='c43078a1.tif' DiskId='1' KeyPath='yes' Source='..\USGS Topographic\250k\NY\c43078a1.tif' /> </Component> Agreed, VMs are very helpful for this sort of thing. Craig On Wed, Jun 30, 2010 at 6:37 AM, Pally Sandher <pally.sand...@iesve.com> wrote: > >From the sounds of it you're following the Component Rules > >(http://msdn.microsoft.com/en-us/library/Aa370561) quite well so it should > >work fine if all 30 installers install that Component to the same location. > >Just build a new installer with the updated file & it should update when you > >install (as always test it thoroughly before you ship, Virtual Machines are > >invaluable for this). > > 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: Miller, Craig [mailto:craig.mil...@spatialminds.com] > Sent: 29 June 2010 17:37 > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Component Level Versioning? > > Note: I sent this yesterday, but it never appeared on the list. I apologize > if this is a repost for some. > > I'm trying to understand how to install a newer version of a "component" that > is shared between multiple installers. I can't seem to find any explanation > of this in the docs or via google. If I missed it, a link would be fantastic. > > I have about 30 different installers that all have the same "component" > fragment and same component GUID in them. E.g. > > <Component Id='c43078a1.tif' Guid='784351B6-50BC-43B3-B668-F5248B4A4B90'> > <File Id='c43078a1.tif' Name='c43078a1.tif' DiskId='1' KeyPath='yes' > Source='..\USGS Topographic\250k\NY\c43078a1.tif' /> </Component> > > This has allowed the installer to reference count how many times the file has > been installed, and only uninstall it when none of the installers are using > it. > > I now need to install a newer version of this component. The newer version > is shared between all of my installers (Same Component GUID). > Is there any way to install the newer version of this component such > that: > > 1. The newer version will install, overwriting any existing older versions > 2. Insure that it will be uninstalled when the last application that uses > this component is uninstalled. > 3. Insure that it will not be overwritten by other installers that have > older versions of the file. > > I'm using Wix 2.1 > > Thanks, > Craig > > -- > Craig Miller > Geospatial Software Architect > > > > -- > Craig Miller > Geospatial Software Architect > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint What will you do first with EVO, the > first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- Craig Miller Geospatial Software Architect ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users