Update flash Activex and/or plugin to .213

//Update flash Activex and/or plugin to .213
Update flash Activex and/or plugin to .213 2016-04-20T18:39:27+00:00

The Toolkit Forums Deployment Scripts Update flash Activex and/or plugin to .213

  • Author
    Posts
  • Alan
    Participant
    Post count: 14
    #1287 |

    If anyone wants to clean it up by all means 🙂

    <code>#Flash Active X Vars
    		$testflashX = Test-path &quot;HKLM:\Software\Classes\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}&quot;
    		$flashxregkey1 = &#039;HKLM:\Software\Macromedia\FlashPlayer\SafeVersions&#039;
    		[string]$flashxregkey2 = &#039;21.0&#039;
    
    		#test active X install
    		$activex = (Get-ItemProperty $flashxregkey1).$flashxregkey2
    		If ($testflashX -eq $true)
    		{ if ($activex -le 213)
    			{ 
    			Execute-MSI -action install -path &quot;$dirfiles\install_flash_player_21_active_x.msi&quot; -Parameters &quot;/qn&quot;
                If ($psArchitecture -eq &quot;x64&quot;) { copy-file -Path &quot;$dirfiles\mms.cfg&quot; -destination &quot;$envWinDir\SysWow64\Macromed\Flash&quot; }
                ElseIf ($psArchitecture -eq &quot;x86&quot;) { copy-file -Path &quot;$dirfiles\mms.cfg&quot; -destination &quot;$envWinDir\System32\Macromed\Flash&quot;}
    			}
    		}
            write-log -message &quot;Key found for active X found = $testflashX&quot;
            write-log -message &quot;activex = $activex&quot;
    
    		#flash Plugin Vars
    		$testflashplug = Test-path &quot;HKLM:\Software\Macromedia\FlashPlayerPlugin&quot;
    		$flashplug1 = &quot;HKLM:\Software\Macromedia\FlashPlayerPlugin&quot;
    		$plugin = (Get-ItemProperty $flashplug1).version
            
    
    		#test plugin version
    		If ($testflashplug -eq $true)
    			{If($plugin -ne &quot;21.0.0.213&quot;)
    				{
    					Execute-MSI -action install -path &quot;$dirfiles\install_flash_player_21_plugin.msi&quot; -Parameters &quot;/qn&quot;
                        If ($psArchitecture -eq &quot;x64&quot;) { copy-file -Path &quot;$dirfiles\mms.cfg&quot; -destination &quot;$envWinDir\SysWow64\Macromed\Flash&quot; }
                        ElseIf ($psArchitecture -eq &quot;x86&quot;) { copy-file -Path &quot;$dirfiles\mms.cfg&quot; -destination &quot;$envWinDir\System32\Macromed\Flash&quot;}
    				}
    			}
            Write-log -message &quot;test flash plug in path was $testflashplug&quot;
            write-log -message &quot;Plugin version detected = $plugin&quot;</code>

You must be logged in to reply to this topic.