>From the WiX.chm Preprocessor documentation:

* If you want to use a literal $(, escape the dollar sign with a second one. 
For example, $$(

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason
Sent: Wednesday, March 14, 2007 4:12 PM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Registry Value / Preprocessor issue

How would I set a registry value to:

$(hClientWnd) $(Node) $(DBUserID) $(ConnectionString) $(Product)
PackageReport ChangeDoc [EMAIL PROTECTED]

If I use this:

$(hClientWnd) $(Node) $(DBUserID) $(ConnectionString) $(Product)
PackageReport ChangeDoc [EMAIL PROTECTED]

Candle returns this error whether I escape the $ characters or not:
error CNDL0149 : Ill-formed preprocessor variable 'hClientWnd'.
Variables must have a prefix (like 'var.', 'env.', or 'sys.') and a
name at least 1 character long.


If I escape the first parenthesis, like this:
$\(hClientWnd) $\(Node) $\(DBUserID) $\(ConnectionString) $\(Product)
PackageReport ChangeDoc [EMAIL PROTECTED]

It compiles fine, however, the string is inserted as the value exactly
as typed, which is incorrect.

So how can I set this registry value using WiX?

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