When installing an ASP.NET app, you need to make sure .NET is registered with IIS. The easy way to do this is to run "aspnet_regiis -i" when you first install IIS and .NET.
However, when your install program runs you have no idea if on that system it has been run. However, running this impacts all existing ASP.NET apps and sets the default .NET for all new ones. So if we run this we can screw up all the ASP.NET apps already on a system.
The answer is to do the following (in this case for an ASP.NET app named MyApp):
aspnet_regiis -ir
aspnet_regiis -s "W3SVC/1/ROOT/MyApp"
aspnet_regiis -ga "NETWORK SERVICE"
Note, do -ga ASPNET instead if IIS 5 (WinXP/W2K).
this way you do not impact any existing apps that are installed.
Do you find this useful? If so please check out Windward Reports.