示例:
AppDomainSetup setup = new AppDomainSetup();
setup.CachePath = AppDomain.CurrentDomain.BaseDirectory;
setup.ShadowCopyFiles = "true";
setup.ApplicationName = "AutoUpdate";
AppDomain newDomain = AppDomain.CreateDomain("AutoUpdate", null, setup);
newDomain.ExecuteAssembly("WinApp.exe");