Yes.. perfect. Our plan B is to obtain the directory from MsBuild and pass to wxs through the candle task using the parameter preprocessor (so we can use var.* build replacement)

Thanks,
Adrian

On 10/5/06, Justin Rockwood <[EMAIL PROTECTED]> wrote:

Note that SourceFile is a build-time attribute but you're trying to use the MSI property replacement, which is a run-time value. You have to specify either a relative path to the binary file or you have to put in a preprocessor variable $(var.PathToMyBinary) which you would then send in to candle.exe. Make sense?

 

Justin

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Adrian Alonso
Sent: Thursday, October 05, 2006 12:32 PM
To: [email protected]
Subject: [WiX-devs] Binary SourceFile Problem

 

I am having a problem when I intent to include a Binary that is located in one directory not relative to the wxs file. The directory is defined using a RegistrySearch as following:

<Property Id ="MYLIBINSTALLEDREG" >
      <RegistrySearh Id = "IDMYLIBINSTALLEDREG" Root=" HKLM" Key="Software\Product" Name ="Lib" Type=" directory" />
</ Property>
<
Binary Id= 'MyBinary' SourceFile='[MYLIBINSTALLEDREG] \MyBinary.dll' />

 I can not include the library in my project, the only way I have to find it is searching in the registry entry but I can't find the way (if exists one) to include the result of the RegistrySearch in the Binary src attribute. Any help??

Thanks,
Adrian   


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to