Use XMLConfig (http://wix.sourceforge.net/manual-wix3/util_xsd_xmlconfig.htm) or XMLFile (http://wix.sourceforge.net/manual-wix3/util_xsd_xmlfile.htm) to modify the XML file during installation. You can pass the installation directory as a Property in the Value attribute of your XMLConfig or XMLFile element. I use XMLConfig to do the same thing in a plug-in/add-on installer & it works pretty well.
Palbinder Sandher Software Deployment & IT Administrator T: +44 (0) 141 945 8500 F: +44 (0) 141 945 8501 http://www.iesve.com **Design, Simulate + Innovate with the <Virtual Environment>** Integrated Environmental Solutions Limited. Registered in Scotland No. SC151456 Registered Office - Helix Building, West Of Scotland Science Park, Glasgow G20 0SP Email Disclaimer -----Original Message----- From: michaelrepucci [mailto:mich...@repucci.org] Sent: 05 August 2010 23:49 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Can you change the text of an installed file based on installation parameters? I've got an XML file that will be installed along with my app, which refers to my app's installed executable. (Sort of like a shortcut, except that this XML is used by a 3rd-party app to invoke my app as an add-on. My app can also run as a standalone app.) I'd like to give the user who installs my app the choice of installation directory, but if I do so, then I somehow need to pass that information into this XML file, so that it refers to the correct location. I imagine some kind of preprocessor or parser that could replace a predefined token in a text file to be installed on the user's system. Does such a thing exist? Or could this somehow be accomplished with a custom action? Any tips would be much appreciated. Thanks! :) Michael -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Can-you-ch ange-the-text-of-an-installed-file-based-on-installation-parameters-tp53 78659p5378659.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------ ------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users