hi all,

i have a vbs to install IE8 silently. the command works silently if tried on the command line, but not in my vbs. it starts but not silently.

objShell.Run Chr(34) & Current_Dir & "IE8MUI-x86-enu.exe" & Chr(34) & " /Quiet /norestart", RUN_HIDDEN, True

a msgbox with Chr(34) & Current_Dir & "IE8MUI-x86-enu.exe" & Chr(34) & " /Quiet /norestart" confirms that the syntax is correct.

the installation starts but i'm getting prompted in windows to confirm the installation.

why is it silently working manually but not in my vbs?

please help!
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
May be some syntax/logic error. Try this. Already checked on office package:

Set objShell = CreateObject("WScript.Shell")
strEXE = "C:\Temp\office2007sp2-kb953195-fullfile-en-us.exe"
strParam = "/quiet /norestart"
strInst = strEXE & " " & strParam
Result = objShell.Run(strInst, 0, True)
If (Result <> 0) And (Result <> 3010) Then
msgbox "ERROR: Installation of service pack 2 failed - Errorcode: " & Result
Quit(Result)
End If
Answered 03/14/2011 by: itolutions
Orange Senior Belt

Please log in to comment
Answer this question or Comment on this question for clarity