RW wrote:
> <File Id="MyConfig.XML" Name=" MyConfig.XML " Source="Startup\ MyConfig.XML
> " />
> 
> As it changes and will contain important data, I don't want the uninstaller
> to actually remove it.

Generally, this is not the correct way of doing things. The idea is to,

 1. install MyConfig.XML with default data in program directory
 2. your application opens MyConfig.XML in Application Data folder
unique to each user, OR
 3. if #2 not available, opens MyConfig.XML data in Application Data
folder for All Users, OR
 4. if #3 not avaiable, open the default settings from installation
directory.

Steps 2-4 apply per settings file or per setting, your choice.

Then to save the settings, it should write,

 1. to user's Application Data folder
 2. to All User's Application Data folder if it has write permissions
for that location.

This way your application is not only correctly installed, it will work
in cases where system administrator may have reconfigured your
application for your computer or site install.

- Adam

-- 
Mail Etiquette
==============
* Quote properly or not at all. Top posters, this applies to you!
* When replying to posts on mailing lists, only address the mailing list
  unless poster explicitly requested you include them in CC

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to