I hate appcmd.exe. That being said, CAQuietExec64 is usually a much better choice. For example:
<SetProperty Id="SetVdir.WCFService" Value=""[System64Folder]inetsrv\appcmd.exe" set config "[WEBSITE_NAME]/Product/Contract/WCFService/" -section:access -sslFlags:None -commit:apphost" Sequence="execute" Before="SetVdir.WCFService" /> <CustomAction Id="SetVdir.WCFService" BinaryKey="WixCA" DllEntry="CAQuietExec64" Execute="commit" Return="ignore" /> <UI> <ProgressText Action="SetVdir.WCFService"> <![CDATA[Disable SSL for VDir [WEBSITE_NAME]/Product/Contract/WCFService/ in IIS.]]> </ProgressText> </UI> <!-- Schedule VDir Configuration --> <InstallExecuteSequence> <Custom Action="SetVdir.WCFService" Before="InstallFinalize"> <![CDATA[NOT SKIPCONFIGUREIIS AND NOT REMOVE ~= "All"]]> </Custom> </InstallExecuteSequence> I have the commit bit instead of the deferred bit set for a reason. There's no good way to rollback out of appcmd.exe calls. So I execute them dead last. Violates the ability to rollback changes to the system. But this would be a defect of the previous example too. -- 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: Chad Petersen [mailto:chad.peter...@harlandfs.com] Sent: Friday, November 22, 2013 3:12 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Enable/Disable IIS AppPool's LogEventOnRecycle using WiX For things IIS related not directly authored in WiX code I've found APPCMD.EXE to be a useful substitute in a custom action for those sorts of things. These are older and may be supported natively now, but some examples. <CustomAction Id="ConfigureHiddenSegments" Execute="deferred" Impersonate="no" Return="ignore" Directory="TARGETDIR" ExeCommand="[SystemFolder]inetsrv\appcmd set config "[SITE_ID]/Container" -section:system.webServer/security/requestFiltering /-hiddenSegments.[\[]segment='bin'[\]]" /> <CustomAction Id="ConfigureISAPICGI" Execute="deferred" Impersonate="no" Return="check" Directory="TARGETDIR" ExeCommand="[SystemFolder]inetsrv\appcmd set config /section:isapiCgiRestriction /[\[]path='[WindowsFolder]Microsoft.NET\Framework\v4.0.30319\aspnet_isapi.dll'[\]].allowed:True" /> -----Original Message----- From: Tony [mailto:yellowjacketl...@gmail.com] Sent: Friday, November 22, 2013 1:05 PM To: WiX Users Subject: [WiX-users] Enable/Disable IIS AppPool's LogEventOnRecycle using WiX Is it possible to set an AppPool's LogEventOnRecycle bitmask using WiX? I don't see it, but maybe missed it. -- Tony ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&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. ------------------------------------------------------------------------------ Shape the Mobile Experience: Free Subscription Software experts and developers: Be at the forefront of tech innovation. Intel(R) Software Adrenaline delivers strategic insight and game-changing conversations that shape the rapidly evolving mobile landscape. Sign up now. http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users