Bugs item #1266391, was opened at 2005-08-22 17:33
Message generated for change (Settings changed) made by barnson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1266391&group_id=105970

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: candle
Group: v3.0
>Status: Closed
Resolution: Fixed
Priority: 5
Private: No
Submitted By: Bill Arnette (billarnette)
Assigned to: Derek (derekc)
Summary: preprocessor macros and values with spaces

Initial Comment:
- my project resides in C:\Visual Studio Projects\Fred.
- I have an environment variable called WORKDIR that
specifies the project root directory.
- Under the root directory is the 'bin' directory for
all the binary output from the projects
- In a WiX file, I specify a subdirectory like so:

<?define binDir=$(env.WORKDIR)\bin?>

'binDir' expands to 'C:\VisualStudio Projects\Fred\bin'
in the File/@src attributes in the wxs file.  



----------------------------------------------------------------------

Comment By: Derek (derekc)
Date: 2006-02-27 19:50

Message:
Logged In: YES 
user_id=518766

WiX 3.0 will now properly handle define statements that look
like the following:
<?define variableName = "variable value"?>

The major difference is that the equal sign (=) is now
required (whereas previously it was not).

Just as before:
The quotes are optional.
You can also use single quotes (') instead of double-quotes
(") - this might be new.
The spaces around the variable value will be trimmed unless
they are protected inside a quoted value (note that this is
different from the bug where spaces were erroneously removed
from inside the variable value).

----------------------------------------------------------------------

Comment By: Derek (derekc)
Date: 2005-08-24 03:52

Message:
Logged In: YES 
user_id=518766

This should be fixed for 3.0 and the docs should be updated
for 2.0 to indicate that quotes are needed for values
containing spaces.

----------------------------------------------------------------------

Comment By: Bill Arnette (billarnette)
Date: 2005-08-23 15:42

Message:
Logged In: YES 
user_id=1097659

That works.  I thought I tried that before.  I guess not.

At any rate, the documentation indicates that quotes around
the value are not required.  Perhaps this should be a
documentation bug.

----------------------------------------------------------------------

Comment By: anfortas (anfortas)
Date: 2005-08-22 22:39

Message:
Logged In: YES 
user_id=1203922

How about this:
<?define binDir="$(env.WORKDIR)\bin"?>

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1266391&group_id=105970

-------------------------------------------------------------------------
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-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to