Managing software
You can use Tanium Deploy to specify conditions for deploying software packages and determine how software will interact with your environment. For example, you can enable package cleanup to manage how many versions of a software package you keep in your environment. You can also create software packages to deploy third-party software that is not available in the predefined package gallery. Use software packages to install, update, or remove software on a set of target computers. Create software bundles to specify a sequenced list of software packages to deploy.
Deploy also provides a gallery of common software packages in the Predefined Package Gallery. See Reference: Predefined Package Gallery. The Predefined Package Gallery page lists predefined software package templates that you can import. Use the Predefined Package Gallery to import third-party software package templates to install, update, or remove software on a set of target computers.
Create a software package
-
On the software package page, wait up to 10 minutes to allow the initialization to complete and the Status in Package Information to be 100%.Note: The initialization must be complete and package status at 100% before proceeding to the next steps.
-
Distribute the software package catalog, if not automatically done.
Note: It takes up to five minutes before the new software package is distributed to endpoints. -
(Optional) View software package applicability.
-
(Optional) Manually deploy a software package or bundle.
-
(Optional) Add to a software bundle. For more information, see Edit a software package or bundle.
-
(Optional) Add to a self-service profile. For more information, see Edit a Self Service profile created by an automatic deployment configuration.
Variables for Windows applicability scans and command-line operations
When you create a Windows software package, you can use ||PROGRAMFILES32BIT||, ||PROGRAMFILES||, ||ACTIVEUSERPROFILE||, or ||ACTIVEUSERREGISTRY|| as variables for applicability scans and command-line operations. For the Requirements, Update Detection, and Install Verification sections, you can use these variables if you select the Registry Path, Registry Data, File Path, File Size, or File Version filter fields.
|
Installer Architecture |
Variable |
Path |
|---|---|---|
|
32-bit on 32-bit endpoint |
||PROGRAMFILES32BIT|| |
Full path to %programfiles% folder (example: C:\Program Files) |
|
32-bit on 64-bit endpoint |
||PROGRAMFILES32BIT|| |
Full path to %programfiles% (x86) folder [example: C:\Program Files (x86)] |
|
32-bit on 32-bit endpoint |
||PROGRAMFILES|| |
Full path to %programfiles% folder (example: C:\Program Files) |
|
64-bit on 64-bit endpoint |
||PROGRAMFILES|| |
Full path to %programfiles% folder (example: C:\Program Files) |
|
Any |
||ACTIVEUSERPROFILE|| |
Profile directory of the active authenticated user (example: C:\users\john.smith) |
|
Any |
||ACTIVEUSERREGISTRY|| |
Registry hive of the active authenticated user (example: HKEY_USERS\USER-SID\) |
File/Folder actions
You can perform the following actions for files and folders.
-
Do not use quotation marks in the folder path or file name in File/Folder actions.
-
(Windows) Use ||ACTIVEUSERPROFILE|| to refer to paths in user's profile folders. Do not use %userprofile% or %appdata% or %localappdata% unless you need to interact with the SYSTEM account profile. For more information, see Variables for Windows applicability scans and command-line operations.
-
Copy File/Folder: Specify the fully qualified path and file name. If the destination is a folder, Deploy copies the source to the destination folder; it does not replace an existing folder. For example, a command to copy firefox.app to /Applications/firefox.app with overwrite enabled produces the following results, depending on whether /Applications/firefox.app is an existing folder:
-
If /Applications/firefox.app is not an existing folder, Deploy creates /Applications/firefox.app.
-
If /Applications/firefox.app exists, Deploy creates /Applications/firefox.app/firefox.app.
To always replace /Applications/firefox.app, set the destination to /Applications instead of /Applications/firefox.app.
-
-
Create Folder: Creates a folder. If you specify a parent folder path that does not exist, it is created. For example, c:\temp\myfiles creates c:\temp folder and myfiles subfolder.
-
Delete File/Folder: Any subfolders of the folder that you specify are also deleted.
-
Extract File/Folder: Supported file types for extracting a file are 7Z, TAR, ZIP, BZIP2, GZIP, XZ, and Z. You can specify the following options for extract commands.
Important: Extract commands fail on operating systems based on Linux Kernel 2.6 (RHEL 6, CentOS 6, Oracle Linux 6, and openSUSE 11). Use another method for file extraction on these operating systems.-
Specify whether to overwrite existing files. If there is an existing file, however, you must also select Continue in the On Failure or Error section; otherwise, the extract command fails and Deploy retries the software package operation.
-
Specify a Command Timeout in minutes. The extract operation will time out after the number of minutes you specify. For best results, specify 1 minute for each 50 MB of file size. For example, if your file is 1 GB, specify a Command Timeout value of 20 minutes.
-
In the Extract To section, specify an option. Root of Destination extracts the contents of the compressed file in the specified destination. Folder within Destination creates a folder in the specified destination with the same name as the compressed file, and then extracts the file to the newly created folder.
-
As an example, to use the contents of an attached package file example.zip in a software package, specify example.zip as the Source and . as the Destination. Select Root of Destination and Overwrite Existing Files. Then, if example.zip contains a Setup.exe file that should be executed in this software package operation, add a Run Command step with Setup.exe at the start of the Run Command.
-
-
Rename File/Folder: Specify the existing (source) and new (updated) fully qualified path and file names.
(Windows) Guidance for creating software packages to manage user-installed software
You can use Tanium Deploy to detect and manage user-installed software on Windows endpoints.
User-specific installations
Some software titles must be managed on a per-user basis. User-specific installations most commonly exist when a user who is not a member of the local Administrator group installs an application. By default, some software installers install or run in user context even when run by a local Administrator account. Some software only installs on a per-user basis, such as Microsoft Teams classic. Generally, you do not need to create separate packages for system-wide and user-specific installations because many software installers update or replace user-specific installations when installed system-wide.
To create software package applicability rules to detect user-installed software, create Installed Application rules that use only the Active User type. For file paths in user profiles, create rules and commands using the ||ACTIVEUSERPROFILE|| variable. For registry paths in the user's loaded profile hive, use the ||ACTIVEUSERREGISTRY|| variable.
System-wide installation
Some application installers designed to run under user context are installed under the SYSTEM account profile, instead of machine-wide, when executed by the SYSTEM account. By default, Deploy runs commands as the SYSTEM account. You can force most Windows Installer (.msi) files to install system-wide if you include the ALLUSERS=1 property in the command-line arguments. For more information, see Microsoft documentation: Windows Installer Installation Context and Microsoft documentation: Windows Installer ALLUSERS property.
To create software package applicability rules to detect only system-wide software installations, create rules for system-wide file paths, such as ||PROGRAMFILES||, or for system-wide registry paths, such as HKLM\Software. For more information about Deploy variables, see Variables for Windows applicability scans and command-line operations.
Verify installations with applicability rules
Use Tanium Deploy to set rules that detect the correct installation types. The following examples illustrate how attributes and software package specifications detect the correct system and user installation types.
In this example, the Install Verification rule in the 3T Software Labs Ltd Studio 3T (All Users) software package uses the File Version attribute to ensure only system-wide installations are detected.
In this example, the Install Verification rule in the 3T Software Labs Ltd Studio 3T (Active User) software package uses the File Version attribute to ensure only the installation of an active user is detected.
Additionally, the 3T Software Labs Ltd Studio 3T (Active User) software package specifies Active User in the Deploy Operations section of the Create Software Package page.
Because both 3T Software Labs Ltd Studio 3T software packages detect only the correct installation types, the packages can be deployed to the same endpoints in a bundle to ensure all user copies stay updated, regardless of the original installation context.
Export a software package
You can export a software package so that you can later import the package on a different server or recreate a deleted package.
- From the Main menu, go to > Software.
- Click the name of your package and then click click Options
> Export Software Package.
The ZIP file is available in your downloads folder.
Import a software package
You can import a previously exported software package on a different server or recreate a deleted package.
- From the Main menu, go to > Software and then click Import Package.
- Browse to the previously exported ZIP file and click Import.
- Click (Download File) for any required files.
- Click Import or Import Duplicate if you are importing a duplicate package.
Import a software package from the Predefined Package Gallery
You can select one of two ways to import a software package from the Predefined Package Gallery:
-
You manually import a software package from the gallery.
-
Deploy automatically imports the software package if Tanium updates the package or adds a new version of the package.
Deploy imports a new version of a package that is used in an automatic deployment configuration only when at least one endpoint can apply the new version. If no endpoint can apply the new version, Deploy does not import it and checks again later. For more information, see Rule triggers.
Certain packages are automatically imported by default. For the list of packages, see Configuring overview. You can modify the default import setting.
For guidance on determining the import setting for a software package, see Impact of software package import setting and deployment settings on ease of use.
For a complete list of the software packages available in the Predefined Package Gallery, see Reference: Predefined Package Gallery.
After you import a package and distribute the catalog, you can deploy, edit, delete, or export the package. If a package is marked as Tanium Managed on the Software Packages page, you cannot edit or delete it unless you change the import setting to manual.
If you notice synchronization errors, see Job failed: Sync Software Package Files error.
Impact of software package import setting and deployment settings on ease of use
Review the following table to understand how the software package import setting and the deployment type and settings impact what you need to do to keep software packages and deployments up-to-date.
|
Software package import setting |
Package included in software package deployment |
Package included in software bundle deployment |
|---|---|---|
| Manual import |
|
|
| Automatically import updated and new versions as they are released |
|
|
Distribute the software package catalog
After you create or edit a software package, the updated software package catalog must be distributed to the endpoints. When the endpoints receive the updated software package catalog, you can view the package applicability.
Deploy automatically distributes the software package catalog to endpoints when changes are detected. If you disable the Auto-Distribute Catalog option in the Configuration Settings tab of the Deploy Settings , you are prompted to distribute the software package catalog each time an update is detected, and must click Distribute Catalog.
Manually replace or add a new package to the software package catalog
When you import a package, follow the steps in Import a software package. If a software package that is being manually imported already exists in the software package catalog, you are presented with two options prior to importing again. If you want to replace the existing package, select Replace existing. If you want to import the package, but also keep the existing one, select Save as another software package. You must then update at least one of the fields to create a unique record in the software package catalog.
View software package applicability
To view software package applicability and understand the results of your applicability rules, review the Interact question results, software package details, and endpoint log files. The following example describes how to view and understand the applicability results for the Igor Pavlov 7-Zip v22.01.00.0 software package on one endpoint.
Software package applicability in Deploy
When determining software package applicability, Deploy checks the criteria specified in the software package in the following order, stopping at the first section with matching criteria.
-
System architecture on the endpoint: If the architecture does not match any of the architectures defined in System Requirements, Deploy marks the software package as Not Applicable and moves on to the next software package.
-
Install Verification criteria: If those criteria match, Deploy marks the software package as Installed and moves to the next software package.
-
Update Detection: If an Update operation exists, Deploy then checks the Update Detection criteria. If those criteria are met, Deploy checks System Requirements:
-
If System Requirements match, Deploy marks the software package as Update Eligible and moves to the next software package.
-
If System Requirements do not match, Deploy marks the software package as Update Ineligible and moves to the next software package.
-
-
Installation Requirements criteria: If Installation Requirements criteria do not match, Deploy marks the software package as Not Applicable and moves on to the next software package. If Installation Requirements criteria match, Deploy then checks System Requirements:
-
If System Requirements match, Deploy marks the package as Install Eligible and moves on to the next software package.
-
If System Requirements do not match, Deploy marks the package as Not Applicable and moves on to the next software package.
-
Keep the following clarifications in mind as you review software package applicability:
-
Installation Requirements affect only Install operations, not Update operations.
-
If you do not specify Installation Requirements, then the software package is marked Install Eligible if the endpoint meets System Requirements criteria for the software package.
View confidence score of software package
Confidence scores rate the probability that a package deployment will succeed. The score also provides information about performance degradation after a successful installation. Use the score to decide whether a package is reliable enough for deployment.
Tanium does not calculate confidence scores for certain gallery packages. These packages have a confidence score of N/A. For more information about packages that do not have confidence scores, see Software package confidence score.
Create a software bundle
Create software bundles to specify a sequenced list of software packages to deploy. Use software bundles to manage multiple software packages at once and order their deployments. For example, you can create a software bundle with the software packages macOS Ventura - Phase 1: Pre-Cache and macOS Ventura - Phase 2: Upgrade in an ordered sequence to deploy a macOS 13 (Ventura) upgrade.
To create a software bundle:
Edit a software package or bundle
To edit a package or bundle, click the name of your package or bundle and then click Edit.
Copy a software package or bundle
To copy a package or bundle, click the name of your package or bundle and then click Copy.
When a software package or bundle is copied, the name is automatically prepended with Copy - .
Delete a software package or bundle
To delete a package or bundle, click the name of your package or bundle and then click Delete .
To delete multiple packages simultaneously, select the packages from the Software Packages page and then click Delete.
You cannot delete a software package if it is referenced in bundles, active deployments, or Self Service profiles or if it is the latest auto-imported version of a Tanium Managed package. If you delete a software package in an automatic deployment configuration and the package is used in a pending or ineligible deployment, the deployment status is changed to Skipped.
You cannot delete a software bundle if it is referenced in active deployments or Self Service profiles.