silentupdate

HI -

This is a question which has already been answered but I can't seem to peice it together. I have a winform application which runs as a tray icon. It's likely people will just leave it there running for a period of days.

I want to be able to auto update the files within the project, silently. I've seen various posts on the subject, but none of them give me the complete source code and detailed instructions. Shoud I be using the backend class as specified in the service update? Or the auto update controll?

Any help would be appreciated.

Phil.

Hey Phil,

If your app is installed in a user-level folder (e.g. %appdata%, the Desktop, etc.) or if your app is installed in a system-level directory (e.g. c:\Program Files\ZYX) and all your customers are running as elevated administrator users then you can do a completely "silent" update. That is wyUpdate still shows the progress as updates are being installed, but the customer does not need to interact with it.

If that's the case then you can use either the AutomaticUpdater (AutomaticUpdater tutorial for Windows Forms) or wyUpdate (see: http://wyday.com/wybuild/help/silent-checking.php).

If your app is installed to a system-level folder or you want a "completely silent" update then you'll have to use a Windows Service. See AutomaticUpdater tutorial for Windows Services and Console Apps or How to Silently update a Windows Service.

If you want a pre-written example Windows Service using the AutomaticUpdaterBackend then download the AutomaticUpdater source code. There's an example service inside the project.

Does this help?

A feature request in this regard:

Have a simple switch in the component, that does not display any UI update progress unless there is an error.

I know we can rebuild the source code to our liking, but we're happy with the wyUpdate official builds, and this is a common request.

Hey Andrew,

Use the "KeepHidden" property along with the Visible property. Then on one of the error events show the AutomaticUpdater.

Does this make sense?

Thanks for the tip! That's exactly what we'll do.