Check for Updates

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want to have my program automatically check for a new version when it is
run. My app is in VB.NET (VS 2003). Updates are posted on my website and I
would like the app to go to the site and check for updates automatically. I
can't seem to find any information on how to do this.

If anyone could point me in the right direction I would be grateful!
 
Hello, H8ComputersSomeDays!

Basically you need a text file on the server which contains the version
information (download it as text file, not as binary). When your
application starts, it should download that file and check if the
version number in that file is higher.
However, you should check if the user is an administrator. If (s)he is
not, then you might show the message, but should not download the file
to install it since a normal user account does not have that privilege.

Best Regards,

HKSHK
 
HKSHK said:
Hello, H8ComputersSomeDays!

Basically you need a text file on the server which contains the version
information (download it as text file, not as binary). When your
application starts, it should download that file and check if the version
number in that file is higher.
However, you should check if the user is an administrator. If (s)he is
not, then you might show the message, but should not download the file to
install it since a normal user account does not have that privilege.

Best Regards,

HKSHK

Another good option would be to use web services for determining which
version is most current and compare that to the version you currently have
installed. Once that comparison is done, you can download the appropriate
patch or update or zip file from the site.

HTH,
Mythran
 
Hello H8ComputersSomeDays,

If you simply load the forms from the web server that should do the trick.
This way, if the web server has newer bits, they will be downloaded and
used.. if not, the cache will be used. If the server is unavailable then
the cache will also be used.

I can't remember off the top of my head where this load occures.. I think
it's a method off the Assembly class. Like, Assembly.LoadForm..? Dunno..
look it up.

In 05 you can use click-once deployment to acheive the same thing.

-Boo
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Windows 11 Windows 11 update 5
Nexus 7 Update 3
Check for computer in AD group 0
Please Help! Virus? Avast, Firefox, Windows update quit working 4
ftp in vb.net 3
Windows 10 Disabling Automatic Updates 5
Not receiving forum emails 14
Windows 10 Windows 10 Update on a USB 2

Back
Top