Posted on 10-18-2019 10:22 AM
I have created an app in automator that asks the user to contact IT. I built it as a pkg and uploaded it to jamf. I built a policy to install. All is great, but I need it to run it after it installs. Any thoughts on getting this done? Basically we are trying to let the user know to contact IT immediately and have this spoken repeatedly.
Solved! Go to Solution.
Posted on 10-18-2019 01:11 PM
You can do this within Composer before you create the .pkg file, I will attach image below.
Posted on 10-18-2019 10:30 AM
add a script that opens the application and have it run after the .pkg installs.
Posted on 10-18-2019 12:41 PM
you need to have a postinstall script added to your pkg that launches the app.
Posted on 10-18-2019 01:11 PM
You can do this within Composer before you create the .pkg file, I will attach image below.
Posted on 10-21-2019 12:43 AM
Another way is use "Files and Processes" of a policy to call the app.
That saves you from re-downloading it and give you flexibility on re-using the app.
Posted on 10-21-2019 07:47 AM
Thanks all! Got it.
Posted on 10-22-2019 07:45 AM
I'm guessing the board is having a hiccup of sorts. I just received 8 notifications that Matt_Roy93's post was marked as an answer.
Posted on 10-23-2019 02:28 AM
@Mauricio I just had this idea for a similar case. I need to run a command after a package is installed. I can't use postinstall within the package, as it is signed.
My question is, is the "execute command" always run after packages/script are processed?
Posted on 10-23-2019 08:43 AM
@hansjoerg.watzl If you upload a script that you want to run and scope it in the same policy it will always run after the packages step.
However if you modify the package or use composer to create a metapackage with a postinstall that installs the original package and then runs a command that works too. I use this frequently to bundle SAP and its prerequisites into a singular package for deployment
Posted on 10-24-2019 12:16 AM
@hansjoerg.watzl 'Files and Processes' is the last thing to run in a policy.
You could also add scripts before or after packages (as mentioned
by drtaru) to create the policy flow.
Here an example of an Adobe policy we use for the self-service.
I hope this helps!
Posted on 10-24-2019 04:31 AM
Thanks, yes I tried it with "Files and Processes" and can confirm, that it was executed as last.
I knew I could also use a script (with After setting), but as it's only a short command, I don't want to create a script just for this simple command.
And now it works too ;-)