Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. how to use ClickOnce to manually update my application

how to use ClickOnce to manually update my application

Scheduled Pinned Locked Moved Windows Forms
csharpsysadminannouncementhelptutorial
1 Posts 1 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    pashitech
    wrote on last edited by
    #1

    Hi all i wanna update my windows applicarion of C#.Net2.0 since VS2005 give Clickonce i've adopted dat to use this, but i am not with the correct outcome, please help me how to update my application. i have taken a button and whenever user clicks update it should check for the latest version and should be updated , whenever i run the below code its asking me to check is ur application is running under click once, my code, if (ApplicationDeployment.IsNetworkDeployed) { // Hold a reference to the current deployment ApplicationDeployment currentDeploy = ApplicationDeployment.CurrentDeployment; // Check to see if an update is available on the server if (currentDeploy.CheckForUpdate()) { // One is available, go get it currentDeploy.Update(); // Make sure you save application state here DialogResult dr = MessageBox.Show( "Update downloaded, restart application?", "Application Update", MessageBoxButtons.YesNo); if (dr == DialogResult.Yes) { Application.Restart(); } } } if (ApplicationDeployment.IsNetworkDeployed) if i din't use this ApplicationDeployment.IsNetworkDeployed, its giving INVALIDDEPLOYMENTEXCEPTION--Application not installed. Please help me how to overcome this thing.. Thnx in advance, prashanth

    prashanth, s/w Engineer, Syfnosys.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups