CScript.exe quick flash upon silent install
I have a VBS that is working great for me to install something for our users, pardon the network shares, this is in testing:
Set WshShell = WScript.CreateObject( "WScript.Shell" )
WshShell.Run "msiexec /i \\bhamat01\Software\ProxyPro\Proxy-8-0-2-2019\Host.msi /qb- TRANSFORMS=\\bhamat01\Software\ProxyPro\Proxy-8-0-2-
2019\StandardHost32.MST /norestart"
Set WshShell = Nothing
When I do "Run As" in k1000, on the client machine the cscript.exe cmd window pops up for a milisecond and then everything else works great. Is there a way to make this run totally silent without that quit cmd window flash?
Here is what my k1000 looks like:
Verify
On Success
- Launch “\\bhamat01\2010\alexkace\ProxyProHost\cscript.exe” with params “ProxyHost.vbs”.
Answers (3)
wscript worked instead of cscript, thanks much
try /b proxyhost.vbs for params
Comments:
-
unforutnately that did not work. - areiner 11 years ago
-
try using wscript instead of cscript
http://www.itninja.com/question/running-cmd-in-silent - SMal.tmcc 11 years ago -
the other thing is tell the msi to run silent in the vbscript by adding a ,0 after the call
WshShell.Run "msiexec /i \\bhamat01\Software\ProxyPro\Proxy-8-0-2-2019\Host.msi /qb- TRANSFORMS=\\bhamat01\Software\ProxyPro\Proxy-8-0-2-
2019\StandardHost32.MST /norestart",0 - SMal.tmcc 11 years ago-
http://www.devguru.com/technologies/wsh/quickref/wshshell_run.html - SMal.tmcc 11 years ago
-
wscript worked instead of cscript, thanks much - areiner 11 years ago