We help IT Professionals succeed at work.

Script to download and execute a VB exe

558 Views
Last Modified: 2010-04-06
I have been tasked with designing and writing a simple patching program/script which will 1) download an executable from a website, 2) shut down all instances of a particular program, 3) overwrite the program's exe file with the downloaded version, and then 4) restart the program.  I am assuming that the "shut down all instances" part requires an exe, unless there is some scripting language which can do so and will work on all versions of Windows 98+ and NT 4.0+.

So, unless all of the above can be done by a script, I will write a VB application that will do the above.  What I want to know is if there is some sort of script I can use so that the user can click on a link and not have to do anything else.  I.e. it is most preferable for the user to not even click "open" to download the exe -- the user would just click a link, and the program would download and run.  It is imperative that the script require no "extra" components installed on the system, where "extra" denotes anything other than the standard VB runtimes (the patch is for a VB program, so the runtimes will already be installed) and what all versions of Windows later than '98 have installed by default.
Comment
Watch Question

Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Top Expert 2013
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
So basically the user would have to click "ok" in some form or another regardless of how this is done, so simply having him/her click on a link to an executable and telling him/her to choose "open" is the simplest solution?

Commented:
basically, yes.

Author

Commented:
Keeping this open for a day; if nobody says it's possible (and shows how), I'll split the points between you two.

Commented:
why not performing like MS, and let download a ZIP with the exe and a readme indicating to shut down the application, request the application path and so one.

Author

Commented:
More work for the user -- remember, the goal is to make the process as simple as possible for the user.  The application is relatively stateless, so it is quite reasonable to simply shut all instances down.

The application is already written (it took ~3 hours).

Commented:
so download a program (.exe) which run a script on the user machine to perform all the task.but the exe sould be launch manually by the customer.
did you agree that microsoft patchs our os without your approval?

Author

Commented:
JNSTAUB: try reading my last post (I said the application was already written to do the patching...)  I'm sorry if I were not clear enough.
Top Expert 2013

Commented:
Sorry we could not come up witha real solution for you.  Thanks for the A.  :^)

Cd&

Author

Commented:
Well, you said it wasn't possible and gave a good reason, which made the solution obvious.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.