Solved

Implementing Automatic Software Updates

Posted on 2010-09-03
7
365 Views
Last Modified: 2012-06-22
Hello Everyone,

What is the best way to implement updating Software versions in VB .Net for software installed on client PCs rather than run across a network? I'm not aware of built-in mechanisms.

What I thought of was something along the following lines:

1. On load check for current version against version on Settings Table in SQL
2. If version number is less than that on Settings Table then run update program (to be written) and then end this program
3. Update program autoruns to delete existing software and install new version
4. Update program runs original calling software and then ends

It seems very messy but is it the only way?

Thanks in advance,

Seamie
0
Comment
Question by:Seamie_
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 33595976
There is an built-in feature that enables you to publish your application to a server (where your users can download it), and allow for easy updates.

ClickOnce - http://msdn.microsoft.com/en-us/library/t71a733d%28VS.80%29.aspx

Wayne
0
 

Author Comment

by:Seamie_
ID: 33596060
Yes, I've tried to use that but it only seems to work if the software is going to be run from that server. There are also problems with that process in that when the updating process is activated, it doesn't seem to save accessory files nor edit / create Registry Settings despite the access permissions being correct.
0
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 33596112
No, the software does not need to be run from the server. You can allow your users to download your application and run the app from their computer.

Any files you include with the deployment are also saved on the client. As for registry, I'm not sure I understand what you are referring to.
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:Seamie_
ID: 33596421
I have accessory files and registry settings in the Deployment project. When the software is built and the Setup.exe and project.msi files copied to a memory stick and installed on each PC from there, the update process is flawless.

If the project is published to a shared drive and run from there, the installation goes fine but the accessory files and the registry settings are not completed.
0
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 33596445
Have you tried getting the users to download the application and run it locally?
0
 

Author Comment

by:Seamie_
ID: 33596643
No, but the publishing creates a web-page which the user can 'click' on to being the updating process. In the environment this software is being distributed, copying and pasting a setup program to be run from, say, the desktop isn't an option. IT skill are fairly basic. Hence the desire to automate this process.
0
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 250 total points
ID: 33596736
If published correctly, the user need only click the button on the web page once. This will install the application on their computer and add shortcuts to "All Programs" and the desktop if desired. Then whenever the user starts the application, it will automatically check for updates and alert the user if one is available.

To enable this functionality, you simply need to ensure "The application is available offline as well (launchable from the Start Menu)" option is selected in the "Publish" tab of the project properties.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question