0 Replies Latest reply on Feb 1, 2013 9:52 AM by dlysergis

    Trouble performing silent install of flash player

    dlysergis

      Hi.


      I am attempting to create a silent install of flash player using Kaseya.  I saw the documentation regarding silent installs and configured that into the script that i am using.  I have built in the uninstall exe as well to perform a silent uninstall.  That part actually appears to work fine, and it did remove the current flash version.  The actual script claims that it has success, but flash was not installed.   I also noticed that the install file removes itself, so it would appear that it did run.  When i go to add remove programs though, no flash is showing up.  am i using the switch properly? --

       

      \install_flashplayer11x32ax_gtbd_chrd_dn_aih.exe -install

       

      That is how i call for it with my script. Am i correct?

       

      I will paste the script below.  I will also mention that the scrip is much simpler in appearance in Kaseya.  The first part is a SS from Kaseya, the second is the exported script.

      Untitled.png

      <?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 Check/Install" treePres="3" id="256038118" folderId="42217444271366661662799254">

          <Body description="Checks to see if flash is installed.  Then if needed, runs flash install for IE 32 Bit">

            <If description="">

              <Condition name="True" />

              <Then>

                <Statement description="Create a named procedure variable and assign a value retrieved from the managed machine by the agent." name="GetVariable" continueOnFail="false">

                  <Parameter xsi:type="EnumParameter" name="VariableType" value="AgentInstallDrive" />

                  <Parameter xsi:type="StringParameter" name="SourceContent" value="" />

                  <Parameter xsi:type="StringParameter" name="VariableName" value="agentTemp" />

                </Statement>

                <Statement description="Write the selected file to the machine at the path specified - full path required." name="WriteFile" continueOnFail="false">

                  <Parameter xsi:type="StringParameter" name="Path" value="#agentTemp#temp\uninstall_flash_player.exe" />

                  <Parameter xsi:type="StringParameter" name="ManagedFile" value="VSASharedFiles\Flash Files\uninstall_flash_player.exe" />

                  <Parameter xsi:type="BooleanParameter" name="DeleteAfter" value="False" />

                </Statement>

                <Statement description="Close the specified application." name="CloseApplication" continueOnFail="false">

                  <Parameter xsi:type="StringParameter" name="ApplicationName" value="iexplore.exe" />

                </Statement>

                <Statement description="Close the specified application." name="CloseApplication" continueOnFail="false">

                  <Parameter xsi:type="StringParameter" name="ApplicationName" value="firefox.exe" />

                </Statement>

                <Statement description="Close the specified application." name="CloseApplication" continueOnFail="false">

                  <Parameter xsi:type="StringParameter" name="ApplicationName" value="chrome.exe" />

                </Statement>

                <Statement description="Execute the given command as if it were typed in at a command prompt." name="ExecuteShellCommand" continueOnFail="false">

                  <Parameter xsi:type="StringParameter" name="Command" value="#agentTemp#\temp\uninstall_flash_player.exe -uninstall" />

                  <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />

                  <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />

                </Statement>

                <Statement description="Write the selected file to the machine at the path specified - full path required." name="WriteFile" continueOnFail="false">

                  <Parameter xsi:type="StringParameter" name="Path" value="#agentTemp#temp\install_flashplayer11x32ax_gtbd_chrd_dn_aih.ex e" />

                  <Parameter xsi:type="StringParameter" name="ManagedFile" value="VSASharedFiles\Flash Files\IE\install_flashplayer11x32ax_gtbd_chrd_dn_aih.exe" />

                  <Parameter xsi:type="BooleanParameter" name="DeleteAfter" value="False" />

                </Statement>

                <Statement description="Execute the given command as if it were typed in at a command prompt." name="ExecuteShellCommand" continueOnFail="false">

                  <Parameter xsi:type="StringParameter" name="Command" value="#agentTemp#temp\install_flashplayer11x32ax_gtbd_chrd_dn_aih.ex e -install" />

                  <Parameter xsi:type="EnumParameter" name="ExecuteAccount" value="System" />

                  <Parameter xsi:type="BooleanParameter" name="Is64Bit" value="False" />

                </Statement>

              </Then>

            </If>

          </Body>

        </Procedure>

      </ScriptExport>