General discussion

Locked

Modifying a deployed VB6 project

By ebartholom ·
We are going to deploy a VB6 project to about 100 users, soon. I understand how to package and deploy a project using the wizard. If a change is made to the executable, I am aware that the new executable can be copied onto these user's client PCs.Is there a utility/code/technique to have each client check the date of an executable located on the NETWORK and if the date is more recent than that of the current executable,copy that new executable to the client's hard drive? We're trying to decide how to manage new report requests, so we won't have to redeploy executables manually.

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Modifying a deployed VB6 project

by tmaclennan In reply to Modifying a deployed VB6 ...

We had a similar problem here. One answer is to write a generic VB6 program that does these things:
1) accepts a variable giving the name of the program setup file
2) reads that setup file
3) checks a list of files in the setup file to compare the dates of network files against the files on the user drive--if any on the network are more current, copy the more current version over the client copy (included in the list is the setup file!)
4) check for the existence of a flag file on the network--if the flag file exists, pop up a box that the app is closed for maintenance and exit the program (this is very handy if you are locating data files on the network and want to do maintenance periodically, though you also have to write your programs to check for the existence of the flag file every few minutes and force close the app after running down a 10 minute clock)
5) launch the executable from the hard drive

We have such an app here, but I don't have the right to distribute it. However, that is the basic flow chart.

Collapse -

Modifying a deployed VB6 project

by ebartholom In reply to Modifying a deployed VB6 ...

Poster rated this answer

Collapse -

Modifying a deployed VB6 project

by Kevin Brown In reply to Modifying a deployed VB6 ...

If you copying the the new exe to the users pc after deployment, you could use a logon script or a batch file that runs nightly,or whenever. Have the batch compare the dates and if the network copy is newer copy it to the PC.

Also look at robocopy, it has switch that only copies newer files.

Collapse -

Modifying a deployed VB6 project

by ebartholom In reply to Modifying a deployed VB6 ...

Poster rated this answer

Collapse -

Modifying a deployed VB6 project

by ebartholom In reply to Modifying a deployed VB6 ...

Thanks for your response to my posting on TechRepublic. I appreciate the "flowchart" you described for checking the version of a file on the network and then copying it to a client if it is newer than the client's version of the file.

I have since discovered the filesystemobject.copyfile method, so I have one piece of the puzzle.

What I am struggling with is finding an object.method (if one exists in vb6) to return either the version or the date created of the file on the network. If I can get that, I believe I can code a solution.

Someone told me to use the app.major or app.minor object.methods. But, these are only available while the .exe is running and that is not what I want to do.

Do you know of a method to check the version or file creation date of an .exe that is dormant(not running)?

Thanks for any suggestions.

Collapse -

Modifying a deployed VB6 project

by ebartholom In reply to Modifying a deployed VB6 ...

Well, I think I have an answer to my most recent question (see previous comment).

The filesystemobject has properties including DateLastModified, DateCreated, Size, Attributes.

I can get the DateCreated of the .exe file on the network, then use the copyfile method to copy it to the client if it is a file with a more recent date.

Collapse -

Modifying a deployed VB6 project

by James_Randy In reply to Modifying a deployed VB6 ...

Those are some good answers. Why not accept them and close the question?

Collapse -

Modifying a deployed VB6 project

by ebartholom In reply to Modifying a deployed VB6 ...

Poster rated this answer

Collapse -

Modifying a deployed VB6 project

by ebartholom In reply to Modifying a deployed VB6 ...

This question was closed by the author

Back to Web Development Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums