![]() Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Upgrade Software
|
||
' Description: Upgrades a hypothetical software program installed using Windows Installer.
strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colSoftware = objWMIService.ExecQuery _ ("Select * from Win32__Product Where Name = 'Personnel Database'") For Each objSoftware in colSoftware errReturn = objSoftware.Upgrade("c:\scripts\database2.msi") Next | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |