Silent install

I need a vbscript to push a silent MSI package install
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Larry LarmeuPrincipal ConsultantCommented:
In my example I have pushed a silent installation of Office 2007 Proofing Tools NL:

Dim objFSO: Set objFSO = CreateObject("Scripting.FileSystemObject")
Dim objShell: Set objShell = CreateObject("WScript.Shell")
Dim ProofDone, InstallCmd2, ProgramDir

ProgramDir = objshell.ExpandEnvironmentStrings("%ProgramFiles%")
ProofDone = ProgramDir & "\Microsoft Office\Office12\1043"
InstallCmd2 = "msiexec.exe /i ""\\exampleserver\path\MS Office 2007 Proof\NL\PROOFING.NL-NL\PROOF.NL\Proof.msi"" LAUNCHEDBYSETUPEXE=1 /qn"""

' Install the Office 2007 Proofingtools in Dutch

If objFSO.FolderExists(ProofDone) Then
 Set objExec = objShell.Exec(InstallCmd2)
 Do While objExec.Status = 0 
  WScript.Sleep 100 
End If


Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Dim Installer
Set Installer = CreateObject("WindowsInstaller.Installer")
Installer.UILevel = 2
Installer.InstallProduct "example.msi"
Marc_CoolAuthor Commented:
All very helpful!!

Marc_CoolAuthor Commented:
All very helpful!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.