Steven, Thanks I was using that but decided to try a different approach. Just a quick question as appcmd is not available on iis 6 do you use another method or do you not support it?
Thanks Natalie -----Original Message----- From: Steven Ogilvie [mailto:steven.ogil...@titus.com] Sent: 28 August 2013 14:56 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Setting a value XmlConfig I am using a custom action for that (I set mine to false) however after our product was released I saw this post: http://stackoverflow.com/questions/11687870/wix-installer-always-changes-app pool-to-enable-32bit-app below is my custom action just in case... [CustomAction] public static ActionResult Enable32BitApplicationPool(Session session) { try { if (session == null) { throw new ArgumentNullException("session"); } var tempString = GetSessionProperty(session, "CustomActionData", false); var parts = tempString.Split(new[] { '|' }); var applicationPool = parts[0]; const string Quote = "\""; var cmdLineParameters = "set apppool /apppool.name:" + Quote + applicationPool + Quote + " /enable32BitAppOnWin64:false"; var cmdLineExe = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "inetsrv\\appcmd.exe"); // Prepare the process to run var startInfo = new ProcessStartInfo { UseShellExecute = true, Arguments = cmdLineParameters, FileName = cmdLineExe, WindowStyle = ProcessWindowStyle.Hidden, CreateNoWindow = true }; // Run the external process & wait for it to finish using (Process proc = Process.Start(startInfo)) { proc.WaitForExit(); } } catch (Exception ex) { WriteErrorLogInstall(session, "Enable32BitApplicationPool failed: ", ex, true); } return ActionResult.Success; } -----Original Message----- From: Natalie Carr [mailto:natalie.c...@measuresoft.com] Sent: August-28-13 9:41 AM To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Setting a value XmlConfig Hi John, I haven't done anything regarding permissions, although I am writing to it on a different component and that seems to be working. I am not trying to create a AppPool as I am using the default, I am just trying to change the enable32BitAppOnWin64 from false to true. Thanks -----Original Message----- From: John Cooper [mailto:jocoo...@jackhenry.com] Sent: 28 August 2013 14:19 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Setting a value XmlConfig 1) I assume you have previously obtained permissions to the IIS [7-8] applicationHost.config file. Not just anybody can write to it. 2) It looks like you're creating an AppPool the hard way. One of the things the IIS Extension does really well is create AppPools. I would use the IIS Extension unless there's a compelling reason not to. 3) here's how I use util:XmlConfig: <util:XmlConfig Id="DeleteErrorSinkSinks" Action="delete" ElementPath="/logging/categories/error" File="[#FileEnterpriseLoggingConfig]" Node="element" On="install" Sequence="10" VerifyPath="/logging/categories/error/sinks" /> <util:XmlConfig Id="WriteErrorSink" Action="create" ElementPath="/logging/categories/error" File="[#FileEnterpriseLoggingConfig]" Node="document" On="install" Sequence="11" Value="[ERROR_INNERTEXT]" /> -- John Merryweather Cooper Build & Install Engineer -- ESA Jack Henry & Associates, Inc.(r) Shawnee Mission, KS 66227 Office: 913-341-3434 x791011 jocoo...@jackhenry.com www.jackhenry.com -----Original Message----- From: Natalie Carr [mailto:natalie.c...@measuresoft.com] Sent: Wednesday, August 28, 2013 5:16 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Setting a value XmlConfig Hi I am trying to change a value setting in a config file using the following: <Component Id="Enable32BitAppPoolComponent" Guid="*" Directory="INSTALLLOCATION"> <CreateFolder/> <util:XmlConfig Id="Enable32BitAppPool" Node="value" ElementPath="//configuration/system.applicationHost/applicationPools/add[\[] @name='DefaultAppPool'[\]]/@enable32BitAppOnWin64" File="[inetsrv]\config\applicationHost.config" Value="true" On="install"/> </Component> This code does not change the value in the applicationHost.config file. I tried adding the action="create" but I then got the error during the setup that it could not open the XML file. What am I doing wrong? ---------------------------------------------------------------------------- -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ---------------------------------------------------------------------------- -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ---------------------------------------------------------------------------- -- Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more! Discover the easy way to master current and previous Microsoft technologies and advance your career. Get an incredible 1,500+ hours of step-by-step tutorial videos with LearnDevNow. Subscribe today and save! http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users