Solved

How to create a Client application automatic upgrade in vb.net??

Posted on 2006-11-14
7
148 Views
Last Modified: 2012-05-05
Hello experts, I have built a windows application using visual studio.net 2003.  Everytime I make a new version I need to install the new version on the clients computer, how do I create an automatic upgrade that checks for new versions and upgrades when the user logs in?  I was thinking the easiest way would be to  have a database table contain the version number and check that agaisnt its existing number, but how do i perform the upgrade automatically when the versions are different?
0
Comment
Question by:tentavarious
7 Comments
 
LVL 3

Expert Comment

by:snow_moon
ID: 17940758
Try ClickOnce Deployment of VB.Net 2005 Express, which is free.
Have a look at
http://msdn2.microsoft.com/en-us/library/142dbbz4.aspx
0
 

Author Comment

by:tentavarious
ID: 17940783
Well I am currently coding in 2003 and thats all I have available, I would like to learn how to do it in 2003.  I know you can do it in vb6 so I was thinking vb.net 2003 would be capable.
0
 

Author Comment

by:tentavarious
ID: 17940906
I found this web site that explains how you can load in a form, from a virtual directory using IIS.  This looks to be the correct way, but I would have to compile all my forms as dlls and load them independently.  Is there another way?  The author of the web page explains on how to load a form from a virtual directory on a menu click.  I am wondering if this is how automatic updates need to be done?  Or is there a different way?  

Here is the site i found:http://www.developer.com/lang/other/article.php/929071
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 13

Expert Comment

by:newyuppie
ID: 17940979
i think what you are looking for is called a Smart Client. Microsoft offers the Smart Client Factory which is supposed to help you out building applications that receive automatic updates from the Internet. i haven't tried this, and looks rather complicated, but you should check it out anyway maybe it gives you ideas.

http://www.microsoft.com/downloads/details.aspx?familyid=2B6A10F9-8410-4F13-AD53-05A202FBDB63&displaylang=en
http://www.gotdotnet.com/codegallery/codegallery.aspx?id=941d2228-3bb5-42fd-8004-c08595821170
0
 
LVL 11

Accepted Solution

by:
melmers earned 350 total points
ID: 17940999
Seperate your software into seperate projects/assemblys so you can update every pice of your software at your changes.
The negative aspect of this soloutin is that you have on exe file and some dll's but you can update them independetly.

Your main form will load the other assemblys and then you can view the other forms or run calculations with them.
the next stage can be that you implement a microkernel where you load your assembly dynamical and you can expand
your software by changing  a configuration file.
0
 

Author Comment

by:tentavarious
ID: 17941078
How do I handle special dll files, for example on one of my forms i added a reference to a new grid control that I found on-line.  The dll file is gridms.dll, how do I get the application to download this file as well?  Basically is there a way I can run a brand new install automatically? Or do i have to seperate assemblys like melmers said?
0
 
LVL 11

Expert Comment

by:melmers
ID: 17941679
you can create for the update little setups or zip files which you extract in your application path and then load the assembly dynamical
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

762 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now