We had a similar problem and ended up writing a TemplateFile extension in 
http://msiext.codeplex.com. 

dB. @ dblock.org 
Moscow|Geneva|Seattle|New York


-----Original Message-----
From: Jonas Kahlert [mailto:jonas.kahl...@docufy.de] 
Sent: Friday, May 28, 2010 7:34 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] IniFile AddLine to root section

Hi there,

I have an ini.-file that is not divided into sections. Looks like this:

# Hostname of COSIMA
de.docufy.cosima.ui.parts/cmshost=localhost
# Port of COSIMA host
de.docufy.cosima.ui.parts/cmsport=443
# Start XMetaL with tag-view
de.docufy.xmetal.ui/startwithtags=true

# switched to HTTPS as default since JBoss default changed too
de.docufy.cosima.ui.parts/cmshttps=true


No I wanted to change the value for the key 
"de.docufy.cosima.ui.parts/cmshost" to "192.168.0.1" via the IniFile 
Element.
The problem is that there´s a mandatory section-attribute in the 
IniFile-Element. It´s not possible to leave it blank.
When trying this:
<IniFile Id="WriteIntoIniFile" Action="addLine" 
Key="de.docufy.cosima.ui.parts/cmshost" Name="$(var.inifilename)"
Section = "test" Value="192.168.0.1" 
Directory="dirFCEFAD88D5FD0F94EDAA3538F70E78D9" />


there are added to lines to my ini-file:
[test]
de.docufy.cosima.ui.parts/cmshost=192.168.0.1

instead of rpelacing the old value.

Any help woul be appreciated.
Thanks in advance!

Jonas Kahlert



------------------------------------------------------------------------------

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to