Packaging / Extracting Windows 10 Native Flash Player

To make a very long story short: Someone #@%@ed up and there are several Windows 10 assets in my environment that require Flash OCX repair (IT WASN'T ME!)

Simply re-registering the OCX modules doesn't entirely resolve the issue, even after completely removing ownership from the built-in application itself (several keys return ACCESS DENIED when regsvr32 tries to access them).

I've decided that uninstall / reinstall Windows 10 Native Flash Player (ActiveX) on the deployed Windows 10 assets. Using a DISM.EXE method similar to the one found at this blog, I've scripted the uninstall routine. However, I'm looking for a "light-weight" method of reinstalling it. Any suggestions? I'd prefer not to have to mount an entire image to each machine (I'm looking at SMS / SCUP deployment for this solution). Is there a way to, say, isolate the Windows 10 Flash Player application on an image file, extract it (say to a .WIM file), and then point DISM to it?

Thank you!


Solution 1:

  1. Download sxsextract to C:\Extractor\
  2. Mount the Windows 10 Install.wim to C:\Extractor\Mount

    Dism /Mount-Image /ImageFile:C:\Extractor\ISO\install.wim /index:1 /MountDir:C:\Extractor\Mount

  3. Use ProcessHacker to open a cmd.exe as TrustedInstaller

    enter image description here

  4. Inside the cmd.exe, run cd \Extractor ENTER to go to C:\Extractor\

  5. run the 2 commands to extract the Flash Data into a CAB:

    cscript.exe sxsextract.vbs /Debug /VICIOUSHACKS /Image:C:\Extractor\Mount\Windows C:\Extractor\Mount\Windows\servicing\Packages\Adobe-Flash-For-Windows-Package~31bf3856ad364e35~amd64~~10.0.14393.0.mum Adobe-Flash-For-Windows-Package~31bf3856ad364e35~amd64~~10.0.14393.0.cab

    cscript.exe sxsextract.vbs /Debug /VICIOUSHACKS /Image:C:\Extractor\Mount\Windows C:\Extractor\Mount\Windows\servicing\Packages\Adobe-Flash-For-Windows-onecoreuap-Package~31bf3856ad364e35~amd64~~10.0.14393.0.mum Adobe-Flash-For-Windows-onecoreuap-Package~31bf3856ad364e35~amd64~~10.0.14393.0.cab

  6. Unmount the install.wim

    Dism /Unmount-Image /MountDir:C:\Extractor\Mount /discard

  7. Now use DISM /Online /Cleanup-Image /RestoreHealth /source:<PathToCABfiles> on the damaged systems to restore the Flash files.

This restores the 2 Flash Packages. This is for 64Bit Build 14393, the Windows 10 Anniversary update. Change the names according to the Build you use.