Smart Software allows you to deploy .zip installers silently to your managed devices through Addigy policies. The installation script you'll need depends on what's inside the .zip — either a .pkg or a .app file. This guide provides sample scripts for both cases and walks you through creating the Smart Software item.
Note: The sample scripts below work for most .zip installers but are not guaranteed to work in every case. Some software may require a more advanced script. Always refer to the software developer's documentation on silent or remote deployment for complete requirements.
Before You Begin
Before creating your Smart Software item, unzip the installer on your Mac and note the exact name of the .pkg or .app file it contains — you'll need this when building your installation script.
How to Create a Smart Software Item
- Navigate to Catalog > Software > Smart Software and click New.
- Enter a name and version number for your item. Note that the name cannot be changed after creation.
- Under Installation Files, click Select File(s) and upload your
.zipinstaller. - In the Installation Command field, paste the script that matches the contents of your .zip file — see the options below.
- Click Save in the bottom right.
Installation Command
Use the script that matches what's inside your .zip file, then update the placeholder values to match your item.
If your .zip contains a .pkg file:
unzip -o "/Library/Addigy/ansible/packages/Your Software Name (1.0)/ZipFile.zip" -d "/Library/Addigy/ansible/packages/Your Software Name (1.0)/" /usr/sbin/installer -pkg "/Library/Addigy/ansible/packages/Your Software Name (1.0)/PkgName.pkg" -target /
If your .zip contains a .app file:
unzip -o "/Library/Addigy/ansible/packages/Your Software Name (1.0)/ZipFile.zip" -d "/Library/Addigy/ansible/packages/Your Software Name (1.0)/" mv "/Library/Addigy/ansible/packages/Your Software Name (1.0)/AppName.app" "/Applications/AppName.app"
Replace the following placeholders in whichever script you use:
-
Your Software Name (1.0)— the exact name and version number of your Smart Software item as entered in Addigy. You can confirm this path in the Download folder line at the bottom of the Installation section. -
ZipFile.zip— the exact filename of the .zip installer you uploaded. -
PkgName.pkg— the exact name of the .pkg file inside the .zip (for the .pkg script only). -
AppName.app— the exact name of the .app file inside the .zip (for the .app script only).
Tip: If your deployment fails, the most common cause is a path or filename mismatch in the Installation Command. Double-check that every value matches exactly, including capitalization and spaces. For more troubleshooting help, see FAQ: Troubleshooting Smart Software & Deployment Status.
Optional: Add a Condition for Install
A condition script tells Addigy whether to run the installation on a given device — for example, skipping installation if the app is already present in /Applications/. Adding a condition is recommended for any item you plan to deploy at scale.
To learn how to configure conditions, see Overview: Conditions for Install (Condition Scripts).
Next Steps
Once your Smart Software item is saved, you can deploy it in the following ways:
- Deploy via Policy — add the item to a Parent or Child policy to deploy it automatically to all devices in that policy. See Adding Items to a Policy for details.
- Deploy via Self Service — make the item available for end users to install on demand from the Self Service app. See Adding or Removing Software in the Self Service Catalog.
- Deploy to an Individual Device — use GoLive to deploy the item to a single device on demand. See Deploying Software to Individual Devices in GoLive for details.