Kaseya Community

Hide Agent install in add/remove programs

This question is answered

Hi

We want to know if there is maybe a script to hide agent install in the add\remove programs. We want to implement this so that the user can't uninstall it but only from the Kserver.

Thanks

Henning

Verified Answer
  • Below the two scripts you need.

    One to Hide the entry and one to Display it.

    To Hide the entry

    <?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="Hide Add/Remove Kaseya Agent Information" treePres="3" id="1278417991">
        <Body description="Cache l'entrée pour l'agent dans le menu Ajout/Suppression de programmes&#xA;Hide the entry for the Kaseya Agent in the Add/Remove Programs menu&#xA;&#xA;#27.06.2011&#xA;#Created by guillaume.serton@kaseya.com&#xA;">
          <Statement description="Set the 32 bit registry key" name="SetRegistryValue" continueOnFail="false" osType="Windows">
            <Parameter xsi:type="StringParameter" name="RegistryPath" value="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KA#vMachine.agentInstGuid#\SystemComponent" />
            <Parameter xsi:type="StringParameter" name="Value" value="1" />
            <Parameter xsi:type="EnumParameter" name="DataType" value="Integer" />
          </Statement>
          <Statement description="Write into Agent Procedure Log" name="WriteScriptLogEntry" continueOnFail="false" osType="Windows">
            <Parameter xsi:type="StringParameter" name="Comment" value="Entrée dans Ajout/Suppression de Programmes pour l'agent Kaseya cachée" />
          </Statement>
        </Body>
      </Procedure>
    </ScriptExport>

     

    To Display the entry

    <?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="Display Add/Remove Kaseya Agent Information" treePres="3" id="1448476843">
        <Body description="Affiche l'entrée pour l'agent dans le menu Ajout/Suppression de programmes&#xA;Display the entry for the Kaseya Agent in the Add/Remove Programs menu&#xA;&#xA;#27.06.2011&#xA;#Created by guillaume.serton@kaseya.com&#xA;">
          <Statement description="Set the 32 bit registry key" name="SetRegistryValue" continueOnFail="false" osType="Windows">
            <Parameter xsi:type="StringParameter" name="RegistryPath" value="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KA#vMachine.agentInstGuid#\SystemComponent" />
            <Parameter xsi:type="StringParameter" name="Value" value="0" />
            <Parameter xsi:type="EnumParameter" name="DataType" value="Integer" />
          </Statement>
          <Statement description="Write into Agent Procedure Log" name="WriteScriptLogEntry" continueOnFail="false" osType="Windows">
            <Parameter xsi:type="StringParameter" name="Comment" value="Entrée dans Ajout/Suppression de Programmes pour l'agent Kaseya affichée" />
          </Statement>
        </Body>
      </Procedure>
    </ScriptExport>



    [edited by: Guillaume Serton at 4:12 AM (GMT -7) on 8-17-2011] Fixed error on Display agent procedure
All Replies
  • Below the two scripts you need.

    One to Hide the entry and one to Display it.

    To Hide the entry

    <?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="Hide Add/Remove Kaseya Agent Information" treePres="3" id="1278417991">
        <Body description="Cache l'entrée pour l'agent dans le menu Ajout/Suppression de programmes&#xA;Hide the entry for the Kaseya Agent in the Add/Remove Programs menu&#xA;&#xA;#27.06.2011&#xA;#Created by guillaume.serton@kaseya.com&#xA;">
          <Statement description="Set the 32 bit registry key" name="SetRegistryValue" continueOnFail="false" osType="Windows">
            <Parameter xsi:type="StringParameter" name="RegistryPath" value="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KA#vMachine.agentInstGuid#\SystemComponent" />
            <Parameter xsi:type="StringParameter" name="Value" value="1" />
            <Parameter xsi:type="EnumParameter" name="DataType" value="Integer" />
          </Statement>
          <Statement description="Write into Agent Procedure Log" name="WriteScriptLogEntry" continueOnFail="false" osType="Windows">
            <Parameter xsi:type="StringParameter" name="Comment" value="Entrée dans Ajout/Suppression de Programmes pour l'agent Kaseya cachée" />
          </Statement>
        </Body>
      </Procedure>
    </ScriptExport>

     

    To Display the entry

    <?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="Display Add/Remove Kaseya Agent Information" treePres="3" id="1448476843">
        <Body description="Affiche l'entrée pour l'agent dans le menu Ajout/Suppression de programmes&#xA;Display the entry for the Kaseya Agent in the Add/Remove Programs menu&#xA;&#xA;#27.06.2011&#xA;#Created by guillaume.serton@kaseya.com&#xA;">
          <Statement description="Set the 32 bit registry key" name="SetRegistryValue" continueOnFail="false" osType="Windows">
            <Parameter xsi:type="StringParameter" name="RegistryPath" value="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\KA#vMachine.agentInstGuid#\SystemComponent" />
            <Parameter xsi:type="StringParameter" name="Value" value="0" />
            <Parameter xsi:type="EnumParameter" name="DataType" value="Integer" />
          </Statement>
          <Statement description="Write into Agent Procedure Log" name="WriteScriptLogEntry" continueOnFail="false" osType="Windows">
            <Parameter xsi:type="StringParameter" name="Comment" value="Entrée dans Ajout/Suppression de Programmes pour l'agent Kaseya affichée" />
          </Statement>
        </Body>
      </Procedure>
    </ScriptExport>



    [edited by: Guillaume Serton at 4:12 AM (GMT -7) on 8-17-2011] Fixed error on Display agent procedure
  • Hi

    Thanks the Hide Entry works but the one to show it has the same name as the one to hide it. And when I run it show it, it does not show the entry.

    Thanks

  • Just fixed

  • Thanks it worked