When creating a Smart Software item with a .zip Installation File, the necessary installation script will vary depending on the contents of the .zip file. This article provides sample scripts that can generally be used for .zip files that contain a .pkg or .app file.
Note that these generic scripts are not guaranteed to work for every .zip installer - some software may require a more advanced script. Always refer to the developer's documentation on remote deployment for necessary requirements and complete instructions.
For more information about Smart Software, see Smart Software Overview & Creating Smart Software
Before creating your Smart Software item in Addigy, you'll need to examine the contents of the .zip installer you are working with. Unzip the file and take note of the name of the .pkg or .app it contains.
Create a New Smart Software Item
Navigate to Catalog > Smart Software > New to create a new Smart Software item. Name the item and upload the .zip installer as an Installation File.
Installation Command
Depending on the contents of your installer, use the corresponding script as the Installation Command for your item:
For installers that contain a .pkg file:
unzip -o "/Library/Addigy/ansible/packages/Your Software Name (1.0)/ZipFile.zip"
/usr/sbin/installer -pkg "/Library/Addigy/ansible/packages/Your Software Name (1.0)/PkgName.pkg" -target /
For installers that contain a .app file:
unzip -o "/Library/Addigy/ansible/packages/Your Software Name (1.0)/ZipFile.zip"
mv "/Library/Addigy/ansible/packages/Your Software Name (1.0)/AppName.app" "/Applications/"
Replace the following values in the script:
- Your Software Name (1.0) with the name and version number of your Smart Software item
- ZipFile.zip with the exact name of the software's .zip installer
- PkgName.pkg with the name of the pkg inside the .zip file
- AppName.app with the name of the app inside the .zip file
Your Smart Software item should look similar to the example below:
After customizing the script, optionally add a Condition for Install, Removal Command, and/or any necessary MDM Profiles. Save your item and assign it to policies for deployment.
If you encounter any errors on deployment, double check that the correct paths and file names are being used in your item's Installation Command. For more troubleshooting tips, see: FAQ: Troubleshooting Smart Software & Deployment Status