Configuration: Adobe Flash Player - Disable Flash Player Update - Windows
Log In or Register to download the BES file, and more.

0 Votes

Description

The listed computers have Adobe Flash Player installed and configured to check for updates automatically. Deploying the action below will both disable Flash Player Update and disallow the user from re-enabling it through the Settings Manager.

 

https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014780737


Property Details

ID3724
StatusQA - Ready for Production Level Testing
TitleConfiguration: Adobe Flash Player - Disable Flash Player Update - Windows
DomainBESC
CategoryConfiguration
Download Size0
SourceAdobe
Source ID<Unspecified>
Source Severity<Unspecified>
Source Release Date3/3/2014 12:00:00 AM
SANSIDN/A
Added by on 3/3/2014 3:23:31 PM
Last Modified by on 3/3/2014 3:23:31 PM
Counters 6765 Views / 11 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 368 fixlets   * Results in a true/false
Show indented relevance
(if( name of operating system starts with "Win" ) then platform id of operating system != 3 else false) AND (if exists property "in proxy agent context" then ( not in proxy agent context ) else true )
Used in 257 fixlets and 9 analyses   * Results in a true/false
Show indented relevance
name of operating system as lowercase starts with "win"
Used in 3 fixlets   * Results in a true/false
Show indented relevance
(exists folder "macromed\flash" of system folder AND (exists file whose ((it starts with "flash" and it ends with ".ocx") of (name of it as lowercase)) of folder "macromed\flash" of system folder OR exists file whose ((it starts with "swflash" and it ends with ".ocx") of (name of it as lowercase)) of folder "macromed\flash" of system folder OR exists file whose ((it starts with "npswf32" and it ends with ".dll") of (name of it as lowercase)) of folder "macromed\flash" of system folder)) OR (exists key "HKLM\Software\Mozilla" whose (exists key whose (name of it does not contain "Netscape" AND exists key "Extensions" whose (exists file whose ((it starts with "npswf32" and it ends with ".dll") of (name of it as lowercase)) of folder (value "Plugins" of it as string)) of it) of it) of registry)
Used in 103 fixlets   * Results in a true/false
Show indented relevance
not exists values "PROCESSOR_ARCHITECTURE" whose (it as string as lowercase = "ia64") of keys "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" of registry
Used in 2 fixlets   * Results in a true/false
Show indented relevance
(exists folder "macromed\flash" of system folder) AND (exists file whose (((it starts with "flash" and it ends with ".ocx") OR (it = "swflash.ocx")) of (name of it as lowercase) and version of it >= "8.0") of it) of folder "macromed\flash" of system folder
Used in 2 fixlets   * Results in a true/false
Show indented relevance
(it != "WinNT" AND it != "Win95") of name of operating system
Used in 1 fixlet   * Results in a true/false
Show indented relevance
not ((exists files "Macromed\Flash\mms.cfg" of it AND (exists lines whose(it contains "AutoUpdateDisable" AND following text of first "=" of it as trimmed string starts with "1" AND preceding text of first "AutoUpdateDisable" of it does not contain "#") of files "Macromed\Flash\mms.cfg" of it)) of (if(not x64 of operating system) then (system folder) else (system wow64 folder)))

Actions

Action 1 (default)

Action Link Click here to disable Flash Player Update.
Script Type BigFix Action Script
// Store the value of the System 32bit folder
// For 32bit systems: C:\Windows\system32
// For 64bit systems: C:\Windows\SysWOW64
parameter "sysFolder32" = "{pathname of (if(not x64 of operating system) then (system folder) else (system wow64 folder))}"

// If no MMS.CFG file exists, create one
if{not exists file (parameter "sysFolder32" & "\Macromed\Flash\mms.cfg")}

// if the Macromed folder does not exist, create it
if{not exists folder (parameter "sysFolder32" & "\Macromed\")}
    dos mkdir {parameter "sysFolder32" & "\Macromed\"}
endif

// if the Macromed/Flash folder does not exist, create it
if{not exists folder (parameter "sysFolder32" & "\Macromed\Flash")}
    dos mkdir {parameter "sysFolder32" & "\Macromed\Flash"}
endif

delete __createfile
delete mms.cfg

createfile until End_Create_File
#Disables Adobe Flash auto update
AutoUpdateDisable = 1
End_Create_File

move __createfile {parameter "sysFolder32" & "\Macromed\Flash\mms.cfg"}

else
//If an MMS.CFG file exists, then append "AutoUpdateDisable = 1" to the MMS.CFG file, while removing any other "AutoUpdateDisable"'s
delete __appendfile
appendfile {concatenation "%0d%0a" of lines whose (not(it contains "AutoUpdateDisable" AND preceding text of first "AutoUpdateDisable" of it does not contain "#")) of file (parameter "sysFolder32" & "\Macromed\Flash\mms.cfg")}
appendfile {"%0d%0a"}AutoUpdateDisable = 1

// Delete backup file if it already exists, otherwise this will fail
delete "{(parameter "sysFolder32" & "\Macromed\Flash\mms.cfg.bak")}"
// Backup existing mms.cfg
move "{(parameter "sysFolder32" & "\Macromed\Flash\mms.cfg")}" "{(parameter "sysFolder32" & "\Macromed\Flash\mms.cfg.bak")}"
// Delete existing mms.cfg if exists (which it should not due to the move above)
delete {(parameter "sysFolder32" & "\Macromed\Flash\mms.cfg")}
// Copy new mms.cfg into place
copy __appendfile {(parameter "sysFolder32" & "\Macromed\Flash\mms.cfg")}

endif
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!
jgstew -
This is an improvement and simplification of the task available in the IBM provided "Updates for Windows Applications" site as of Mar 3, 2014, which was based upon my task submitted originally on Jan 20, 2012 in this forum post: https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0000-0000-0000-000014780737