Bash, Jamf, Office

Packaging and deploying SPSS 25 for macOS

Every now and then I will see a user in the macadmin slack ask about packaging and deploying SPSS for macOS. For some reason, it is just one of those applications that everyone (including myself) always seem to struggle with. That being said, here is how I do it.

* Java
* SPSS_Statistics_Installer.bin
* License code
* Composer

Using Composer, I drop all of the files needed into /Users/Shared/SPSS
You will also need to edit your installer.propertiesfile to include the following:


I then create a postinstall script that will handle the install and clean up of SPSS

## postinstall


#Install java 10.0.2
echo "Installing JDK 10.0.2.pkg"
sudo installer -pkg /Users/Shared/SPSS25/JDK\ 10.0.2.pkg -target /

#Silent Install using information in the file
echo "Installing SPSS 25"
sudo /Users/Shared/SPSS25/SPSS_Statistics_Installer.bin -f /Users/Shared/SPSS25/
echo "Installing SPSS 25 Update"
sudo /Users/Shared/SPSS25/SPSS_Statistics_Installer_Mac_Patch.bin -f /Users/Shared/SPSS25/

#Firewall Rules
echo "Adding firewall rules"
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --unblockapp /Applications/IBM/SPSS/Statistics/25/
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --add /Applications/IBM/SPSS/Statistics/25/
sudo /usr/libexec/ApplicationFirewall/socketfilterfw -—add /Applications/IBM/SPSS/Statistics/25/ 

echo "Removing /Users/Shared/SPSS25"
sudo rm -r /Users/Shared/SPSS25

#Activate SPSS25
echo "Activating SPSS25"
cd /Applications/IBM/SPSS/Statistics/25/

exit 0		## Success
exit 1		## Failure

As you can see in the script and composer screenshot above, I also include the update for SPSS.

Once you have all of this in composer, you can build a .pkg and have yourself a stand alone SPSS installer.

Previous Post

No Comments

Leave a Reply