Jason, The error message is actually more helpful than it might seem at first. The names you have provided for the preprocessor to use are simply not valid.
If you are defining those items using "<? define .... ?>", or the -d prompt at the command line then you need to prefix them with "var." whenever they are referenced. If the items are environment variables, you must prefix them with "env.". What you *probably* want is the following: $(var.hClientWnd) $(var.Node) $(var.DBUserID) $(var.ConnectionString) $(var.Product) PackageReport ChangeDoc [EMAIL PROTECTED] Unfortunately without knowing how those items are defined, I cannot be sure of that. Regards, Richard -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Sent: Wednesday, March 14, 2007 7: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=DEVDE V _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users * C O N F I D E N T I A L I T Y N O T I C E * ----------------------------------------------------------- The content of this e-mail is intended solely for the use of the individual or entity to whom it is addressed. If you have received this communication in error, be aware that forwarding it, copying it, or in any way disclosing its content to any other person, is strictly prohibited. Peek Traffic Corporation is neither liable for the contents, nor for the proper, complete and timely transmission of (the information contained in) this communication. If you have received this communication in error, please notify the author by replying to this e-mail immediately and delete the material from any computer. ------------------------------------------------------------------------- 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