In short: when I install my newer msi package over an older existing install, 
the old files are deleted but are not replaced with their newer versions.  I 
end up with all "overlapping files" gone, and only newly-added files remain.  
For example:

Old WXS:

 <Directory Id='folder_folder' Name='folder'>
   <Component Id='folder' Guid='xxxx'>
     <File Id='f1' Source='f1' />
     <File Id='f2' Source='f2' />
     <File Id='f3' Source='f3' />
   </Component>
 </Directory>

New WXS:

 <Directory Id='folder_folder' Name='folder'>
   <Component Id='folder' Guid='xxxx'>
     <File Id='f1' Source='f1' />
     <File Id='f2' Source='f2' />
     <File Id='f3' Source='f3' />
     <File Id='f4' Source='f4' />
     <File Id='f5' Source='f5' />
   </Component>
 </Directory>

After installing new over old, my resulting folder only has f4 and f5... I've 
lost f1 f2 f3.

I understand now that I probably shouldn't have done it this way... based on 
what I'm reading it seems a component per file would have been the way to go 
but it wasn't clear at the time of initial creation that this would be an 
issue... didn't know to look for the solution of a problem I didn't know I had. 
 Anyway, I've read through a few similar threads and I honestly just don't get 
what the easiest way out of my situation is.  My "old" package has 30 or so 
directory components with lots of files and directories under each component.  
Of course now I have this "old" package installed in lots of customer 
locations.  My situation is further complicated by the fact that some customers 
have modified some resources and I don't want my update to overwrite anything 
they've changed by hand.

I've tried a few things, unsuccessfully:

1) tried simply changing the component Guid... no change in behavior... only 
the new files result.
2) tried changing <RemoveExistingProducts After="InstallFinalize" /> to 
<RemoveExistingProducts After="InstallInitialize" />... which resulted in me 
getting all the files correctly, but customer-modified resources were gone.
3) tried adding <Property Id='REINSTALLMODE' Value='amus'/>... resulted in some 
behavior I didn't understand where all the feature options were X'd out... but 
selecting them to install still resulted in only new files.
4) tried making a component per file with all new Guids... that too resulted in 
only the new files.

Am I missing something basic I hope?  Any help appreciated in recovering from 
this situation and making it easier in the future.  Thanks.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to