I had a requirement to run an application on all systems that would write report back to a server.
I made the needed changes to the application's plist for our situation. The application ran and sent the report when double clicked. I then used packagemaker to package the application, and created a shell script to run post installation: open -a /path/to/application.app. After packaging, when the .pkg was run by hand - the application was placed where I intended, and the shell script ran, and we got a report...
POLICY TIME.
I then placed the .pkg in the JSS and tested running it as a policy. The package installed successfully. The application landed in the right place, as did the post install script. At the point the script was to kick off the application, it failed with:
LSOpenURLsWithRole() failed with error -10810 for the file /path/to/application
With the files in place - I still could drag the shell script to terminal and it would kick of the application. No, I don't think it was permissions. I messed with them - sudoed everything... even took the shell script out of the package and had it run after installing the application as part of a policy - still no go....
Has anyone else seen this problem? If so, have you resolved it?
- my solution for my managers - since this application was for a software audit - was to use Casper to audit the software. (I did set it up and send them a report...)
LSOpenURLsWithRole() failed with error -10810 for the file