Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Installing programs with vbscript

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,1376
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Installing programs with vbscript
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Installing programs with vbscript - 9/20/2004 6:49:23 AM   
  abuthemagician

 

Posts: 4
Score: 0
Joined: 9/20/2004
From:
Status: offline
I am setting up programs with vbscript, and i have already got my sendkeys setup. One of the programs the i am installing this way takes up to 5 mins on some pc's for the setup to begin. Until that time, the app name is install or setup or something, but when it does continue on, the name becomes "Symforms Install". Is there something i can use like:

If Exist wshshell.AppName "SymForm Setup"
then WshShell.AppActivate "SymForm Setup"
WScript.Sleep 3000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 3000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 3000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 3000
WshShell.SendKeys "{ENTER}"
WScript.Sleep 10000
WshShell.SendKeys "{ENTER}"
else loop


or the correct way?
 
 
Post #: 1
 
 Re: Installing programs with vbscript - 9/20/2004 7:45:21 AM   
  jbird

 

Posts: 33
Score: 0
Joined: 6/25/2004
From: USA
Status: offline
The following code should provide a pause until the setup begins.
'*****************************************************************
Do Until Success = True
Success = objShell.AppActivate ("SymForm Setup")
WScript.Sleep 250
Loop
'*****************************************************************

Hope this helps,
Jay

(in reply to abuthemagician)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Installing programs with vbscript Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts