I’m working on deploying a .pkg file to our mac clients but am getting stuck.
I go through the creation wizard and am able to upload the file that I need. I then take action and am deploying it on a test machine. As far as the console sees it, it’s a success. However, the software is not installed on the client.
The client’s console displays an error from BESAgent stating:
“installer: Error the package path specified was invalid: ‘__Download/packagename.pkg’.”
There are 2 pertinent lines in /var/log/install.log:
PFPkg: No file found at path: /Librarby/Application Support/BigFix/BES Agent/__BESData/…pkg
I’ve used the windows installer method and it’s gotten me further but now it’s stuck at the point of actually running the installer script.
I keep seeing errors that say: “installer: Error the package path specified was invalid” and no matter what I do or what I type, it seems that BES client can’t see the file to install it.
I thought maybe it could be a permissions issue so I’ve added a chmod command to the script. I can see that the file gets the new permissions but it still doesn’t run.
Here’s my current actionscript:
download http://server:52311/Uploads/29a83fd7c8c6481016023ae7431e7c41daea6e68/idf36.2.0r003.tmp
continue if {(size of it = 16310277 AND sha1 of it = "29a83fd7c8c6481016023ae7431e7c41daea6e68") of file "long name.tmp" of folder "__Download"}
extract long name.tmp
wait cp __Download/really really long name.pkg __Download/new.pkg
wait sudo chmod 777 __Download/new.pkg
wait sudo installer -pkg __Download/new.pkg -target /Applications
The file gets downloaded, extracted, copied, and chmodded, but the installer cries foul.
Use Disk Utility (on any mac in /Applications/Utilities ) to create a disk image file containing the pkg. This ensures the pkg is a single file instead of a directory (pkg). This avoids confusion when moving the pkg from Mac > Windows and back.