Hi,

We use a variable with current build passed into wix.

Therefore you can enter "Build=$(Configuration)" on the Build/Link Tab of the 
.wixproj properties page.
With that, you are able to add debug stuff like this:

<Component Id=MyFile' Guid=*MAKESOMEGUID*>
<File Id=MyFile.exe' Name='MyFile.exe' Source='MyPath\bin\$(var.Build)\' 
Checksum='yes' />
<?if $(var.Build) = "Debug"?>
<File Id=MyFile.pdb' Name='MyFile.pdb' Source='MyPath\bin\$(var.Build)\' 
Checksum='yes' />
<?endif?>
</Component>

Oli

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SmilingInSunshine
Sent: Dienstag, 7. August 2007 14:09
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to organize debug/release builds using the same WiX 
script (.wxs)


To overcome some problems with a standard Visual Studio 2005 setup project I
have migrated it into WiX worlds.

Everything seems to work fine but I don't know how to produce two versions
of builds: debug build and release build.

My current version of the script can be only used to create a DEBUG version,
since the path
to source file is hardcoded in the script:


<File Id='Manual' Name='Manual.pdf' DiskId='1'
Source='..\SubProject1\Bin\Debug\App.exe'>


Is there any way to determine a type of build during the build step to
automatically produce both release/debug versions using the same script?

Ideally I would like to have $DebugOrRelease which is set to Debug if a
debug version being build,
or Release, otherwise:


<File Id='Manual' Name='Manual.pdf' DiskId='1'
Source='..\SubProject1\Bin\[$DebugOrRelease]\App.exe'>


--
View this message in context: 
http://www.nabble.com/How-to-organize-debug-release-builds-using-the-same-WiX-script-%28.wxs%29-tf4229683.html#a12032945
Sent from the wix-users mailing list archive at Nabble.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

-------------------------------------------------------------------------
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

Reply via email to