After InstallFinalize means you can't rollback if the action fails. That
seems very wrong for a custom action that modifies machine state. That
probably doesn't help but might add something else to think about. <smile/>

On Thu, Sep 23, 2010 at 7:15 AM, Nicky Fox <nicky....@computershare.ie>wrote:

> Hi there,
>
> Anyone have any ideas on this one:
>
> I run appcmd from a custom Action in wix as follows:
> <CustomAction Id="IIS7AppPoolTEST" Execute="immediate" Impersonate="yes"
> Return="check" Directory="ProgramFilesFolder"
> ExeCommand="[SystemFolder]inetsrv\appcmd add apppool /name:TEST
> /managedRuntimeVersion:v2.0" />
>
> Called As Follows:
> <Custom Action="IIS7AppPoolTEST" After="InstallFinalize">NOT
> Installed</Custom>
>
> IIS7 / Server 2008 setup. Everything was working fine but now any action
> which calls appcmd just falls over with:
> A program required for this install to complete could not be run.
> Contact your support personnel or package vendor. Action:
> IIS7AppPoolTEST, location: C:\Program Files\, command:
> C:\Windows\system32\inetsrv\appcmd add apppool /name:TEST
> /managedRuntimeVersion:v2.0
>
> If i run the command manually in cmd window works perfect. I have tried
> everything, I am a local admin for the PC and i can't figure out why it
> was working and why its not working now. There were updates applied to
> the PC but thats the only thing i can see had changed. Really
> struggling.
>
> Have all my commands written with appcmd so too late now to change to
> the xml manipulation.
>
> Any help greatly appreciated
>
>
>
> Nicky Fox
>
> Developer
>
> Computershare Governance Services
>
>
>
>
> Computershare Governance Services Limited is registered in Ireland Company
> No. 97374. Registered Office: Heron House, Corrig Road, Sandyford, Dublin
> 18.
>
> Please visit the following website to read the Computershare legal notice:
> http://www.computershare.com/disclaimer/emea
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to