I had to do something similar, but havent used any Custom Actions. Check this out, I worked on this approach http://blogs.technet.com/alexshev/archive/2008/02/15/from-msi-to-wix-part-7-customizing-installation-using-transforms.aspx -------------------------------------------------------------------------------------------------------
Message: 4 Date: Wed, 21 Jan 2009 16:54:08 -0800 From: Rob Mensching <rob.mensch...@microsoft.com> Subject: Re: [WiX-users] how to read appsettings values within wix To: General discussion for Windows Installer XML toolset. <wix-users@lists.sourceforge.net> Message-ID: < de33023b477fe44eaa71983f5279f6ce50fc5b1...@na-exmsg-c102.redmond.corp.microsoft.com > Content-Type: text/plain; charset="us-ascii" You'd need to build a CustomAction. A "Class 2" CustomAction: http://robmensching.com/blog/posts/2007/8/10/Zataoca-Classes-of-Custom-Actions. I personally always recommend building CustomActions with the fewest dependencies, so C/C++ statically linked to C runtime. That's what all the WiX CustomActions do. An extension would just provide "syntactic sugar" for authoring the data for the CustomAction. It isn't necessary to get the job done. -----Original Message----- From: Mordecai Zibkoff [mailto:mzibk...@netik.com] Sent: Wednesday, January 21, 2009 12:15 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] how to read appsettings values within wix Rob, Thanks For your prompt response. The code that you mention having to write (read data, set properties...) what form does it take? (I can write it in c#) but what should I be building? An wix extension? Is there any tutorials on the subject? Thanks, Mordecai -----Original Message----- From: Rob Mensching [mailto:rob.mensch...@microsoft.com] Sent: Wednesday, January 21, 2009 1:30 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] how to read appsettings values within wix Doesn't exist today (unfortunately)... probably not too hard since you don't have to modify machine state. Just read data, set properties... let XmlConfig do all the heavy lifting (aka: install/uninstall/rollback/etc.). -----Original Message----- From: Mordecai Zibkoff [mailto:mzibk...@netik.com] Sent: Wednesday, January 21, 2009 10:28 To: wix-users@lists.sourceforge.net Subject: [WiX-users] how to read appsettings values within wix Hi, I have a requirement to build an installer the does the following: 1 - the installer should read an appsettings value from a pre existing web.config on the target machine. 2 - This value should then be used to edit a web.config file before writing it, as a new file to the target directory (different than the directory where the first web.config resides) I can get step 2 done easily with the Util:XmlFile, but I don't have a way to extract the value, as described in step 1. I can imagine an XmlSearch or an AppSettingsSearch tag would be a nice way to solve this. Is there such an animal? If not, how difficult would it be to write one? Thanks, Mordecai ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users