In my environment, i had a task in which i need to install parallels 11 on 150 macbooks. Which was really a pain for me to download or copy the setup of it on every macbook and install it. After dig out a little i found some help from Parallels and able to make its package which i used by IBM Endpoint Manager to schedule a deployment on all macbooks.
So i am going to share each any every step which i used to complete this task.
STEP 1:
Download Parallels 11 from its official website. Link
STEP 2:
Download Packages Software from its official website. Link
STEP 3:
Open Packages and Clink on "Raw Package" to create Paralles_11 package.
Name the package whatever you want and place the Parallels 11 DMG file under "Additional Resources" of Scripts section. (e.g. i named this package "Parallels_11)
STEP 4:
Create Pre and Post Script which will uninstall any previous version of Parallels and install the new one.
Make sure you give proper execute permissions to both of your scripts.
Pre Script
Post Script
STEP 5:
Click Build > Build to check the package.
You are done, just use any deployment tool and it will work fine.
For any queries, please leave it in comment section.
So i am going to share each any every step which i used to complete this task.
STEP 1:
Download Parallels 11 from its official website. Link
STEP 2:
Download Packages Software from its official website. Link
STEP 3:
Open Packages and Clink on "Raw Package" to create Paralles_11 package.
Name the package whatever you want and place the Parallels 11 DMG file under "Additional Resources" of Scripts section. (e.g. i named this package "Parallels_11)
STEP 4:
Create Pre and Post Script which will uninstall any previous version of Parallels and install the new one.
Make sure you give proper execute permissions to both of your scripts.
sudo chmod a+x /path/to/the/script sudo chown root:wheel /path/to/the/script
Pre Script
#!/bin/bash
# This script will remove installed Parallel Desktop Application
#
# Written By Ashish Gupta
#
# On Wednesday 20, 2016
#
# ####
#
# Removing Parallel Desktop.
if [ -d "/Applications/Parallels Desktop.app" ]; then
sudo rm -rf "/Applications/Parallels Desktop.app"
fi
Post Script
#!/bin/bash
# This script will unmount the attached Parallels DMG file and install the Parallels under /Applications/
#
# Written By Ashish Gupta
#
# On Wednesday 20, 2016
#
# ####
#
# Define package default drive variable.
install_dir=`dirname $0`
# Clean tmp1 folder from /tmp/tmp1 if it exist.
/bin/rm -rf /tmp/tmp1
# Create tmp1 folder. (I chose tmp1 because
/bin/mkdir /tmp/tmp1
# Mount Parallels DMG and Install Parallels and Unmount it.
/usr/bin/hdiutil attach /Users/Shared/$install_dir/"ParallelsDesktop-11.1.0-32202.dmg" -mountpoint /tmp/tmp1 -nobrowse -noverify -noautoopen # Mount Parallels DMG file
Sleep 2
/Volumes/Parallels\ Desktop\ 11/Parallels\ Desktop.app/Contents/MacOS/inittool install -t /Applications/Parallels\ Desktop.app # Installing Parallels 11
Sleep 2
/usr/bin/hdiutil eject /tmp/tmp1 # Unmount Parallels DMG file
# Clean Up
/bin/rm -rf /tmp/tmp1
# End of the script
exit 0
STEP 5:
Click Build > Build to check the package.
You are done, just use any deployment tool and it will work fine.
For any queries, please leave it in comment section.
0 comments:
Post a Comment