Silent install

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

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

x
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:
StefanKampCommented:
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
 wscript.quit
Else
 Set objExec = objShell.Exec(InstallCmd2)
 Do While objExec.Status = 0 
  WScript.Sleep 100 
 Loop
End If

wscript.quit

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
merowingerCommented:
Dim Installer
Set Installer = CreateObject("WindowsInstaller.Installer")
Installer.UILevel = 2
Installer.InstallProduct "example.msi"
Marc_CoolAuthor Commented:
All very helpful!!

Thanks!
Marc
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
Software

From novice to tech pro — start learning today.