Forum Discussion
Dmitry_Nikolaev
Staff
14 years ago
Hi Ivan,
You can use the code below to run your msi file via the command line in your script:
Sub InstallMSIviaCommandLine()
Set WshShell = CreateObject("WScript.Shell") //Creates the WScript.Shell object
WshShell.Run "msiexec.exe /i <YourInstallerPackage.msi>" //Installs the msi package via the command line
End Sub
For more information, please refer to the About Windows Installer - Command Line Options MSDN article.
Besides that, you can use the WMI script to install your msi file. To learn how to do this, please see the How to install a Windows Installer package from a Windows Management Instrumentation (WMI) script article.
I hope this helps.