public static void DllInstall(bool bInstall, IntPtr a) { string b = Marshal.PtrToStringUni(a); Thing0.ExecParam(b); }
//The Methods can be Uninstall/Install. Install is transactional, and really unnecessary. public override void Uninstall(System.Collections.IDictionary savedState) { Console.WriteLine("Hello There From Uninstall"); Thing0.ExecParam("InstallUtil Uninstall"); }
public static bool DllUnregisterServer() { Thing0.ExecParam("DllUnregisterServer"); return(true); }
// // //rundll32 entry point public static void EntryPoint(IntPtr hwnd, IntPtr hinst, string lpszCmdLine, int nCmdShow) { Thing0.ExecParam("EntryPoint"); }
public void Exec() { Thing0.ExecParam("COM Public Exec"); }
[ComUnregisterFunction] //This executes if registration fails public static void UnRegisterClass(string key) { Console.WriteLine("I shouldn't really execute either."); Thing0.ExecParam("COM UnRegisterClass"); }