torque0

Hi everyone. I suspect this question has been answered already - but I'm having a hard time pinning it down. I have built a BHO in C# Express Edition (2008) and was able to successfully publish using ClickOnce. Further down the process, I realized that I could register the dll using RegisterAssembly within the application after checking for first run:

Publish p = new Publish();

p.RegisterAssembly("bho.dll");

p.GacInstall("bho.dll");

However, I don't have anyway of unregistering the assembly on uninstall. Besides upgrading to Standard or Professional and using a deployment project, is there anyway to call a function on uninstall to unregister the dll

Thanks for your help.

Respectfully,

Tim



Re: ClickOnce and Setup & Deployment Projects Unregistering assembly when using ClickOnce in Express Edition c#

torque0

Perhaps a better way of phrasing the question is, can I setup install custom actions using Express Edition





Re: ClickOnce and Setup & Deployment Projects Unregistering assembly when using ClickOnce in Express Edition c#

Rong-Chun Zhang - MSFT

Hi Tim,

Base on my knowledge, ClickOnce does not support custom action. If you need to do some custom actions during installation/uninstall, MSI is a better choice than ClickOnce. The link below shows you how to create custom action.
http://msdn2.microsoft.com/en-us/library/d9k65z2d(VS.80).aspx

Best regards.
Rong-Chun Zhang