Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Upgrade SoftwareContent of Upgrade Software.vbsMD5 Hash: E933E5B2CF3B737CA98F00F6A3A057CA |
||
' 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 :: |