SPSS

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search

This assumes you have the Site licensed version using an activation code as opposed to a license key.

Version 22

IBM just gave us the exe file, so I ran it and it dumped the msi file along with the other install files into %temp%/{some random guid}. Copy that folder first and then cancel the installation. Likewise to get the latest Patch, download the exe copy the resulting MSI from %temp% and repeat. I put each architecture in it's own folder.

Version 22 seems to activate SPSS for you so no need to run a separate activation, however of course if you are just updating the license you will need to run the activator.


Unattended install with Activation code

<packages> 
	<package
	     id="spss"
	     name="SPSS"
	     revision="%VERSION%"
	     reboot="false"
	     priority="15">
            <variable name="code" value="code-here" />
            <variable name="VERSION" value="22.0.0.1" />
	    <variable name="ARCH" value="86" architecture="x86"/>
            <variable name="ARCH" value="64" architecture="x64"/>

	     <check type="uninstall" condition="versiongreaterorequal" path="IBM SPSS Statistics 22" value="%VERSION%"/>
	     <install cmd='msiexec /i "%SOFTWARE%\spss\21\x%ARCH%\IBM SPSS Statistics 22.msi" /qn AUTHCODE="%code%" COMPANYNAME="Contoso"' />
             <install cmd='msiexec /i "%SOFTWARE%\spss\21\x%ARCH%Patch1\SPSS_Statistics_22001_win%ARCH%_Patch.msi" /qn ' />

	     <upgrade include='install' />
	    
	     <remove  cmd='MsiExec.exe /X{1E26B9C2-ED08-4EEA-83C8-A786502B41E5} /qn ALLUSERS=1 REMOVE="ALL" ' />

	 </package>
</packages>


Version 20

The MSI IBM provide has associated transform files for each language. The SMS file IBM provide (IBM SPSS Statistics 20.sms) lists the various MST options, pick the relevant option for your location.

To run the activator, we just need to run from the install directory licenseactivator.exe followed by the activation code

Unattended install with Activation code

<packages> 
	<package
	     id="spss"
	     name="SPSS"
	     revision="20.0.0.0"
	     reboot="false"
	     priority="15">
            <variable name="code" value="code-here" />
	     <check type="uninstall" condition="exists" path="IBM SPSS Statistics 20" />
	     <install cmd='msiexec /i "%SOFTWARE%\spss\20\IBM SPSS Statistics 20.msi" AUTHCODE="%code%" COMPANYNAME="" TRANSFORMS="%SOFTWARE%\spss\20\1033.mst" /qn' />

	     <install cmd='"%PROGRAMFILES% (x86)\IBM\SPSS\Statistics\20\licenseactivator.exe" %code%'/>

	     <upgrade cmd='msiexec /i "%SOFTWARE%\spss\20\IBM SPSS Statistics 20.msi" AUTHCODE="%code%" COMPANYNAME="" TRANSFORMS="%SOFTWARE%\spss\20\1033.mst" /qn' />
	     <upgrade cmd='"%PROGRAMFILES% (x86)\IBM\SPSS\Statistics\20\licenseactivator.exe" %code%'/>



	     <remove  cmd='MsiExec.exe /X{2AF8017B-E503-408F-AACE-8A335452CAD2} /qn ALLUSERS=1 REMOVE="ALL" ' />

	 </package>
</packages>