Ok, just pass the variable to candle.exe  with parameter -d
candle.exe (...)  *-d*MyVar=MyValue

Then, you can access the value in wix using $(var.MyVar)

So, your batch file looks like:

Set BuildLatest=Build99

candle.exe (...)  *-d*SourceForInstall=BuildLatest
light.exe (...)

And Wix, looks like:
<File Source="$(var.SourceForInstall)\bin\myveryown.dll" />






On Wed, Aug 20, 2008 at 5:38 PM, pavan gadam <[EMAIL PROTECTED]> wrote:

> Hi Eitan,
>
> I am building my Wix Solution through Batch File.
>
> To get that number i will have to scan through the directory and find
> BuildLatest.
>
> If there is complicated logic involved to find Buildlatest later then would
> it not be problem to
> handle it through DOS commands.
>
> Thanks,
> pavan
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to