Zoomed Image

Install and Remove Software

Endpoint Management Guide

Change a Computer

Install and Remove Software

Install Software installs a package from the Software Library on the selected computers. It offers approved packages only. Remove Software uninstalls a product by name. On Windows it is the name in Add or Remove Programs. On Linux and Macs it is the package or app name.

Install Software

Endpoints > Endpoint List > select the computers > Change > Software and Files > Install Software.

Install Software dialog with DEVDC in Computers and 7-Zip 19.00 in Package

Field What it does Default
Computers The computers the package installs on The selected rows
Package A package from the Software Library whose install script is approved The first approved package

An empty Package list means no package has an approved install script yet. A note under the list says how to add one. Create the package in Software > Software Dashboard > Software Deployment > Library with New Package. Then approve its install script on Endpoints > Endpoints Dashboard > Setup > Scripts.

Packages are created in Software > Software Dashboard > Software Deployment > Library. Saving a package reads the installer and records its SHA-256. It also writes an install script for that exact file. The script must be approved in the Script Library before the package appears in this list. See The Software Library.

Install steps

The agent installs the package itself. For each computer it does four things:

  1. It skips the computer if the package is already there. The result reads "Already installed:" followed by the program and version.
  2. It copies or downloads the installer from the Software Library home to a temporary file.
  3. It checks the installer's SHA-256 against the one recorded on save. A different file is refused with "Refused: the installer is not the approved file". Nothing installs.
  4. It runs the installer silently.

An MSI runs as msiexec /i <file> /qn /norestart, followed by the package's Silent Switches. Use the switches for MSI properties, such as INSTALLDIR="C:\Apps\Tool". An exe runs with the Silent Switches as its command line, such as /S. An exe with no switches may wait for a person and then time out.

The temporary file is deleted afterwards. The install has 30 minutes (1,800 seconds) to finish. The run is named "Install: " followed by the package name and version.

Macs and Linux computers

A package goes only to computers of its own platform. A .pkg goes to Macs, a .deb or .rpm to Linux computers, and an msi or exe to Windows. A Mac or Linux computer also needs an agent that reports it installs that type. Other computers are left out of the run with the reason, such as "a macOS package (.pkg) installs on Macs only".

The Mac and Linux agents fetch the installer over https only. They check its SHA-256 the same way. Then they install it without questions, as root:

Type Command
pkg /usr/sbin/installer -pkg <file> -target /
deb apt-get install -y with the file, so dependencies come from the computer's own repositories
rpm dnf install -y with the file

Exit code 0 reads "Installed (exit code 0)". Any other code fails with the code and the last lines the tool wrote. When Already Installed If names a Linux package, the agent looks for it after the install. If it is missing, the run fails with "The installer finished, but is not installed".

A Linux install is high impact. Each run waits for an approval from an approver's PC. See Approving from Your PC.

Already Installed If

Already Installed If decides when a computer already has the package. It takes one of these forms:

Form Example A computer has the package when
Name text 7-Zip An installed program's name contains the text
MSI product code {23170F69-40C1-2702-1900-000001000000} Windows Installer has the product
Registry value reg:HKLM\SOFTWARE\Vendor\App\Version The value exists
Registry value and data reg:HKLM\SOFTWARE\Vendor\App\Version=4.2 The value holds that data
File file:C:\Program Files\Vendor\Vendor.exe The file exists
Linux package pkg:htop dpkg-query or rpm -q finds the package
Mac package receipt pkg:org.mozilla.firefox pkgutil has the receipt
Mac app or file file:/Applications/Firefox.app The app or file exists

The name search reads the installed programs in the registry, 64-bit and 32-bit. When the package has a Version, an older copy found by name, product code or file does not count. The computer gets the new version.

Exit codes

Exit code Result
0 Installed
3010 or 1641 Installed. The result says a restart is needed to finish.
Any other code Failed with "The installer failed with exit code" followed by the code

The computer is not restarted, even after exit code 3010 or 1641.

After you click OK

The message reads "The install of the approved package was sent to the selected computers" and asks "Do you want to follow it now?". Yes opens Activity. The phases are Sent and Succeeded.

To install one package on a ring of computers at a time, use a rollout. See Rollouts.

Install Missing Standard Build Software

Endpoints > Endpoint List > select the computers > Change > Software and Files > Install Missing Standard Build Software. On one computer it is under Change > Software and Files on its page.

It installs the Required products each computer is missing from its standard build and base builds, and upgrades any below the build's minimum version. It uses approved packages only, one product at a time, base builds first. A product with no approved package is skipped with the reason. Standard Build installs on Windows only. On an Apple or Linux computer each product is skipped with the reason, and nothing runs. It works on at most 50 computers at once. For more, start a rollout with a Standard Build.

Click Yes to confirm. Follow the installs on Software > Software Dashboard > Standard Build > Installs. The same list is on the Templates tab under Standard Build Templates > Standard Build Installs. See Standard Build.

Remove Software

Endpoints > Endpoint List > select the computers > Change > Software and Files > Remove Software.

Field What it does Default
Computers The computers the product is removed from The selected rows
Product Name The product name exactly as Windows records it in Add or Remove Programs. On Linux, the package name, such as htop. On a Mac, the app name in /Applications without .app Empty

Removing software is high impact on every platform. Each run waits for an approval. Security software and the xAssets agent are refused by name.

Uninstall steps on Windows

The agent reads the uninstall entries in the registry, 64-bit and 32-bit. It looks for an entry whose display name equals Product Name exactly. For an MSI product it runs msiexec /x with /qn /norestart, so the uninstall is silent. For any other installer it runs the quiet uninstall command Windows recorded. If there is none, it runs the ordinary uninstall command, unchanged.

The agent waits for the uninstaller to finish. Then it checks the program's entry in Programs and Features for up to 2 minutes:

Outcome Result
The entry is gone "removed: is no longer installed"
The entry is still there Failed: "The uninstaller for finished, but is still installed"
An uninstaller with no silent mode runs for 5 minutes Stopped. Failed: it was probably waiting for someone to click. Remove the program by hand, or with a package that has the uninstaller's silent switch.
A quiet uninstaller runs for 30 minutes Stopped. Failed with the time it was given.

A name that does not match exactly fails with "Product not found in registry" followed by the name. Nothing is removed.

Uninstall steps on Linux and Macs

On Linux, the agent first works out what the package manager would remove. If other packages would go too, it refuses with "Refused: removing would also remove" and their names. Nothing is removed. Remove those packages first, or ask for each by name. Otherwise it runs apt-get remove -y or dnf -y remove.

On a Mac, the agent deletes /Applications/<name>.app.

Then the agent looks again. A program that is gone reads "removed: is no longer installed". One that is still there fails with "still installed". A name it cannot find fails with "Product not found:" followed by the name.

After you click OK

The message reads "The uninstall was sent to the selected computers" and asks "Do you want to follow it now?". The phases are Sent and Applied.

Undo

Neither action can be undone from Activity. To take back an install, run Remove Software with the product's name. To put removed software back, install it again from the Software Library.

Key points

  • Copy the product name from the computer's installed software list. "7-Zip 19.00 (x64)" and "7-Zip" are different names.
  • An install from a share runs as the computer account when the agent does it. The share needs read access for Domain Computers.
  • An agentless install cannot read from a share, because the credentials do not pass on to a second server. Use a web address as the Software Library home for computers with no agent.
  • A web address needs a certificate every computer trusts.