Sorry if this is a repost, I can't figure out whether or not the first one went through as it's not showing up on the archives. If it's a repost please disregard.
I've been dropped into the deep end of Wix for the last couple of weeks and am trying to come up with a way to make this work. I've learned how to mostly make major upgrades work but for some reason I can't quite nail down this aspect of the installer. How can I do a major upgrade such that certain components aren't uninstalled/reinstalled. I thought that all I would need to do is not change the ComponentID for the component I don't want erased. That doesn't seem to be working for me. I've done the following: <Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <?include ..\PrecompilerDefinitions.wxi ?> <Fragment> <DirectoryRef Id="Data"> <Component Id="DataFilesContainer" Guid="$(var.AppDataDirectoryComponentID)"> <RemoveFolder Id="AppDataSubFolder" On="uninstall" Directory="AppDataSubFolder" /> <RemoveFolder Id="ManufacturerDataSubFolder" On="uninstall" Directory="ManufacturerDataSubFolder" /> <RemoveFolder Id="Data" On="uninstall" Directory="Data" /> <RemoveFile Id="RemoveDataFiles" Name="*.*" On="uninstall" /> <CreateFolder Directory="Data" /> <RegistryValue Root='HKCU' Key='SOFTWARE\!(loc.ManufacturerName)\!(loc.ProductName)' Type='string' Value='KeyPath' KeyPath='yes' /> </Component> </DirectoryRef> </Fragment> </Wix> For some reason those folders are erased and rewritten even when the Component Guid doesn't change. I want to keep the DataFiles unless the user is uninstalling. How can I accomplish this? The full source for this project can be downloaded as a C# Visual Studio Solution here: http://www.mediafire.com/download.php?2yjmzvydtwl Thanks! -Dan If you received this message in error, the information in or attached may be confidential or privileged, so please delete it and contact the sender. We appreciate your trust and good judgment and pledge to show you the same in return. Please consider the environment before printing this email. ------------------------------------------------------------------------------ Download Intel® 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