Hello,

<Property> 's are processed during installation not while compiling  
the .msi - What you may want to do instead is use pre-processor  
variables. E.g.:

<?define sourcedir = "..\..\MyDir" ?>

And then:

  <File Id='Main.exe' Name='Main.exe' Source='$(var.sourcedir)\Main.exe
DiskId='1' Vital='yes'>

$(var.sourcedir) gets replaced with the value specified in the <? 
define sourcedir=.. ?> tag

Best regards,
Sebastian Brand

Instyler Software - http://www.instyler.com


On Jul 13, 2007, at 11:47 AM, Craig Ward wrote:

> I'm trying to access a property in a file component. I have code that
> looks like this:
>
> <Property Id="source.dir">
>   ..\..\MyFolder
> </Property>
>
> <Directory Id='Target.Bin' Name='Bin'>
>   <Component Id='Exe' Guid='<my guid>'>
>     <File Id='Main.exe' Name='Main.exe' Source='[source.dir]\Main.exe
> DiskId='1' Vital='yes'>
>
> , but when I try to compile, I get:
>
> "error LGHT0100 : File of type 'File' with name '[source.dir] 
> \Main.exe'
> could not be found.
>
> What am I doing wrong???
>
>
> ---------------------------------------------------------------------- 
> ---
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to