Hey Dirk, Unfortunately the answer is 'no, there isn't an easy way to do this.' You would actually be working around the confines of the Windows Installer world. You can mark a Component as permanent which will leave it on the machine, but this would be before the user had a choice to select that option. In theory, I guess you could prompt the user on the initial installation as to whether or not the .config file should be left. You then would create two components which are identical except for the permanent attribute and condition the Components to handle the user's response.
However, I don't think this is really solving your dilemma if I am understanding you correctly. So, the next option would be to write custom actions to manage this for you. This is were things get really touchy though. If you are going to take that approach, make sure to brush up on your Windows Installer knowledge, Component rules and get ready for some "fun". Honestly leaving configuration files behind kind of scares me if you need to eventually update them because of a change to your product. Do you think it would be better to read out the values from the configuration file to a locaiton of the user's choice and then repopulate the new configuration file with those settings? Thanks, -- Brian Rogers "Intelligence removes complexity." - Me http://icumove.spaces.live.com On Thu, Aug 7, 2008 at 1:20 AM, Reimann, Dirk <[EMAIL PROTECTED]>wrote: > Hello everybody... > > > > I started to use wix a few days ago and also there are some great > tutorials and howto's out there I wasn't able to find answers to all my > problems... > > > > The application I try to write an installer for has got a config file. > > > > I'd like to install the default config only if not already present in > the install dir. > > And I'd like to ask the user if he wants to keep it on uninstall. > > > > Is there an easy way to do it? > > > > With kind regards > > Dirk Reimann > > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users