I use AppCmd for IIS Configuration not supported by the Wix IIS Extension. But, I don't build the path to appcmd.exe the way you do. I use a DirectorySearch for it, set a property to the absolute path to appcmd.exe, and I pass that to CAQuietExec. Works great for me.
-- 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: shanmukha sainath addepalli [mailto:sainath.addepa...@gmail.com] Sent: Thursday, June 07, 2012 12:33 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] CAQuietExec fails to execute inetsrv\appcmd Hello all, I am executing appcmd command to change the Application pool to Integrated mode using CAQuietExec, it fails with error "Command failed to execute". The command is working fine when I use ExeCommand instead of CAQuiteExec. But ExeCommand displays a command prompt while executing the command. I have followed this article http://wix.sourceforge.net/manual-wix3/qtexec.htmto execute the command. Here is my code... <CustomAction Id="ConfigureIntegratedAppPoolsCmd_SetProperty" Property="ConfigureIntegratedAppPoolsCmd" Value=""[SystemFolder]inetsrv\appcmd set apppool /apppool.name:"[APP_POOL_NAME].POOL" /managedPipelineMode:Integrated"" Execute="immediate"/> <CustomAction Id="ConfigureIntegratedAppPoolsCmd" BinaryKey="WixCA" DllEntry="CAQuietExec" Execute ="deferred" Return="check" Impersonate="no"/> I have scheduled ConfigureIntegratedAppPoolsCmd_SetProperty custom action after CostInitialize and ConfigureIntegratedAppPoolsCmd before InstallFinalize. Here is the installer log generated. MSI (s) (94:DC) [09:58:38:078]: Executing op: ActionStart(Name=ConfigureIntegratedAppPoolsCmd,,) Action 09:58:38: ConfigureIntegratedAppPoolsCmd. MSI (s) (94:DC) [09:58:38:078]: Executing op: CustomActionSchedule(Action=ConfigureIntegratedAppPoolsCmd,ActionType=1025,Source=BinaryData,Target=CAQuietExec,CustomActionData="C:\Windows\system32\inetsrv\appcmd set apppool /apppool.name:"App Pool.POOL" /managedPipelineMode:Integrated") MSI (s) (94:B0) [09:58:38:125]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI759E.tmp, Entrypoint: CAQuietExec CAQuietExec: Error 0x8007007b: Command failed to execute. CAQuietExec: Error 0x8007007b: CAQuietExec Failed Action ended 09:58:38: InstallFinalize. Return value 3. Thanks in Advance. Sainath ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ 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. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users