Fix Chrome Flash Issue - Delete Problematic PepperFlash in User folder - Windows
0 Votes |
Versioning - This is the latest version.
1 | TODO Fix Chrome Flash Issue - Delete PepperFlash in User folder - Windows | 3/17/2016 4:03:25 PM |
2 | TODO Fix Chrome Flash Issue - Delete PepperFlash in User folder - Windows | 3/18/2016 10:48:32 AM |
3 | Fix Chrome Flash Issue - Delete PepperFlash in User folder - Windows | 3/18/2016 11:00:52 AM |
4 | Fix Chrome Flash Issue - Delete PepperFlash in User folder - Windows | 3/18/2016 6:00:42 PM |
5 | Fix Chrome Flash Issue - Delete Problematic PepperFlash in User folder - Windows | 3/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
10489 | |
Alpha - Code that was just developed | |
Fix Chrome Flash Issue - Delete Problematic PepperFlash in User folder - Windows | |
BESC | |
0 | |
Internal | |
jgstew | |
3/17/2016 12:00:00 AM | |
True | |
jgstew on 3/22/2016 1:13:42 PM | |
jgstew on 3/22/2016 1:13:42 PM | |
14536 Views / 52 Downloads | |
* Average over 0 ratings. ** Log In or Register to add your rating. |
Relevance
isWindows (Relevance 1172)
windows of operating system
Used in 1 fixlet | * Results in a true/false |
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 |
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 |
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 folderSuccess Criteria
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
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 folderSuccess Criteria
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
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
Social Media: |
Comments
|
|
Thanks very much - I really appreciate it! |
|
|
I don't have any other fixlets for this issue. |
|
|
see the analysis here: https://bigfix.me/analysis/details/2998499 |
|
|
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. |
|
|
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! |