Hi there,
I am trying to build an installer with Nant + WIX but having problem
with one of the resources files which has space in the file & folder
name.
The file is sitting on my mapped network drive: "z:\addon
software\Components\addon\v1.63.00\"
I've defined a variable "Addon_dir" from the project.build like below:
------------------------------------------------------------------------
--------------------------------
<project default="build" basedir=".">
<target name="installer.package" .....>
<exec program="${wix.bin}\candle.exe" verbose="true">
<arg line="-out obj\${config}\"/>
<arg line="-dBuildVersion=${build.version.dots}"/>
<arg line="-dVersionFolder=${version.folder}"/>
<arg line="-dAddon_dir=z:\addon
software\Components\addon\v1.63.00" />
<arg line="-dConfig=${config}"/>
<arg line="-v0"/>
<arg line="Installer.wxs"/>
<arg line="Files.wxs"/>
</exec>
........
</target>
.......
.......
</Project>
------------------------------------------------------------------------
--------------------------------
I got below error message every time when I run Nant build:
------------------------------------------------------------------------
-------------
[exec] Starting 'c:\Program Files\Windows Installer XML
v3\bin\candle.exe ( -out obj\Debug\ -dBuildVersion=1.63.0
-dVersionFolder=01.063. -dSFPricing_dir=z:\addon
software\Components\addon\v1.63.00 -dConfig=Debug -v0 Installer.wxs
Files.wxs)' in 'C:\dev\trunk\XXXX\XXXXX\Installer'
[exec] candle.exe : error CNDL0103 : The system cannot find the
file 'software\Components\addon\v1.63.00'' with type 'Source'.
BUILD FAILED
------------------------------------------------------------------------
-------------
It seems to me the space in the folder's name caused this problem as it
can be fixed by using short name while defining the variable, like
below:
<arg line="-dAddon_dir=z:\addons~1\Components\addon\v1.63.00" />
I am just wondering if there any solution I can avoid using short name
to define that variable as it may confuse other guys in the future.
Any advice would be much appreciated.
Thanks in advance.
Justin
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users