Click here to Skip to main content
15,882,464 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have two issues going on with my clickonce application. This is a winForm, C# application.

I have the setup file on the network. When someone clicks to install, it just hangs until I move it to their desktop and click to install again. At that point a second installation screen will pop up, and the program instantly installs.

Generating updates creates a similar situation. The screen will pop up asking if I want to install the update. When I click yes, it installs to 100% but then just hangs there until I click to open the program again. At that point it opens with the update included.


I'm hoping someone has run across a similar situation and can let me know what they did to resolve it.

It's almost as though it's missing some step to close the installation, or update, and then open the program.

What I have tried:

As this is technically working, and there is no code persay to what I'm doing, I'm not including any "What have you tried" items, because I have not tried anything differently. I have followed the clickonce implementation procedure, using the proper UNC to the network folder. Is there something I am missing?
Posted
Updated 5-Apr-19 2:26am

1 solution

I have written an article on this topic. Hope it helps: Silent ClickOnce Installer for Winform & WPF in C# & VB[^]
 
Share this answer
 
Comments
Smeezy 5-Apr-19 10:15am    
I appreciate your comment, and the work you've done, but I have a question. One would have to assume that the application in question is going to be used by more than one person at a time, but your instructions state that it should not be used by more than one user at a time. This would work fine if I wanted to make changes on my own program, and then update my own installation, but that seems kind of inefficient, or am I seeing this wrong? I'm not a pro, so I could be.
Graeme_Grant 6-Apr-19 0:11am    
I think that you misunderstood. Only one instance running on one machine at a time. aka: single instance.

FWIW, we have over 30,000 users in over 120 countries running our app with the very installer linked in the article above. It's very battle tested. ;)
BillWoodruff 6-Apr-19 18:08pm    
+5
Graeme_Grant 6-Apr-19 18:18pm    
Thanks Bill :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900