User Tools

Site Tools


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

And also this section:

# sleep 5
#   set -e
#   # Add link to Taskbar for the current user
#  sudo -u "$USER" defaults write ~/Library/Preferences/com.apple.dock persistent-others -array-add "<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>$login6_shortcut</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>";killall Dock

You will also need to adjust the preinstall script:

vim Scripts/preinstall

Comment out this line:

#set -e

And:

#set -e
#sleep 5
#killall Dock

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.1712156906.txt.gz · Last modified: by thomas

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki