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

script help

Status
Not open for further replies.

Briandr

MIS
Jul 11, 2003
177
US
Hi,

I need help with the script below in two ways. First, does the script appear to be coded correctly? Second, even though the MSI referenced is supposed to run silently it opens a command window. How can we suppress this so we see nothing when it executes?

Set Fso = CreateObject("Scripting.FileSystemObject")
Set wshshell=CreateObject("Wscript.Shell")
WshShell.CurrentDirectory="C:\Scripts\HRSD"
sTEST = "300 150 50 50 16 -1 -1"
sTitle = """Application Installation"""
WshShell.Run "c:\Scripts\HRSD\SplashText.exe" & stitle & """Please wait while the application is installed.""" & "400 170 50 50 18 -1 -1" & vbcr
WshShell.Run "msiexec.exe /i ""DXView.msi"" /qn",1,True
WshShell.Run "Taskkill /F /IM SplashText.exe",1,True

Thanks.






 
Thanks. Now I just need to confirm the AutoIT code is good.
 
Hi,

Just ran a quick test and the MSI is still opening up a command window.
 
I'm not sure. I would test without the splash screen, so only the msi will execute, like:
Code:
Set wshshell=CreateObject("Wscript.Shell")
WshShell.CurrentDirectory="C:\Scripts\HRSD"
WshShell.Run "msiexec.exe /i ""DXView.msi"" /qn",0,True
 
Hi,

I did test and the MSI still called a command window that popped up and then disappeared after 5-7 seconds. Not sure if there are any SMS or Altiris Admins on these boards, but I know that this particular MSI can be run silently when executed from one of these systems. Anyone else have any other ideas? Granted the MSI does not display any dialog just the command window that pops up.
 
Hey Briandr,

If you have an AutoIt script running after a VB Script I would suggest you do everything in AutoIt. Your original script can be easily converted to AutoIt.

It's a lot more stable (not as flakey as VBSsript). Just IMHO.


Thanks,
FOXUP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top