Although the feature to use $(var.Project.TargetPath) isn't done yet, you
can still do what you want by using MSBuild variables. In your .wixproj
file, add the following to a <PropertyGroup> element:

<PropertyGroup>
  <DefineConstants>Configuration=$(Configuration)</DefineConstants>
</PropertyGroup>

This will automatically add the -dConfiguration=Debug to the candle command
line.

Justin

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of ste
Sent: Monday, March 26, 2007 1:32 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Can Votive use Visual Studio Macros/Env vars ..eg
SolutionPath, ConfigurationName ect

Hi

Using Wix3 and Votive.

Is there an environment variable to specify the current project settings

eg instead of hard coding the project path or build i would like use the
Visual studio environment variables

        <File Id="MyService.exe" Name="MyService.exe" DiskId='1'
Vital='yes'
                    Source='..\MyProject\bin\Debug\MyService.exe'/>

For example VS has the macro ConfigurationName mapped to "debug" or
"release", but i cannot access this via the Wix $(env) var

       <File Id="MyService.exe" Name="MyService.exe" DiskId='1' Vital='yes'

Source='..\MyProject\bin\$(env.ConfigurationName)\MyService.exe'/>

Is there away to get these VS environment (macros as VS calls them) into
Votive for Wix to expand?

Thanks


-------------------------------------------------------------------------
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-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


-------------------------------------------------------------------------
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-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to