Fix Chrome Flash Issue - Delete Problematic PepperFlash in User folder - Windows
Log In or Register to download the BES file, and more.

0 Votes

Versioning - This is the latest version.

1TODO Fix Chrome Flash Issue - Delete PepperFlash in User folder - Windows3/17/2016 4:03:25 PM
2TODO Fix Chrome Flash Issue - Delete PepperFlash in User folder - Windows3/18/2016 10:48:32 AM
3Fix Chrome Flash Issue - Delete PepperFlash in User folder - Windows3/18/2016 11:00:52 AM
4Fix Chrome Flash Issue - Delete PepperFlash in User folder - Windows3/18/2016 6:00:42 PM
5Fix Chrome Flash Issue - Delete Problematic PepperFlash in User folder - Windows3/22/2016 1:13:42 PM

Description

This task will delete any versions of PepperFlash equal to or newer in the user profile than the one in ProgramFiles.

This is needed due to a bug when switching from per-user installed Chrome to Chrome 64-bit in which Chrome 64-bit will find a similar or newer version of PepperFlash in the user folder and prefer it over the version in its own folder even though it is the wrong architecture in this case.


Property Details

ID10489
StatusAlpha - Code that was just developed
TitleFix Chrome Flash Issue - Delete Problematic PepperFlash in User folder - Windows
DomainBESC
Download Size0
SourceInternal
Source IDjgstew
Source Release Date3/17/2016 12:00:00 AM
Is TaskTrue
Added by on 3/22/2016 1:13:42 PM
Last Modified by on 3/22/2016 1:13:42 PM
Counters 14536 Views / 52 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 381 fixlets and 2 analyses   * Results in a true/false
Show indented relevance
x64 of operating system
isWindows (Relevance 1172)
Used in 1152 fixlets and 538 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists files "pepflashplayer.dll" of folders "PepperFlash" whose(exists values whose(it as string = "x64") of keys "x-ppapi-arch" of jsons of files "manifest.json" of it) of folders of folders "Google\Chrome\Application" of folders whose(name of it starts with "Program Files") of folders "C:"
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists files "pepflashplayer.dll" of folders whose(exists values whose(it as string = "ia32") of keys "x-ppapi-arch" of jsons of files "manifest.json" of it) of folders "AppData\Local\Google\Chrome\User Data\PepperFlash" of folders of folders "C:\Users"
Used in 1 fixlet   * Results in a true/false
Show indented relevance
exists it whose( /* maximum x32 flash version in user folders */ item 0 of it >= /* max x64 flash version in program files */ item 1 of it) of ( ( maxima of versions of files "pepflashplayer.dll" of folders whose(exists values whose(it as string = "ia32") of keys "x-ppapi-arch" of jsons of files "manifest.json" of it) of folders "AppData\Local\Google\Chrome\User Data\PepperFlash" of folders of folders "C:\Users" ), ( maxima of versions of files "pepflashplayer.dll" of folders "PepperFlash" whose(exists values whose(it as string = "x64") of keys "x-ppapi-arch" of jsons of files "manifest.json" of it) of folders of folders "Google\Chrome\Application" of folders whose(name of it starts with "Program Files") of folders "C:" ) )

Actions

Action 1 (default)

Action Link Click here to deploy this action as an offer.
Script Type BigFix Action Script
// need to delete all occurances of a higher version pepperflash in the user folder

delete __createfile

// CREATEFILE
createfile until END_OF_FILE
{ concatenation "%0d%0a" of ("rmdir /S /Q %22"&it&"%22") of pathnames of items 1 of it whose( (version of files "pepflashplayer.dll" of items 1 of it) >= item 0 of it ) of ( ( maxima of versions of files "pepflashplayer.dll" of folders "PepperFlash" whose(exists values whose(it as string = "x64") of keys "x-ppapi-arch" of jsons of files "manifest.json" of it) of folders of folders "Google\Chrome\Application" of folders whose(name of it starts with "Program Files") of folders "C:" ), (folders whose(exists values whose(it as string = "ia32") of keys "x-ppapi-arch" of jsons of files "manifest.json" of it) of folders "AppData\Local\Google\Chrome\User Data\PepperFlash" of folders of folders "C:\Users") ) }
END_OF_FILE

delete delete_folders.bat
copy __createfile delete_folders.bat
waithidden cmd /c delete_folders.bat
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.

Action 2

Action Link Click here to deploy this action.
Script Type BigFix Action Script
// need to delete all occurances of a higher version pepperflash in the user folder

delete __createfile

// CREATEFILE
createfile until END_OF_FILE
{ concatenation "%0d%0a" of ("rmdir /S /Q %22"&it&"%22") of pathnames of items 1 of it whose( (version of files "pepflashplayer.dll" of items 1 of it) >= item 0 of it ) of ( ( maxima of versions of files "pepflashplayer.dll" of folders "PepperFlash" whose(exists values whose(it as string = "x64") of keys "x-ppapi-arch" of jsons of files "manifest.json" of it) of folders of folders "Google\Chrome\Application" of folders whose(name of it starts with "Program Files") of folders "C:" ), (folders whose(exists values whose(it as string = "ia32") of keys "x-ppapi-arch" of jsons of files "manifest.json" of it) of folders "AppData\Local\Google\Chrome\User Data\PepperFlash" of folders of folders "C:\Users") ) }
END_OF_FILE

delete delete_folders.bat
copy __createfile delete_folders.bat
waithidden cmd /c delete_folders.bat
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!
Cpepr -
Thanks very much - I really appreciate it!
jgstew -
I don't have any other fixlets for this issue.
jgstew -
see the analysis here: https://bigfix.me/analysis/details/2998499
jgstew -
There are definitely a few ways to solve this issue, and this relevance was written with a very particular circumstance in mind, so it might not be satisfied in all cases where it should be. I'll have to see what related content I have. I do have an analysis that checks a lot of things related to this.
Cpepr -
It looks like this can also be resolved by just deleting the contents of: C-Users-username-AppData-Local-Google-Chrome-User Data-PepperFlash Do you have a task that will do just that? The above does not seem to find any relevant computers in my environment. Thanks so much for all your contributions!