Re: [WiX-users] macro/property for detecting debug/release from Votive

2007-08-02 Thread Justin Rockwood
You can do one of two things:

 

1)  If you're deploying DLLs that you build within your Visual Studio
solution, then you can use the project references to do it. Right mouse
click on your Votive project and click Add Reference. Then add a Project
Reference to the DLL that you want to deploy. In your wxs file you then
write something like this:

File Source=$(var.YourDllProjectName.TargetPath) /

 

When your Votive project builds, it will automatically
detect when projects have been rebuilt and include your new binaries.

 

2)  You can code this yourself in a similar way:

File Source=bin\$(var.Configuration)\DllName.dll /

 

On the Votive property pages, you can then define a compiler
variable like this:

Configuration=$(Configuration)

 

$(Configuration) is an MSBuild property that gets defined
automatically. When candle.exe runs, the Configuration property will be
defined correctly for you.

 

Hope this helps,

Justin

 

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adam Langley
Sent: Wednesday, August 01, 2007 4:02 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] macro/property for detecting debug/release from Votive

 

I am using Votive in Visual Studio 2005.

Can anyone tell me how I can configure my WXS file to pick up DLLS to be
deployed (with the File tag) from bin\Debug if the build configuration is
set to Debug, and bin\Release if its Release?

 

Thanks

 

-  Adam

 

Secon NZ Ltd.
A1/400 Rosedale Road
Albany
North Shore 0632
New Zealand

Tel.  +64 (0)9 414 4071
Fax. +64 (0)9 414 4072

www.seconag.com

 

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] macro/property for detecting debug/release from Votive

2007-08-02 Thread John Hall
 

I am using Votive in Visual Studio 2005.

Can anyone tell me how I can configure my WXS file to pick up
DLLS to be deployed (with the File tag) from bin\Debug if the build
configuration is set to Debug, and bin\Release if its Release?

 

Adam,

 

Light uses the -b switch to specify the base directory to search for
files. This is set using the LinkerBaseInputPaths element in the
.wixproj file. You therefore shoud modify the .wixproj file with
something like:

 
  PropertyGroup
Configuration Condition= '$(Configuration)' == ''
Debug/Configuration
ProductVersion3.0/ProductVersion
ProjectGuid{b166672d-6329-4dd1-abc3-2e72d5e6e0a1}/ProjectGuid
SchemaVersion2.0/SchemaVersion
OutputNameIdentifier/OutputName
OutputTypePackage/OutputType
WixToolPath$(ProgramFiles)\Windows Installer XML
v3\bin\/WixToolPath
LinkerBaseInputPathsbin\$(Configuration)/LinkerBaseInputPaths
  /PropertyGroup


Regards,

John

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users