Actually I have got it to work just great. It was a spelling mistake on my part.
<Component Id="Data" Guid="PUT-GUID-HERE"> <CreateFolder> <Permission User="!(loc.EveryoneGroup)" GenericAll="yes"/> </CreateFolder> <CopyFile Id="ini" FileId="myini" /> <IniFile Id="ServerAddress" Directory="ApplicationNameData" Name="myfile.ini" Section="ConnectionObserver" Key="ServerAddress" Value="[SERVERADDRESS]" Action="addLine"/> <IniFile Id="GroupID" Directory="ApplicationNameData" Name="ciquald.ini" Section="PopupQuestion" Key="GroupID" Value="[GROUPID]" Action="addLine"/> <RemoveFile Id="PurgeDataFolder" Name="*.*" On="uninstall" /> </Component> -----Original Message----- From: Rob Mensching [mailto:r...@robmensching.com] Sent: 21 February 2011 15:03 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] write to IniFile Yep, annoying, eh? The MSI SDK documents that behavior. Want to contribute a custom action that does better? On Mon, Feb 21, 2011 at 1:04 AM, Michael Tissington < michael_tissing...@ciqual.com> wrote: > I'm trying to write to an iniFile. > > How do I tell it which folder the file is in? > Currently it seems to insist that it is in the \Windows folder. > > > > ---------------------------------------------------------------------- > -------- The ultimate all-in-one performance toolkit: Intel(R) > Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- virtually, Rob Mensching - http://RobMensching.com LLC ---------------------------------------------------------------------------- -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users