Click here to Skip to main content
15,897,226 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello everyone I want to putting the part for updating my program
if my program ready to update show message box for attention the user and it said

Your program ready for update
after click the ok
this program updating

how can working it?

in the photo:


how can create such as this?
Posted
Comments
BillWoodruff 27-Jan-15 3:12am    
This is potentially a very complex and advanced programming problem, but, take at look at the Microsoft ClickOnce technology.
[no name] 27-Jan-15 3:22am    
thanks dear
I wait for some answer
[no name] 27-Jan-15 3:39am    
I want this update using by link
if this link is activated
message show and say :

you can updating your program

how can using this idea in my program ??
jchoponis 27-Jan-15 22:14pm    
BillWoodruff is correct - clickOnce deployment is generally created to solve this more complex issues...but is has limits you should read about.

Here's the general overview documentation (sorry there's no 30-second way to tell you how to get everything in your project to work with clickOnce, but this should help):
https://msdn.microsoft.com/en-us/library/142dbbz4%28v=vs.90%29.aspx

generally, pushing updates to installed applications(like a winforms or wpf app) requires admin rights and deployment of dependencies (i.e. other libraries you are calling in your app for controls, reporting, data access, etc.). while this is not always the case, it often is.

clickOnce allows you to deploy to users via a URL and the program can be set to check a URL for updates (and to update itself). this deployment type installs the program using the security context of whomever is initiating the clickOnce deployment - generally a regular user. clickOnce gets around some of these normal non-administrative permission limitations by installing to the user's profile area - so the app gets installed per-user - NOT per computer. Note that registry access may be limited as well, etc. i.e. you can't do administrative things from a clickOnce app running as a normal user - it is not magical and will not grant additional rights to the user automatically.

the link i sent you has a comparison table that explains some of what i'm mentioning here.

finally, if you are set on some kind of updating without clickOnce note that it will require a web service/web server to deliver & host updates...some kind of windows service run with admin rights on the target computer that can check for updates and install them with administrative rights (if that's required) and some notification system built into the app to know when to check and when to prompt (i've done this with database tables that get checked on demand or at startup).
[no name] 28-Jan-15 6:03am    
thanks dear I will try for creation this

thanks my dear for helping me

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