public static void UninstallServce() { using (ProjectInstaller installer = new ProjectInstaller()) { IDictionary dictionary = new Hashtable(); installer.Uninstall(dictionary); } }
public static void InstallServce() { using (Installer installer = new ProjectInstaller()) { Hashtable dictionary = new Hashtable(); installer.Install(dictionary); } }