Since you are using a batch script, why not simply put your <?define ...> in a
separate file and then append the generated .wxs file to it to produce a final
.wxs file that is included in the installer. You can use the copy command to
append files by separating the source files with a '+' sign. For example:
copy define_file.wxs + generated_file.wxs final_file.wxs
Dan
-----Original Message-----
From: James Green [mailto:[email protected]]
Sent: January-16-12 12:08 PM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Cab File
Hey Dan,
Thanks for that, I just read the section on that just after posting to the
list. It works fine if I put it in the generated .wxs file but not if I put it
in the non-generated Product.wxs file so anytime someone reruns the batch file
this key bit of info will get obliterated ...
How can I get around this in a repeatable fashion so that the generated
fragment is always valid?
Cheers,
James
-----Original Message-----
From: Daniel Madill [mailto:[email protected]]
Sent: 16 January 2012 16:59
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Cab File
Hi James,
Preprocessor variables and WixVariable's are not the same thing. A preprocessor
variable is defined using <?define name="value"?>. For example:
<?define RFileSource="..\..\lib\R\R-2.14.1"?>
Preprocessor variables are handled much like the C preprocessor handles #define
macros.
Dan
LEGAL NOTICE
This message is intended for the use of the named recipient(s) only and may
contain confidential and / or privileged information. If you are not the
intended recipient, please contact the sender and delete this message. Any
unauthorised use of the information contained in this message is prohibited.
Mango Business Solutions Limited is registered in England under No. 4560258
with its registered office at Suite 3, Middlesex House, Rutherford Close,
Stevenage, Herts, SG1 2EF, UK.
PLEASE CONSIDER THE ENVIRONMENT BEFORE PRINTING THIS EMAIL
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users