Hi, thanks for the answer.
Your response prompted me to put a couple of printing statements into
my method. I realized that what's happens is that the method is called
twice (which explains it).
Why it is called twice is not a mystery. Here's the excerpt from Main:
Assembly asm = Assembly.GetExecutingAssembly();
RegistrationServices reg = new RegistrationServices();
if (unregister) {
System.Console.Error.WriteLine("About to call
\"UnregisterAssemply\"");
reg.UnregisterAssembly(asm);
System.Console.Error.WriteLine("About to call \"Unregister\"");
CleanVS.UnregisterServer("");
System.Console.Error.WriteLine("Done calling \"Unregister\"");
}
and I learn that CleanVS.UnregisterServer is called automatically from
reg.UnregisterAssembly(asm) and then by me manually? Voila.
But is this defined behavior? Should I just comment out
CleanVS.UnregisterServer("")? Once again, this is not my code, but
something I found at
http://www.informit.com/articles/art...4&redir=1&rl=1
Thanks for responding and thank you very much in advance,
Aaron Fude