Hi Everyone -
just looking for some advice on getting zscaler to install with some command line options as illustrated here:
Basically, i can get this work just fine on a machine manually by running this script, and placing the .app installer on the desktop and running the following command, it works fine:
sudo sh /Users/testuser/Desktop/zscaler/Zscaler-osx-184.108.40.206-installer.app/Contents/MacOS/installbuilder.sh --mode unattended --unattendedmodeui none --strictEnforcement 1 --cloudName zscalerthree --policyToken 12345678
However, how is this performed in jamf? so that i can roll it out to 25 machines. In jamf, i would normally convert .app files into .pkg, is this still necessary? also, how would i apply the install options?
on a separate note:
i installed the application using the above script, then i went into composer and dragged the entire folder including a config.ini file that was generated, i thought that maybe I could package this entire folder but the config.ini file contains a script that uses my specific named user directory, which will probably fail since this path will not be valid for other users. This probably wouldnt work anyway.
I used Composer to package and install the Zscaler app in my environment.
I placed the Zscaler app in /private/var/tmp/
I then created a postinstall script:
You can place your command inside of the postinstall script:
#!/bin/sh ## postinstall pathToScript=$0 pathToPackage=$1 targetLocation=$2 targetVolume=$3 sudo sh /private/var/tmp/Zscaler-osx-220.127.116.11-installer.app/Contents/MacOS/installbuilder.sh --mode unattended --strictEnforcement 1 --policyToken 1234567 exit 0 ## Success exit 1 ## Failure