Using managed APIs you can easilly do this, within custom installer class, here goes the code: Add reference: Microsoft.Web.Administration.dll , found at IIS directory %windir%\system32\inetsrv\ . ServerManager mgr = new ServerManager (); Microsoft.Web.Administration. Application applicationElement;...