/build/static/layout/Breadcrumb_cap_w.png

Deploying DMG with enclosed PKG and Profiles (Mixed XML files)

Hi Guys

Im really struggling to deploy software to our Mac OSX user base via Kace.

The DMG file has a PKG and a folder with XML file configurations that are required as part of the installation.

Steps Taken So Far

KACE DEPLOYMENT
- Created the software item and uploaded the dmg
- Created the distribution file with full command line installer -pkg /Library/Application Support/Dell/KACE/data/downloads/82807/DPD_AnyConnect 3.1.06079.dmg.zip -target /
- The software pushes to the Mac but doesn't install the application

MANUAL TEST VIA TERMINAL
hdiutil attach /Library/Application\ Support/Dell/KACE/data/downloads/82807/DPD_AnyConnect\ 3.1.06079.dmg
sudo installer -pkg /Volumes/DPD_AnyConnect\ 3.1.06079/AnyConnect.pkg  -target /

(I need the password for the above command which is something I dont want to use for obvious reasons - I need this to install silently so the user is not affected!)

hdiutil unmount /Volumes/DPD_AnyConnect\ 3.1.06079

The above command works fine but requires my password and I wouldnt have a clue how to convert this to a script if this is the right way to proceed!?

Ive had this job to do for 4 weeks now, Ive researched and researched and feel im close but not close enough!

I need some experienced guys to assist me please!>

0 Comments   [ + ] Show comments

Answers (3)

Posted by: chucksteel 8 years ago
Red Belt
0
This is the method I use to create managed installs for MacOS.
1. Create a folder containing the files necessary for the installation. This should include the PKG and any other necessary files.

2. Select all of the files, right click and compress. This will create a ZIP containing all of those files.

3. Find the software item for the software title in the Inventory, Software module. KACE needs the software to be installed on one machine so that it can identify the exact version it is pushing to clients.

4. Upload the ZIP file you created in step 2 to the software title.

5. Browse to Distribution and create a new managed install.

6. Select the software title from step 3 in the Software dropdown.

7. Select the "Override Default Installation" option.

8. Enter the following for the full command line:
unzip -o "Name of ZIP from step 2.zip" && installer -pkg "Name of PKG file.pkg" -target /
(You don't need to specify the entire path because KACE will execute this command in the appropriate download folder).
9. Check the box for "Don't Prepend msiexec.exe"

This method works for me almost without exception. If you need to use a more complicated installation that requires multiple commands then you can create an install.sh script and include it in the archive and execute that script after you unzip the files. KACE is supposed to automatically unzip the archive but in my experience it does not do this, so I always specify that first. 


Comments:
  • Chuck, I have a cert that I want to push and the parameters are

    security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" "CertRoot.cer"

    This works in scripting with the dependencies cert but I want to run this as a managed install. I zipped up cert and a script.sh file which reads the script from above. How do I go about unzipping and calling for script.sh to run? - sam240 7 years ago
    • I have found the using disk images and uploading the dmg to KACE to be more reliable. The K1000 will automatically mount the disk image when used as a managed install. Specify the script.sh in the command line. Also, if you make a package that runs your script and put that on a disk image the K1000 will automatically run the package for you without changing the managed install settings. That has been the most reliable method for me. - chucksteel 7 years ago
      • I created a DMG file with an executable script but when I call the script, I get an error, *** Error reading file "certroot.cer" even though it's included in the dmg. When I run the command in terminal and mention the path for the cert then it works fine like security add-trusted-cert -d -r trustRoot -k "/Library/Keychains/System.keychain" \Users\User\desktop\CertRoot.cer but I just do "CertRoot.cer" it doesn't work - sam240 7 years ago
      • Depending on how you created the disk image it should mount with a specific volume name. So if the volume's name is CertInstall you can reference the file as /Volumes/CertInstall/CertRoot.cer - chucksteel 7 years ago
Posted by: JonR 8 years ago
Yellow Belt
0
Hi thanks for the update - I was suprised how easy it was in the end...

Instead of uploading the DMG I extracted the files and zipped them up. Uploaded this to kace and chose the dont prepend msiexec.exe on the distribution.

Pushed it out and viola!     
Posted by: JonR 8 years ago
Yellow Belt
0
Hi thanks for the update - I was surprised how easy it was in the end...

Instead of uploading the DMG I extracted the files and zipped them up. Uploaded this to kace and chose the dont prepend msiexec.exe on the distribution.

Pushed it out and viola!     
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ