Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Force users to update there app

Status
Not open for further replies.

dvannoy

MIS
May 4, 2001
2,765
US
once users are using your app and you package a newer version for them to upgrade to. how can you force them to update there current version to the newer version???

I would like a message box to pop up saying "Need to Download Current Version"...

is this possible

Thanks for you input dvannoy@onyxes.com
 
How would you know when to pop up the message? Peter Meachem
peter@accuflight.com
 
im not sure...i have seen this before on other apps..there has got to be away to store the version number in a table or something and have it match with the app version...I was jusy trying to see if anyone out there would have some ideas on how to do this. dvannoy@onyxes.com
 
You could do that on a lan ok. Is the programme for anyone anywhere? They would have to do something to find out if a new version was available wouldn't they. Something like Norton Liveupdate.
I've never had any luck forcing users to do anything at all. Very difficult to get them to do anything by asking nicely even. Peter Meachem
peter@accuflight.com
 
Yes, this is a shared program on a LAN. I have seen other apps tell the user to update and then the app closes..

Thanks for your input dvannoy@onyxes.com
 
Suppose you had a table with the programme version in. Then when the user starts up, you could check the user's version with the latest one in the table and then pop up a message if they were different. Peter Meachem
peter@accuflight.com
 
The "table" being tossed around should be a registry ksy /value. On each startup, of the App, check the iser machine registry key value aginst the server key value. If different either the msg box, or just do it in auto. If you use auto, be kind and tell them what's happening.

MichaelRed
m.red@att.net

There is never time to do it right but there is always time to do it over
 
I use the FileDateTime-Function on application startup to check the date created/modified property of the .exe file currently in use. I compare that to date and time of the .exe file that sits on the server and, if that one is newer, give the user a message to upgrade (you can even check with the Dir-Function first if there currently is a version on the server). That way, you are not dependent on version numbers.

By the way, I use a little supplemental VB Application that is called if the user decides to upgrade (you could automatically call it without giving the user a choice). It handles the shut-down of the currently running app, copies the new files, then re-starts the app before closing itself.

Let me know if you need some code to get you started.
 
some code would be great...what id did was setup and table with the app version it in...they on my login form once the user clicks login..the first place it looks is the tblVersion...if the version in the table does not match the app.major and app.minor etc...then it will exit sub and display a message for the user to upgrade the app...and then close the app..i would like to inprove this function if possible if you would post some code to get me started..also how do you fire off a update for the app...say setup.exe from code???

Thanks for all the help here..


dvannoy@onyxes.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top