index > ClickOnce and Setup & Deployment Projects > How to access auto updater in code?

How to access auto updater in code?

How do you hook the auto updater within an application? I wanted to add a "Check for updates" to the tool bar in my application and leverage the click once auto updater.

Chris Condrey

I'm assuming your application is ClickOnce deployed to begin with. If so you can use methods available in the System.Deployment.Application namespace to check for updates and download updates programatically from within your app.

For more info see:
http://msdn2.microsoft.com/en-us/library/ms136930(en-US,VS.80).aspx

Regards,
Sameer




This posting is provided "AS IS" with no warranties, and confers no rights.
Sameer Bhangar

Something like this right?

System.Deployment.Application.ApplicationDeployment ad = System.Deployment.Application.ApplicationDeployment.CurrentDeployment;

ad.CheckForUpdate();

or

ad.CheckForUpdateAsync();


Thanks!

Chris Condrey
reply 3

You can use google to search for other answers

 

More Articles

• code signing with .exe and class library
• problem using reg free com
• how to deploy the windows project with certain elements ?
• How to - Include Resource Files in Deployed Project - Plz Help
• What is the best way to pop-up custom dialog in Setup project?
• prerequisites error
• Include all directorys and files in a location in a MSI ?
• Web Service
• Challenging ClickOnce problem... writing to the data store
• Custom Action does not run
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• XMl
• Getting key events in IE hosted UserCont
• The cabinet file '_0f190ABC5FE06CE3A28DC
• Fail to do setup in WindowsXP sp1 when r
• problem using reg free com
• Modifying .application dynamically?
• Setup project: install Windows Service w
• Installer not requesting to close runnin
• Setup Project Bug?
• Auto Deployment of Web application
• Help! How can I make it check for updat
• How to add a shortcut on the user's desk
• URLDownloadToCacheFile error when trying
• Problem with Authenticode
• Updating data files

Hot Articles

• What is the correct way to do impersonat
• Product and package manifest
• Error 2203 when installing MSI packages
• Disable Signing - Need help
• what functionality should be included in
• Handler don't work
• how to reopen minimized IEexplorer
• saving a connection string in app.config
• PUBLISH MY PROGRAM
• localization on clickOnce
• Extreme long Path with ClickOnce..
• how can i make the embedded control resi
• Localized Deployment, localized .NET ins
• vb self installers
• How can i set JIT Debugging in VB Expres

Recommend Articles

• Can I change how Publish.html looks like?
• No Setup Projects in VB 2005 Express?
• Multiple ClickOnce Applications
• Question about ClickOnce
• Can't run ClickOnce
• Composite UI Blocks & ClickOnce depl
• Looking for Tutorial
• Shortcut to use the 'file type' icon
• .Net 2.0 Install Fails
• Remove .dll custom action
• Handler don't work
• No Touch Deployment?
• "Package/Product.xml files"?
• Updater App Blocks client requirements
• During installation how to show dialoge