public:repackaging_isabel_security_components_for_macos
This is an old revision of the document!
The macOS installer of Isabel has 2 major deficiencies:
- It runs an AppleScript during installation, assuming that a user is logged in.
- It assumes that the DMG image is mounted while installing the PKG installer package.
These make it impossible to perform a silent install, e.g. through Munki or installer. In order to overcome this limitation, we must make some adjustments to the postinstall script responsible for these actions.
Open the DMG.
Extract the package to a working location.
mkdir work pkgutil --expand /Volumes/ISA_LAYER\ Security\ Components\ 1/\ .pkg ./work/ISABEL
Navigate to the offending subpackage:
cd work/ISABEL/ISA_LAYER.pkg
Open the postinstall script in a text editor:
vim Scripts/postinstall
Comment out this line:
#set -e
And this section:
#cp /Volumes/"ISA_LAYER Security Components"/ISA_LAYER_Uninstall.pkg /usr/local/ISA_LAYER
And also this section:
#echo 'on run
# set some_file to POSIX file "'$login6_shortcut'" as alias
# tell application "Finder"
# try
# set extension hidden of some_file to true
# on error e
# display dialog e buttons {"Ok"} default button 1
# end try
# end tell
# end run
#' | osascript
Navigate back to the top of your working directory:
cd ../../
Repackage in a .pkg file:
pkgutil --flatten ISABEL Isabel.pkg
public/repackaging_isabel_security_components_for_macos.1712154400.txt.gz · Last modified: by thomas
