public static ActionResult AddToMachineConfig(Session session) { session.Log("Begin AddToMachineConfig"); try { InstallLib.addEntry(session.CustomActionData["ASSEMBLYNAME"]); } catch (Exception e) { session.Log("ERROR in AddToMachineConfig {0}", e.ToString()); return(ActionResult.Failure); } return(ActionResult.Success); }
public static ActionResult RemoveFromMachineConfig(Session session) { session.Log("Begin RemoveFromMachineConfig"); try { InstallLib.removeEntry(); } catch (Exception e) { session.Log("ERROR in RemoveFromMachineConfig {0}", e.ToString()); return(ActionResult.Failure); } return(ActionResult.Success); }
override public void Uninstall(IDictionary savedState) { base.Uninstall(savedState); InstallLib.removeEntry(); }
override public void Install(IDictionary savedState) { base.Install(savedState); InstallLib.addEntry(typeof(FSharpCodeProvider).AssemblyQualifiedName); }