From: Big Daddy on
If you bring up the properties dialog in the IIS console, you can
disable the settings that cause an app domain to be recycled (either
periodically or because of idle inactivity):

http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8aeb52d0-a9dd-47f9-bec1-dc24e6da3bb1.mspx?mfr=true

http://stackoverflow.com/questions/838318/how-to-keep-asp-net-assemblies-in-appdomain-alive

However, I want to be able to change these setting in an installation
package for our software. Is there a way these can be changed
programmatically? Maybe a registry hack?

thanks in advance,
John