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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Running an Exe file?

Status
Not open for further replies.

Troy28M

Programmer
Jan 24, 2005
24
0
0
US
I am building a script that runs some preliminary checks for me before firing an installation package (.exe file) located on a web server (i.e. I need to inform the user once the installation has completed, that everything was installed correctly and capture within a database the user information.

My problem is that when I use the wshShell.run, the script will not wait for completion because it must open the web page and then fire the exe.

Is there a way to do this?
 
Please show the line of code where you use .Run

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
So the exe lives on a web page?

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
the executable is sitting in a web server folder called "restricteddownload". The only way to access through a separate vbscript, would be to link to the folder and run the exe file.

If you have any suggestions, I'm open for suggestions. But I would like to know if my original inquiry can be done.

Thanks again.
 
The oShell.Run method needs the file to be executed to reside on a local drive or UNC path. You need to find a method to download the file locally from your URL, then execute it with the .Run method.

PSC

Governments and corporations need people like you and me. We are samurai. The keyboard cowboys. And all those other people out there who have no idea what's going on are the cattle. Mooo! --Mr. The Plague, from the movie "Hackers
 
I was wondering if there was something similar to 'msiexec' for exe's?
 
MsiExec simply takes an MSI database and does what the database says. I don't know what you mean by something similar for exes.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
With msiexec I can throw a switch on that runs it quietly, without much if any user interaction. I can run it from a webpage, similar to my explanation above, with my vbscript waiting for the completion before continuation, wihtout copying the file to the client first.

It is just a cleaner way to install packages.
 
So make an MSI for your package.

[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top