Friday, June 13, 2014

Silently Deploy SPSS 22

While upgrading our deployments from SPSS 21 to SPSS 22 I noticed some changes in the SPSS 22 install. One, that the SPSS 22 .msi will now install the Microsoft Studio C++ 2008 redistributable itself, meaning that you no longer have to have this has a dependency for SPSS if you are using SCCM 2012 Application Deployment method and two, that Python is bundled with it.

This install script will:
  1. Silently Uninstall SPSS 19, 20 or 21 suppressing the reboot after uninstall.
  2. Silently Install SPSS 22 suppressing the reboot.
  3. Removes the 2 prompts for Firewall exception on first run. I block them, you can allow them by changing the script.
  4. Removes the encoding prompt on first run, defaulting to Unicode encoding.
  5. Licenses either with a license server or standalone depending on command used.
  6. Installs Python, integration plugin and extension commands for SPSS Statistics.

If you have the SPSS exe you will need to get the .msi file. You can get the .msi by double clicking the executable on a test machine and after it extracts and the InstallShield Wizard pops up you can browse to the temp folder created at %UserProfile%\AppData\Local\Temp\{somerandomstring} and move the msi somewhere else and cancel out of the wizard. Look for the folder most recently created.

I use the following cmd script to install SPSS 22.

@Echo off
CLS

:Path
Set loc=%~dp0

REM Uninstall SPSS 19
msiexec.exe /x {06C43FAA-7226-41EF-A05E-9AE0AA849FFE} /qn /norestart ALLUSERS=1 REMOVE="ALL"
REM Uninstall SPSS 20
msiexec.exe /x {2AF8017B-E503-408F-AACE-8A335452CAD2} /qn /norestart ALLUSERS=1 REMOVE="ALL"
REM Uninstall SPSS 21
msiexec.exe /x {1E26B9C2-ED08-4EEA-83C8-A786502B41E5} /qn /norestart ALLUSERS=1 REMOVE="ALL"


REM Installs SPSS22 with Network License
msiexec.exe /qn ALLUSERS=2 /m MSIDWWPE /norestart /i "%loc%IBM SPSS Statistics 22.msi" LICENSETYPE="Network" LSHOST="input your license server" DISABLE_COMMUTE="1" INSTALLPYTHON="1"

REM Config
netsh advfirewall firewall add rule name="Block SPSS Incoming" dir=in program="c:\program files\ibm\spss\statistics\22\stats.exe" remoteip=localsubnet action=block
netsh advfirewall firewall add rule name="Block Java Incoming" dir=in program="c:\program files\ibm\spss\statistics\22\JRE\bin\javaw.exe" remoteip=localsubnet action=block


REM Enable UUENCODING
reg add HKLM\Software\JavaSoft\Prefs\com\ibm\/S/P/S/S\/Statistics\22.0\ui\dialog_settings\welcome_page /v show_unicode_warning /d 1
reg add HKLM\Software\JavaSoft\Prefs\com\ibm\/S/P/S/S\/Statistics\22.0\ui\dialog_settings\welcome_page /v shown_unicode_warning /d 1



If you are using stand alone licenses, substitute the install line with:

msiexec.exe /q ALLUSERS=2 /m MSIUQUPQ /norestart /i "%loc%IBM SPSS Statistics 22.msi" AUTHCODE="input your license code" INSTALLPYTHON="1"

Place the Install Script with the MSI in the same folder and deploy with ConfigMgr.

6 comments:

  1. David it there a switch or another command to remove the desktop icon to accompany this?
    msiexec.exe /x {1E26B9C2-ED08-4EEA-83C8-A786502B41E5} /qn /norestart ALLUSERS=1 REMOVE="ALL"
    Thanks,
    Jerod

    ReplyDelete
    Replies
    1. Hi Jerod,
      We use a command like the following to remove shortcut icons on the desktop during installation, it should also work when scripted after an uninstallation.
      if exist "%PUBLIC%\Desktop\IBM SPSS Statistics 22.lnk" del "%PUBLIC%\Desktop\IBM SPSS Statistics 22.lnk"

      If you are trying to remove shortcuts that the user put on the desktop in their own profiles, that would be more complicated. I think something like:
      if exist "%USERPROFILE%\Desktop\IBM SPSS Statistics 22.lnk" del "%USERPROFILE%\Desktop\IBM SPSS Statistics 22.lnk"
      would work. But you would have to have it run when each user is logged in.

      *edited to correct a typo.

      Delete
    2. David,
      Thank you this is great and it does work after the uninstall.

      Delete
    3. I have copied the SPSS 22 file in a share folder. I want to create batch file that will silently install SPSS 22 with complete authorization code. Above code did not help me!

      Delete
  2. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in IBM SPSS, kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on IBM SPSS. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Nitesh Kumar
    MaxMunus
    E-mail: nitesh@maxmunus.com
    Skype id: nitesh_maxmunus
    Ph:(+91) 8553912023
    http://www.maxmunus.com/

    ReplyDelete
  3. I really appreciate information shared above. It’s of great help. If someone want to learn Online (Virtual) instructor lead live training in sccm , kindly contact us http://www.maxmunus.com/contact
    MaxMunus Offer World Class Virtual Instructor led training on TECHNOLOGY. We have industry expert trainer. We provide Training Material and Software Support. MaxMunus has successfully conducted 100000+ trainings in India, USA, UK, Australlia, Switzerland, Qatar, Saudi Arabia, Bangladesh, Bahrain and UAE etc.
    For Demo Contact us.
    Sangita Mohanty
    MaxMunus
    E-mail: sangita@maxmunus.com
    Skype id: training_maxmunus
    Ph:(0) 9738075708 / 080 - 41103383
    http://www.maxmunus.com/

    ReplyDelete