I just want to remind the existence of this nice little tool, which is be very useful for any deployment or redeployment of your WebParts and EP-sites. Basically it is a simple .Net command-line executable which calls the same method as the AxSetup does during the installation of Ax 2009:
EPReturnCodes IEPDeployment.ReDeployEnterprisePortal(bool updateWebSites, bool resetIIS)
Which is a method of the EPDeployment class in the Microsoft.Dynamics.Framework.Deployment.Portal assembly.
You can use Lutz Roeder’s reflector if you want to know what is done during the execution.
So, just don’t forget that this tool exists…