Or you can use the "-b" switch.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eitan Behar
Sent: Wednesday, August 20, 2008 06:21
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Dynamically Pick File Sourc
Hi Pavan,
If the source folder is relative to the solution/project paths, you can
indeed use a VisualStudio variable, like $(var.MyProject.TargetDir), or
$(var.SolutionDir). But, I don't see how this can help you.
You can "easily" create a C# program that generates the XX number, and save
it on t
Hi Eitan,
Is there any way in which BuildXX can be auto generated apart from DOS
Script?
Is it possible with Visual Studio specific Variable?
Thanks,
pavan
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
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 lik
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
-
Hi Pavan,
How are your running the automated WIX process ? If you are just running a
batch file from DOS, use the command:
SET MyVariable=BUILD69 (or use any DOS trick to generate the number for you)
Systems like FinalBuilder, MSBuild, or BuildForge will allow you to do that
automatically.
Yo do
But how to you set this env variable?
I want to write a C# Custom Action. Is it possible in Custom Action to fetch
env variable and set it?
How do you declare System Environment variable?
Thanks,
Pavan
-
This SF.Net email is
You need to use a variable to accomplish this. You have several to choose
from: environment, preprocessor, visual studio specific, etc.
If you have declared a System Environment variable SrcRootPath use:
Where SrcRootPath points to the BUILDxxx folder.
You can use instead the format $(var.Vari
8 matches
Mail list logo