Im sorry Tomasz, I didnt read your post carefully enough. File searches happen during AppSearch which is quite early in the execute sequence so your search runs before your custom action sets it up. You need SetAgentDirToSearch to run before AppSearch but it must also run after Costfinalize when CLUPDIR has been resolved. Directory properties are resolved during CostFinalize.
To get it to work, youll need to move SetAgentDirToSearch after Costfinalize (be careful there are no other searches that are sensitive to their order in the sequence) and move AppSearch after SetAgentDirToSearch. However, unless its used elsewhere, you shouldnt need the custom action. You can use [CLUPDIR]Agent\ in the search directly. I hope that helps. -----Original Message----- From: Romanowski Tomasz [mailto:tomasz.romanow...@volvo.com] Sent: 27 September 2010 13:30 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] property value is empty when searchdirectoryrefers to another property Peter, thank you for response. > Either use the modularised property in your search or move your search > into the merge module or use wixlibs instead of merge modules. All of that I described is placed in the same merge module. I'm not sure is it really about modularization, cause I have "diagnostic" custom action (in the same merge module) <CustomAction Id="Diag" Execute="deferred" Return="asyncNoWait" Property="CMD_PROP" ExeCommand="/c echo ads:[AgentDirToSearch] dbex:[DBEXISTS] > c:\diag.txt" /> scheduled after InstallFiles This action simply echos values of properties to text file. And value of AgentDirToSearch is always present there - unlike DBEXISTS. So IMO it says, that there is no problem with searching of AgentDirToSearch property, see ads:C:\Program Files\ClUp\Agent dbex: P.S. I can't find the AgentDirToSearch property in Property table of my MSI. There is custom action with Source set to this property named (followed by Module's guid). I can't find either DBEXISTS property anywhere :-o -- Tomek Romanowski ------------------------------------------------------------------------ ------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users </pre> <BR style="font-size:4px;"> <a href = "http://www.sdl.com"><img src="http://www.sdl.com/images/email logo_150dpi-01.png" alt="www.sdl.com" border="0"/></a> <BR> <font face="arial" size="2"><a href = "http://www.sdl.com" style="color:005740; font-weight: bold">www.sdl.com</a></font> <BR> <BR> <font face="arial" size="1" color="#736F6E"> <b>SDL PLC confidential, all rights reserved.</b> If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.<BR> SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207.<BR> Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, UK. </font> ------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing. http://p.sf.net/sfu/novell-sfdev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users