views:

76

answers:

2

Hi all ~

This is getting a bit frustrating now! Heaps of awesome Karma for whoever can help me sort this out. :-)

My cool little desktop C# app gets sent to users manually, zipped. They install it and all is well. One big missing piece to finish it off though is getting auto-updates to work.

PART I: Publish Wizard Steps

1) "Where do you want to publish the application?" -> Local drive on my PC. OK

2) "How will the users install the app?" -> From a CD-ROM or DVD-ROM (manual delivery). OK

3) "Where will the application check for updates?" -> Question! I have a website and can setup whatever I need to in terms of FTP accounts or whatever, but I'm not sure what to put in here. Also Annonymous FTP vs login-FTP? I'd really appreciate it if I could get some concrete suggestions for how to set this up. Examples rather than theory per favore. Thx!

PART II: Files to copy to the update folder Once the update location is sorted out, what files need to be copied there? The contents of the 'publish' folder?

PART III: Signing I must admit to not really knowing what 'signing the manifest' is all about. Is it necessary to do anything more than ticking "Sign the ClickOnce manifests"?

PART IV: Anything else? If there are any more parts to the puzzle, an everyday-language explanation would be great.

Thanks in advance for any help!

+1  A: 

At step 2 select "From a Web site" and specify the URL where you'll upload the files (from the location specified at step 1) to. The files and folders you'll need to upload are:

  • [application name].application
  • setup.exe
  • publish.htm
  • Application Files (folder)

The html file isn't essential but contains all the links your users will need to click.

The next question will be "Will the application be available offline?"

Select "Yes".

Users can then download (or run directly) the setup.exe on your website. The application will then check periodically for updates.

To set the frequency select Properties on the project name then Publish. On this page you'll see an Updates... option. Select this and then fill out the choices you want from the list:

Tick that the application should check for updates.

Choose before or after the application starts. The answer to this will depend on how large the update is, whether your application is started and left open etc - all questions specific to your application which I can't answer.

Then how often. If your application is changing a lot then make this more frequent, if it's hardly changing at all make it less often.

ChrisF
A: 

If you're using ClickOnce and have a web site, why are you distributing via manual delivery? ClickOnce is made to be published & distributed via web site.

Anyways, here's an MSDN article on how to deploy using any configuration.

James Jones
Hence this post. I'm trying to figure out how to setup updates, the more important of the two, but I get connection errors and am not sure if I'm providing the correct URL/FTP setup. That's what I need help with.
Gregg Cleland
Why aren't you *deploying* via the web? (Why manual delivery?) If you deploy via web, automatic updates are set up automatically.
James Jones