public override void Uninstall(IDictionary savedState) { foreach (var sample in Samples) { try { IIS.RemoveApplication(DefaultWebSite, ApplicationDir(sample)); } catch (Exception ex) { ShowError("Error while removing '{0}' IIS applications from '{1}'\n\n{2}", sample, DefaultWebSite, ex.Message); } } try { IIS.RemoveApplicationPool(PhalangerAppPool); } catch (Exception ex) { ShowError("Error while removing '{0}' IIS application pool\n\n{1}", PhalangerAppPool, ex.Message); } }