Geeks With Blogs


Add to Google

Tim Hibbard CEO for EnGraph software

Sometimes you will want your clients to install your applications from a cd. Or they will not always have access to the internet. You can still use a ClickOnce application for this, and take advantage of the ClickOnce application updating features when they are connected to the internet.

1) Create your application in Visual Studio 2005 and enable ClickOnce security settings (My Project -> Security).
2) On the Publish tab of My Project, enter a folder on your computer as the Publishing location.
3) Still on the Publish tab, click "Updates". A new dialog box will open and under "Update Location", enter the web folder that the application will eventually be published to ( Click "OK".
4) On the Publish tab, click "Options". Check "For CD installations, automatically start..." Click "OK".
5) Publish your application.
6) Burn the files in the folder set in step 2.
7) Using that burnt cd, install your application.
8) Back in Visual Studio, change the Publishing location that we set in step 2, to the Update location that we set in step 3.
9) Make a change to your application and publish it.
10) Go to your start menu, and launch your application. You will see it check for updates, download the update and your changes will be reflected. Note that it may take a couple minutes before the application recognizes that updates are available on the web server.

Of course you can set the when the application checks for updates or use the My.Application.Deployment class to handle your own updates.

Posted on Wednesday, February 22, 2006 10:47 AM .NET | Back to top

Comments on this post: Installing a ClickOnce application from a cd

# re: Installing a ClickOnce application from a cd
Requesting Gravatar...
Unfortunately there is a problem with any user settings or files marked as Data, they don't get migrated to the updated version as they are supposed to. If you did the original install from the web instead of the CD they do.
Left by Mike Caito on Mar 23, 2007 6:14 PM

Your comment:
 (will show your gravatar)

Copyright © Tim Hibbard | Powered by: