locked
ClickOnce WPF application RRS feed

  • Question

  • Hello!

    I am struggling to find a concise and decent example on the internet. My use case is this: I have WPF desktop application. I would like it if many users can use the application. When I make an update to the application, I would like any user who starts the application to be able to get the latest version along with the dlls or any other files. I am struggling to do this!

    Please advise,

    Cheers,

    Peter

    Friday, March 13, 2015 2:19 PM

Answers

  • It's essentially a publish option.

    You have a startup project in your solution.

    Right click.

    Choose properties.

    CHoose the Publish tab.

    Use the settings to point  to a server you are going to put it on.

    Click the Publish wizard button.

    https://msdn.microsoft.com/en-us/library/748fh114.aspx

    If you are publishing this for Joe Public then be aware they will get a uac warning asking them whether they really want to install this software from an unknown publisher.

    You need to buy a sha256 security cert and associate that with your application.

    That's under the signing tab.

    You get a pfx, install it on your publishing pc by double clicking and putting it in the private store.

    Then check the sign the clickonce manifests box and select it from store.


    Hope that helps.
    Recent Technet articles: Property List Editing; Dynamic XAML

    • Marked as answer by Carl Cai Thursday, April 30, 2015 5:21 AM
    Friday, March 13, 2015 2:56 PM
  • This page lists troubleshooting advice.

    https://msdn.microsoft.com/en-us/library/ms229001.aspx?f=255&MSPPError=-2147217396

    If you need support on clickonce deployment beyond pointing you to guides you are probably best advised to post here:

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=winformssetup

    Although it's winforms, the same principles apply and ( at least in theory ) you should get better support there.


    Hope that helps.
    Recent Technet articles: Property List Editing; Dynamic XAML
    Practical Polly


    • Edited by Andy ONeill Friday, March 13, 2015 3:47 PM
    • Marked as answer by Carl Cai Thursday, April 30, 2015 5:21 AM
    Friday, March 13, 2015 3:19 PM

All replies

  • It's essentially a publish option.

    You have a startup project in your solution.

    Right click.

    Choose properties.

    CHoose the Publish tab.

    Use the settings to point  to a server you are going to put it on.

    Click the Publish wizard button.

    https://msdn.microsoft.com/en-us/library/748fh114.aspx

    If you are publishing this for Joe Public then be aware they will get a uac warning asking them whether they really want to install this software from an unknown publisher.

    You need to buy a sha256 security cert and associate that with your application.

    That's under the signing tab.

    You get a pfx, install it on your publishing pc by double clicking and putting it in the private store.

    Then check the sign the clickonce manifests box and select it from store.


    Hope that helps.
    Recent Technet articles: Property List Editing; Dynamic XAML

    • Marked as answer by Carl Cai Thursday, April 30, 2015 5:21 AM
    Friday, March 13, 2015 2:56 PM
  • Thanks for your response. It all seems to go smoothly apart from at the very end. I specifiy a publish folder on my computer ... no problems. I specify a folder on the network that users should use. I then publish, copy the items from the publish folder to the network folder. Then when I try to run the setup.exe I get an error saying "Application download did not succeed. Check your network connection, or contact your system administrator or network service provider.".

    Please help!

    /Peter

    Friday, March 13, 2015 3:05 PM
  • This page lists troubleshooting advice.

    https://msdn.microsoft.com/en-us/library/ms229001.aspx?f=255&MSPPError=-2147217396

    If you need support on clickonce deployment beyond pointing you to guides you are probably best advised to post here:

    https://social.msdn.microsoft.com/Forums/en-US/home?forum=winformssetup

    Although it's winforms, the same principles apply and ( at least in theory ) you should get better support there.


    Hope that helps.
    Recent Technet articles: Property List Editing; Dynamic XAML
    Practical Polly


    • Edited by Andy ONeill Friday, March 13, 2015 3:47 PM
    • Marked as answer by Carl Cai Thursday, April 30, 2015 5:21 AM
    Friday, March 13, 2015 3:19 PM