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

Is there another way to do this....?

Status
Not open for further replies.

n00blar

MIS
Aug 19, 2003
38
US
I'm installing several applications from a VB script that I wrote, but I'm using WshShell.Run to run these applications.
Is there another way to call these applications, instead of opening a shell instance?

Thanks.
 
For Office applications for example:
Set objXLS = CreateObject("Excel.Application")
Set oIE = CreateObject("InternetExplorer.Application")

for custom applications using WshShell.exec or WshShell.Run

These are the methods I know...

_____________________________________
Feed a man a fish and feed him for a day.
Teach a man to fish and feed him for a lifetime...
 
Cool, thanks.

I was wondering if there was a way to do this with WMI calls.
 
n00blar,

I've already done this, but it's quite complex. I can't post the whole script that does this, as it would be a violation of our security here, but the .vbs script uses forms and check boxes to check off which application that you want installed. We house all of our applications on servers, including virtual CD programs. The only way to do these "CheckBoxes" "ComboBoxes" "TextBoxes" "RadioButtions" within .VBS is to use wshLWForm.ocx. You can obtain these files that I found a few years back that I have posted on a webpage here:


I did not write these .ocx's but I have used them for years to create some AWESOME .vbs scripts that previously were UNHEARD of to do! If you would like to really see a sample of the application installer .vbs that I've written, I'll have to strip out all of the code as to what our server names are, and other security crap.

-SWarrior
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top