I'm trying to run a script to check first if a file is already on the mac I want it to quit, and if the file is not on the mac to go ahead and install it.
At the moment I have a policy that copy the file to /tmp/CB/file.pkg than it gets installed.
( file.pkg gets installed into "/Applications/file.pkg")
But I want it to skip install if the file.pkg is already installed on the "/Applications/file.pkg"
I told you it was basic =)
this is what I have so far:
#!/bin/sh
installer -pkg /tmp/CB/file.pkg -target /