I know the .bin + installer-properties bit normally requires Java and a logged-in user, has anyone figured out a way to get the SPSS silent installer to run at the login window? Is there anything lost by just repackaging the contents of the SPSS directory in the Applications folder?
--
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Follow-up: I'm testing this as a preinstall_script:I'm not sure how Munki will handle this if we're bootstrapping a machine with SPSS in the manifest, but the wiki indicates that it would cause the whole run to be aborted.
https://gist.github.com/flammable/d3dd738891fdb69bacc4
Same with installing SPSS alongside other updates that require a reboot. This would not be desirable in our environment - need to test more. It works fine on my fully updated testing machines, which is good.Another option might be installcheck_script. I'm not crazy about tricking Munki into thinking SPSS is already installed at the login window, but that might cause fewer issues in the scenarios I mentioned above.
Any ideas would be welcome! I searched Google and munki-dev, but didn't come up with any solutions.On Tue, Jan 13, 2015 at 2:51 PM, Mike Solin <mi...@mikesolin.com> wrote:Thanks!Each time Munki runs, a fresh copy of SPSS is downloaded, the installation is attempted, the licensing fails, and Munki tries again within an hour or so. Is there a good way to make sure SPSS only installs when a user is logged in?Geoff, thanks for this! This thread and another one on munki-dev helped immensely with getting SPSS into our Munki repo.We're having issues running this at the login window, too - has anyone found a workaround? It's the same error Tim Sutton posted here:
https://groups.google.com/d/msg/munki-dev/hBUUHNFsNck/_j_uE6QG2OkJOn Fri, Jan 10, 2014 at 12:35 PM, blimvisible <Jonathan...@uvm.edu> wrote:I know the .bin + installer-properties bit normally requires Java and a logged-in user, has anyone figured out a way to get the SPSS silent installer to run at the login window? Is there anything lost by just repackaging the contents of the SPSS directory in the Applications folder?--
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks, Greg!What do you mean by the difference between “updatecheck time” and “install time”?
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
To post to this group, send email to munk...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>autoremove</key>
<false/>
<key>catalogs</key>
<array>
<string>testing</string>
</array>
<key>category</key>
<string>testing</string>
<key>description</key>
<string>Comprehensive statistical data analysis software.</string>
<key>developer</key>
<string>IBM</string>
<key>display_name</key>
<string>IBM SPSS 22</string>
<key>installer_item_hash</key>
<string>fcd64d6419e421e5a6c210ac01fa3640ed9c38f50cb47d3b2170a07fd5649dd0</string>
<key>installer_item_location</key>
<string>apps/SPSS_22.dmg</string>
<key>installer_item_size</key>
<integer>703016</integer>
<key>installer_type</key>
<string>copy_from_dmg</string>
<key>installs</key>
<array>
<dict>
<key>CFBundleIdentifier</key>
<string>com.ibm.SPSS.Statistics.22.0.0.0</string>
<key>CFBundleName</key>
<string>SPSS Statistics</string>
<key>CFBundleShortVersionString</key>
<string>22.0.0.0</string>
<key>CFBundleVersion</key>
<string>22.0.0.0</string>
<key>path</key>
<string>/Applications/SPSS22/SPSSStatistics.app</string>
<key>type</key>
<string>application</string>
<key>version_comparison_key</key>
<string>CFBundleShortVersionString</string>
</dict>
<dict>
<key>path</key>
<string>/Applications/SPSS22</string>
<key>type</key>
<string>file</string>
</dict>
</array>
<key>items_to_copy</key>
<array>
<dict>
<key>destination_path</key>
<string>/tmp</string>
<key>group</key>
<string>admin</string>
<key>mode</key>
<string>go-w</string>
<key>source_item</key>
<string>installer.properties</string>
<key>user</key>
<string>root</string>
</dict>
<dict>
<key>destination_path</key>
<string>/tmp</string>
<key>group</key>
<string>admin</string>
<key>mode</key>
<string>go-w</string>
<key>source_item</key>
<string>SPSS_Statistics_Installer.bin</string>
<key>user</key>
<string>root</string>
</dict>
</array>
<key>minimum_os_version</key>
<string>10.8.5</string>
<key>name</key>
<string>SPSS22</string>
<key>postinstall_script</key>
<string>#!/bin/sh
#USER_INSTALL_DIR="/Applications/SPSS22/"
/bin/chmod +x /tmp/SPSS_Statistics_Installer.bin
#tell Java to run silently
JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=true"
export JAVA_OPTS
# Now we can install SPSS silently.
# -f installer.properties assumed since the install.properties is in the same dir # -i silent added to force silent
/tmp/SPSS_Statistics_Installer.bin -f /tmp/installer.properties
#/tmp/SPSS_Statistics_Installer.bin -i silent
# Fix permissions on root folder
#/bin/chmod 755 $USER_INSTALL_DIR
# Run license installer
#USER_INSTALL_DIR/SPSSStatistics.app/Contents/bin/licsilent.sh
# Clean up
exit 0
</string>
<key>requires</key>
<array>
<string>OracleJava8</string>
</array>
<key>uninstall_method</key>
<string>uninstall_script</string>
<key>uninstall_script</key>
<string>#!/bin/sh
rm -rf /Applications/IBM/SPSS/Statistics/22
# look for other SPSS versions
if ! [ "$(find /Applications/IBM/SPSS/Statistics/* -depth -type d)" ] &gt; /dev/null 2&gt;&amp;1; then
rm -rf /Applications/IBM/SPSS
rm -f /Library/Preferences/.com.zerog.registry.xml
rm -f /Library/Preferences/com.ibm.spss.plist
rm -f /private/var/root/Library/Preferences/com.ibm.spss.plist
rm -rf /Library/Application\ Support/IBM/SPSS
fi
# look for other IBM Apps
if ! [ "$(find /Applications/IBM/* -depth -type d)" ] &gt; /dev/null 2&gt;&amp;1; then
rm -rf /Applications/IBM
fi
exit 0</string>
<key>uninstallable</key>
<true/>
<key>version</key>
<string>22.0.0.0</string>
</dict>
</plist>
<key>postinstall_script</key>
<string>#!/bin/sh
# custom variables
INSTALLER_DIR="/private/var"
APP_DIR="/Applications/SPSS 23"
LICENSE_HOST="license.server.url"
COMPANY_NAME="Name"
# create installer.properties
cd "${INSTALLER_DIR}"
/bin/echo "INSTALLER_UI=silent
USER_INSTALL_DIR="${APP_DIR}"
LICENSE_ACCEPTED=true
#For network license
network=1
LSHOST="${LICENSE_HOST}"
COMPANYNAME="${COMPANY_NAME}"
InstallPython=0
COMMUTE_MAX_LIFE=7" > "${INSTALLER_DIR}/installer.properties"
# ensure installer is executable
/bin/chmod a+x "${INSTALLER_DIR}/SPSS_Statistics_Installer.bin"
# make Java available at loginwindow
JAVA_OPTS="${JAVA_OPTS} -Djava.awt.headless=true"
export JAVA_OPTS
# run SPSS installer
"${INSTALLER_DIR}/SPSS_Statistics_Installer.bin" -f "${INSTALLER_DIR}/installer.properties"
# ensure correct permissions on application folder
/bin/chmod 755 "${APP_DIR}"
# license activation not needed with network license
# "${APP_DIR}"/SPSSStatistics.app/Contents/bin/licsilent.sh
# add firewall exceptions
/usr/libexec/ApplicationFirewall/socketfilterfw --unblockapp "${APP_DIR}/SPSSStatistics.app/Contents/MacOS/spssLauncher"
/usr/libexec/ApplicationFirewall/socketfilterfw --add "${APP_DIR}/SPSSStatistics.app/Contents/MacOS/spssLauncher"
# clean up installer files
/bin/rm -f "${INSTALLER_DIR}/SPSS_Statistics_Installer.bin"
/bin/rm -f "${INSTALLER_DIR}/installer.properties"
exit 0
</string>
Tim
To unsubscribe from this group and stop receiving emails from it, send an email to <a rel=
--
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
--
Find related discussion groups here:
https://github.com/munki/munki/wiki/Discussion-Group
---
You received this message because you are subscribed to the Google Groups "munki-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munki-dev+...@googlegroups.com.
To post to this group, send email to munk...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
<SPSS_25.pllist>