


$Record = $View.GetType().InvokeMember(“Fetch”, “InvokeMethod”, $null, $View, $null) $View.GetType().InvokeMember(“Execute”, “InvokeMethod”, $null, $View, $null) $View = $MSIDatabase.GetType().InvokeMember(“OpenView”, “InvokeMethod”, $null, $MSIDatabase, ($Query)) $Query = “SELECT Value FROM Property WHERE Property = ‘$($Property)'” $MSIDatabase = $WindowsInstaller.GetType().InvokeMember(“OpenDatabase”, “InvokeMethod”, $null, $WindowsInstaller, 0))

$WindowsInstaller = New-Object -ComObject WindowsInstaller.Installer To deploy Flash you will need an account with Adobe and to sign up for their distribution license ( ).Install the MSI contained within the package.Remove earlier registered Flash versions from the Regsitry.Legacy Adobe Flash PPAPI Example – Listed in WMI Query WMI to obtain a list of registered versions.Run the MSIEXEC command silently with the uninstall string.Search the registry for Uninstall strings for versions earlier than the detected MSI version from both the “HKLM:SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall” and “HKLM:SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” locations.The script perform the following actions: I decided to write a PowerShell script to cater for upgrading Flash.
