Kaseya Community

Adobe Flash Update Script - Possibly Repeat Question?

This question is answered

Greetings all -

I am looking for an Agent Procedure that can either use Adobe's site download (probably not feasible) or the actual downloaded Adobe Flash install, and install it silently. I can vaguely remember this existing on the older forums, but if anyone has a link or procedure that updates Flash, please share. Thanks!

Verified Answer
  • ----

    <?xml version="1.0" encoding="utf-8"?>
    <ScriptExport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.kaseya.com/vsa/2008/12/Scripting">
      <Procedure name="Flash Player ActiveX (DL+Install)" treePres="3">
        <Body description="Description: Adobe Flash Player ActiveX for Microsoft Internet Explorer. Downloads and install setup file if the setup file is not available from the File Share on the network.&#xD;&#xA;&#xD;&#xA;Type: Deploy Script &#xD;&#xA;Created by: HardKnoX     (10/09/2010)">
          <Statement description="URL link" name="GetVariable" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
            <Parameter xsi:type="EnumParameter" name="VariableType" value="ConstantValue" />
            <Parameter xsi:type="StringParameter" name="SourceContent" value="http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player_ax.exe" />
            <Parameter xsi:type="StringParameter" name="VariableName" value="URL" />
          </Statement>
          <Statement description="Setup File name" name="GetVariable" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
            <Parameter xsi:type="EnumParameter" name="VariableType" value="ConstantValue" />
            <Parameter xsi:type="StringParameter" name="SourceContent" value="install_flash_player_ax.exe" />
            <Parameter xsi:type="StringParameter" name="VariableName" value="SETUP" />
          </Statement>
          <Statement description="Setup File location path" name="GetVariable" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
            <Parameter xsi:type="EnumParameter" name="VariableType" value="ConstantValue" />
            <Parameter xsi:type="StringParameter" name="SourceContent" value="&lt;FILESHARE&gt;Adobe\Flash" />
            <Parameter xsi:type="StringParameter" name="VariableName" value="PATH" />
          </Statement>
          <Statement description="Install switch" name="GetVariable" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
            <Parameter xsi:type="EnumParameter" name="VariableType" value="ConstantValue" />
            <Parameter xsi:type="StringParameter" name="SourceContent" value="-install" />
            <Parameter xsi:type="StringParameter" name="VariableName" value="sSWITCH" />
          </Statement>
          <If description="Checks to see if the isntallation file and path exists and downloads the file before installing it if it does not.">
            <Condition name="TestFile">
              <Parameter xsi:type="StringParameter" name="Path" value="#PATH#\#SETUP#" />
              <Parameter xsi:type="EnumParameter" name="Condition" value="NotExists" />
              <Parameter xsi:type="StringParameter" name="Value" value="" />
            </Condition>
            <Then>
              <Statement description="If the installation file is found start installation process." name="WriteScriptLogEntry" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Comment" value="#SETUP# Setup file not found in the FileShare, Starting download and Installation..." />
              </Statement>
              <Statement description="" name="UseCredential" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008" />
              <Statement description="" name="ExecuteShellCommand" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Command" value="MKDIR &quot;#PATH#&quot; \a" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
              <Statement description="" name="ExecuteShellCommand" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Command" value="MKDIR &quot;#vAgentConfiguration.AgentTempDir#\Temp\&quot; \a" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
              <Statement description="" name="GetURL" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="URL" value="#URL#" />
                <Parameter xsi:type="StringParameter" name="ResponseFileName" value="#vAgentConfiguration.AgentTempDir#\Temp\#SETUP#" />
                <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />
              </Statement>
              <Statement description="" name="ExecuteShellCommand" continueOnFail="true" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Command" value="COPY /Y &quot;#vAgentConfiguration.AgentTempDir#\Temp\#SETUP#&quot; &quot;#PATH#\#SETUP#&quot;" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
              <Statement description="" name="ExecuteFile" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.AgentTempDir#\Temp\#SETUP#" />
                <Parameter xsi:type="StringParameter" name="Arguments" value="#sSWITCH#" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />
                <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />
              </Statement>
              <Statement description="" name="DeleteFile" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.AgentTempDir#\Temp\#SETUP#" />
              </Statement>
            </Then>
            <Else>
              <Statement description="If the installation file is found start installation process." name="WriteScriptLogEntry" osType="Windows">
                <Parameter xsi:type="StringParameter" name="Comment" value="#SETUP# Setup file found in the FileShare, Starting Installation..." />
              </Statement>
              <Statement description="" name="UseCredential" osType="Windows" />
              <Statement description="" name="ExecuteShellCommand" osType="Windows">
                <Parameter xsi:type="StringParameter" name="Command" value="MKDIR &quot;#vAgentConfiguration.AgentTempDir#\Temp&quot; \a" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
              <Statement description="" name="ExecuteShellCommand" osType="Windows">
                <Parameter xsi:type="StringParameter" name="Command" value="COPY &quot;#PATH#\#SETUP#&quot; &quot;#vAgentConfiguration.AgentTempDir#\Temp\#SETUP#&quot; /Y" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
              <Statement description="" name="ExecuteFile" osType="Windows">
                <Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.AgentTempDir#\Temp\#SETUP#" />
                <Parameter xsi:type="StringParameter" name="Arguments" value="#sSWITCH#" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />
                <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />
              </Statement>
              <Statement description="" name="DeleteFile" osType="Windows">
                <Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.AgentTempDir#\Temp\#SETUP#" />
              </Statement>
            </Else>
          </If>
        </Body>
      </Procedure>
    </ScriptExport>

    ----



    [edited by: HardKnoX at 11:15 PM (GMT -7) on 9-8-2010]
All Replies
  • Procedure_Application_-_Adobe_Flash_Player_-_Language_Independent_-_Deploy_Or_Force_Update_To_Latest.xml

    here's the procedure (script) we use, works great

     

  • @JWible -

    Can you possibly copy and paste the XML, or re-upload? I tried downloading it and it gave me a 'Bad Request' file on every browser I tried.

  • Here goes mine;

  • ----

    <?xml version="1.0" encoding="utf-8"?>
    <ScriptExport xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.kaseya.com/vsa/2008/12/Scripting">
      <Procedure name="Flash Player ActiveX (DL+Install)" treePres="3">
        <Body description="Description: Adobe Flash Player ActiveX for Microsoft Internet Explorer. Downloads and install setup file if the setup file is not available from the File Share on the network.&#xD;&#xA;&#xD;&#xA;Type: Deploy Script &#xD;&#xA;Created by: HardKnoX     (10/09/2010)">
          <Statement description="URL link" name="GetVariable" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
            <Parameter xsi:type="EnumParameter" name="VariableType" value="ConstantValue" />
            <Parameter xsi:type="StringParameter" name="SourceContent" value="http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player_ax.exe" />
            <Parameter xsi:type="StringParameter" name="VariableName" value="URL" />
          </Statement>
          <Statement description="Setup File name" name="GetVariable" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
            <Parameter xsi:type="EnumParameter" name="VariableType" value="ConstantValue" />
            <Parameter xsi:type="StringParameter" name="SourceContent" value="install_flash_player_ax.exe" />
            <Parameter xsi:type="StringParameter" name="VariableName" value="SETUP" />
          </Statement>
          <Statement description="Setup File location path" name="GetVariable" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
            <Parameter xsi:type="EnumParameter" name="VariableType" value="ConstantValue" />
            <Parameter xsi:type="StringParameter" name="SourceContent" value="&lt;FILESHARE&gt;Adobe\Flash" />
            <Parameter xsi:type="StringParameter" name="VariableName" value="PATH" />
          </Statement>
          <Statement description="Install switch" name="GetVariable" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
            <Parameter xsi:type="EnumParameter" name="VariableType" value="ConstantValue" />
            <Parameter xsi:type="StringParameter" name="SourceContent" value="-install" />
            <Parameter xsi:type="StringParameter" name="VariableName" value="sSWITCH" />
          </Statement>
          <If description="Checks to see if the isntallation file and path exists and downloads the file before installing it if it does not.">
            <Condition name="TestFile">
              <Parameter xsi:type="StringParameter" name="Path" value="#PATH#\#SETUP#" />
              <Parameter xsi:type="EnumParameter" name="Condition" value="NotExists" />
              <Parameter xsi:type="StringParameter" name="Value" value="" />
            </Condition>
            <Then>
              <Statement description="If the installation file is found start installation process." name="WriteScriptLogEntry" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Comment" value="#SETUP# Setup file not found in the FileShare, Starting download and Installation..." />
              </Statement>
              <Statement description="" name="UseCredential" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008" />
              <Statement description="" name="ExecuteShellCommand" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Command" value="MKDIR &quot;#PATH#&quot; \a" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
              <Statement description="" name="ExecuteShellCommand" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Command" value="MKDIR &quot;#vAgentConfiguration.AgentTempDir#\Temp\&quot; \a" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
              <Statement description="" name="GetURL" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="URL" value="#URL#" />
                <Parameter xsi:type="StringParameter" name="ResponseFileName" value="#vAgentConfiguration.AgentTempDir#\Temp\#SETUP#" />
                <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />
              </Statement>
              <Statement description="" name="ExecuteShellCommand" continueOnFail="true" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Command" value="COPY /Y &quot;#vAgentConfiguration.AgentTempDir#\Temp\#SETUP#&quot; &quot;#PATH#\#SETUP#&quot;" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
              <Statement description="" name="ExecuteFile" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.AgentTempDir#\Temp\#SETUP#" />
                <Parameter xsi:type="StringParameter" name="Arguments" value="#sSWITCH#" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />
                <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />
              </Statement>
              <Statement description="" name="DeleteFile" continueOnFail="false" osType="NT4|2000|XP|2003|Vista|2008">
                <Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.AgentTempDir#\Temp\#SETUP#" />
              </Statement>
            </Then>
            <Else>
              <Statement description="If the installation file is found start installation process." name="WriteScriptLogEntry" osType="Windows">
                <Parameter xsi:type="StringParameter" name="Comment" value="#SETUP# Setup file found in the FileShare, Starting Installation..." />
              </Statement>
              <Statement description="" name="UseCredential" osType="Windows" />
              <Statement description="" name="ExecuteShellCommand" osType="Windows">
                <Parameter xsi:type="StringParameter" name="Command" value="MKDIR &quot;#vAgentConfiguration.AgentTempDir#\Temp&quot; \a" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
              <Statement description="" name="ExecuteShellCommand" osType="Windows">
                <Parameter xsi:type="StringParameter" name="Command" value="COPY &quot;#PATH#\#SETUP#&quot; &quot;#vAgentConfiguration.AgentTempDir#\Temp\#SETUP#&quot; /Y" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="User" />
                <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />
              </Statement>
              <Statement description="" name="ExecuteFile" osType="Windows">
                <Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.AgentTempDir#\Temp\#SETUP#" />
                <Parameter xsi:type="StringParameter" name="Arguments" value="#sSWITCH#" />
                <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />
                <Parameter xsi:type="BooleanParameter" name="WaitComplete" value="True" />
              </Statement>
              <Statement description="" name="DeleteFile" osType="Windows">
                <Parameter xsi:type="StringParameter" name="Path" value="#vAgentConfiguration.AgentTempDir#\Temp\#SETUP#" />
              </Statement>
            </Else>
          </If>
        </Body>
      </Procedure>
    </ScriptExport>

    ----



    [edited by: HardKnoX at 11:15 PM (GMT -7) on 9-8-2010]
  • @JWible - Actually could you try uploading it to our MITSE Knowledge Exchange - here:  community.kaseya.com/.../default.aspx

    We are hoping that scripts/agent procs/ monitor sets will be shared over there in the appropriate product group.  Be sure to tag it appropriately as well.

    Thanks!

  • k, thanks Brendan, just uploaded them now.

  • Thanks so much all! That procedure is MUCH more robust than the simple one I hacked together before :)

  • I can't download any scripts from the MITSE Knowledge Exchange....it just says "object moved to here" and clicking the link provided just reloads the page...is anyone else able to download the scripts from here?

    community.kaseya.com/.../default.aspx

  • I was able to just copy and paste from the above post, but PDSConsulting is correct, it appears the download page is broken. Also @ HardknoX, does this overwrite any current installs of Flash? I tried it after editing it a little, and I didn't see the updated version. It works great on machines that don't have it, but I wonder if there has to be an uninstall piece of some kind for this to over write things.

  • Yes the install will install the latest version even if a copy of flash has already been install and as long as the setup file is the latest.

    So a quick overview of how it work, my script checks if the flash player setup file is on the file server if it is it downloads it from the file server and installs it, if it is not it downloads it from Adobe.com, uploads it to the file server and install it on the target computer.

    Now if the Flash player setup file/s on the file server are out of date then yes it will install the out of date version, to combat this problem I created a script to update the setup files on the files server that you can schedule say once a month that will overwrite the older setup files.

    community.kaseya.com/.../868.aspx