Disable AutoUpdater control

Hi,

I'm integrating the AutoUpdater control into our .NET 2.0 C# framework so that we don't have to redo integration for each application. Everything works ok as far as updating goes. But some of our applications should not have auto updating capabilities and therefore the functionality of the AutoUpdater control needs to be disabled programmatically in those specific cases. To remove it visually is a no brainer but to disable auto updating behavior is proving more difficult.

So far I've tried to set UpdateType = wyDay.Controls.UpdateType.DoNothing in the ctor but the control still tries to auto update itself (or wyUpdate.exe ).I also tried to remove it from the form's control collection and detroying it but that crashes the control and the application.I also set the BeforeChecking event to cancel all updates but that does not prevent updates of wyUpdate.exe .

I may be missing something obvious but what would be the best way to prevent automatic update behavior of both wyUpdate.exe and of my application?

Thanks.

So far I've tried to set UpdateType = wyDay.Controls.UpdateType.DoNothing in the ctor but the control still tries to auto update itself (or wyUpdate.exe ).

What version of the AutomaticUpdater are you using? This should work with the latest version (2.6.16.0).

I ended up wrapping the AutoUpdater control into my own class and manually instanciating the control at the time that's appropriate for the application instead of using VS designer-generated code. It works better in our apps that way. It also gives greater control, allows to set whatever properties (like a different GUID) and also supports the more complex localization scenario needed by our apps. Also if I remove wyupdate.exe from the folder, it definitively prevents auto update, of course... There must be an internal exception but the application does not see it and can live with that.