Look in a verbose log. It is possible that INIPATH has the merge module's GUID 
appended to it in its name.

-----Original Message-----
From: Jonas Kahlert [mailto:jonas.kahl...@docufy.de] 
Sent: Tuesday, June 15, 2010 4:58 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] "Modify Ini File in a merge module" or "How to use 
DirectorySearch to look for a directory inside the package"

Hi there,

I have the following setting: 1 merge module, 1 product

The merge module contains an ini file which has to be updated based on 
user Input form a custom dialog.
So we have the following situation: There is a property named CMSHOST 
which contains the respective value that should be written to the .ini 
file.
My code in the product section is the following:

<Property Id='INIPATH'>
<DirectorySearch Id='Check08Dir' 
Path='[INSTALLDIR]\$(var.RelativeIniPath)'></DirectorySearch>
</Property>

<DirectoryRef Id="TARGETDIR">

<Component Id="ConfigIni" Guid="">

<IniFile Id="configIni"
Action="addLine"
Directory="INIPATH"
Section="Test"
Name="$(var.IniFileName)"
Key="de.docufy.cosima.ui.parts/cmshost"
Value="[CMSHOST]" />
</Component>
</DirectoryRef >

Setup breaks with an 2434 Error. Log is DEBUG: Error 2343: Specified 
path is empty.
It seems that INIPATH has not been set properly. Why?
How is it possible to search for a path inside the package in order to 
modifiy my ini-file which is also part of the package?

The easier thing would be to reference directly the Directory ID in the 
Directory Table where the .ini file is placed. But as this part is a 
merge module I can“t access these references in my product-tag, can I?


Please help - I am trying for at least 5 hours searching the whole web, 
but found just nothin related.
Thanks a lot!

Best Regards,

Jonas


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to