How to perform silent installation of Statistica?

How to perform silent installation of Statistica?

book

Article ID: KB0070770

calendar_today

Updated On:

Products Versions
Spotfire Statistica 13.0 through 13.5

Description

What are the steps to configure a silent installation?

Desktop and Workstation/client installs can be deployed silently.  Server installs cannot be deployed silently.  
The following Statistica products can be deployed silently:

  • Stand-alone Desktop (32-bit and 64-bit)
  • Concurrent Network License Workstation (32-bit and 64-bit)
  • Statistica Server/Enterprise Workstation (32-bit and 64-bit)
Note that Workstation/client installs with Domain-Based Registration (DBR) can be deployed silently but the same is not true for the server part of the install.  Please note that DBR installs are now legacy installs beginning May 2018 as DBR installation keys have been discontinued.  
 

Issue/Introduction

This article discusses the silent installation steps for both server-client and desktop installs.

Environment

Windows operating systems only.

Resolution

Prerequisites:
Internet Explorer 7 or later must be installed prior to using the Statistica MSI Installer.  See all of the prerequisites here: 
For Versions 13.0 - 13.5  - https://docs.tibco.com/pub/stat/13.5.0/doc/pdf/TIB_stat_13.5_installation.pdf?id=2
For Version 13. 6 - https://docs.tibco.com/pub/stat/13.6.0/doc/pdf/TIB_stat_13.6_installation.pdf?id=0


User interface Switches

You can control the extent of User Interface(UI) you see during the install process by using various switches. UI options include:
  • /qn            No user interface (completely silent mode). This can also be specified as /quiet
  • /qr             Reduced user interface with a modal dialog box displayed for successful registration
  • /qf             Full user interface. This is the default if no user interface options are specified
  • /passive    Passive user interface with a progress bar to indicate that an installation is in progress



Install properties

The following properties can be defined for installs:

Required Installation Codes (Single-User only):
SERIALNUMBER        TIBCO-supplied Serial Number
PRODUCTKEY            TIBCO-supplied Product Key
INSTALLCODE            TIBCO-supplied Install Code

Required User Registration Information (Single-User only):
REG_FIRSTNAME        User First Name
REG_LASTNAME         User Last Name
REG_COMPANY           Company Name
REG_TITLE                   User Title
REG_ADDRESS            Address
REG_CITY                     City
REG_COUNTRY           Country
Uses the full country name and is case sensitive. (e.g., ‘Germany’ or ‘United States’)
REG_STATE                  State

NOTE : This is the two-letter state/province abbreviations for the United States and Canada (e.g., 'TX' or 'ON', for Texas and Ontario). For all other countries, the full name is used. This property is also case sensitive. For the United States, Canada, France, and Australia, the state property must match one of the states from the drop-down box, or it will be reset. For all other countries, the state property can be any value.

REG_ZIP                 Zip/Postal Code
REG_PHONE          Phone Number
REG_EMAIL            Email Address First Field (needed for product registration)
REG_EMAIL2          Email Address Second Field (must match the first email address field)

Optional installation path (Single-User or Workstation):

INSTALLDIR              Installation directory;  if not supplied, defaults to C:\Program Files\Statistica\Statistica 13\  Certain installations may want to install to a non-default path such as E:\Statistica 13

Optional shortcut flag (Single-User or Workstation):

B_DESKTOP_SHORTCUT         When set to 1, a shortcut to Statistica is created on the “All Users” desktop.  When set to 0, no shortcut is created.  

Optional license manager shortcut flag (Workstation only):

INSTALLLICENSEMANAGER When set to 1, Concurrent License Manager shortcut to the Start Menu is enabled.  When set to 0, shortcut is not enabled. 

Optional server flag (Concurrent Network License with Borrowing Workstation only):
NETWORKINSTALL      When set to 1, files are installed to run from the server.  When set to 0, files are copied locally. 

Optional legacy tools flag (Enterprise Local Workstation only):
INSTALLLEGACYTOOLS      When set to 1, Legacy Enterprise Tools (Historical Data Edit and Gage Setup) are installed on a local Enterprise workstation.  When set to 0, tools are not installed.  

Option log file
For detailed debugging, you can enable MSI logging with the /l <logfile> switch.  The following is an example of an silent install script using the msi with logging enabled:

msiexec /i "STATISTICA Academic 13.3.704.20 64-bit.msi" /qn B_DESKTOP_SHORTCUT=1 PRODUCTKEY=XXXXXXXXXXXXXXXXXXXX SERIALNUMBER=XXXXXXXXXXXXXXXXX REG_FIRSTNAME=FirstNameHere REG_LASTNAME=LastNameHere REG_TITLE=YourTitle REG_COMPANY="Company Name" REG_ADDRESS="Your Street Address" REG_CITY=YourCity REG_STATE="<2 character state>" REG_COUNTRY="Your Country" REG_ZIP=YourZip REG_PHONE=YourePhoneNumber REG_EMAIL=user@companyname.com REG_EMAIL2=user@companyname.com /l C:\stat13.log


Launching through setup.exe

Launching the msi directly through msiexec will not check for (or install) any prerequisites that may be missing. Thus, the prerequisites should be preinstalled, or the silent installation should be launched through setup.exe. Use the /s argument to run the setup.exe in silent mode and the /v argument to pass in all msi properties. MSI properties containing spaces should use quotes escaped by a backslash.

"setup.exe" /s /v"/qn B_DESKTOP_SHORTCUT=1 PRODUCTKEY=XXXXXXXXXXXXXXXXXXXX SERIALNUMBER=XXXXXXXXXXXXXXXXXX REG_FIRSTNAME=YouName REG_LASTNAME=YourLastName REG_TITLE=Title REG_COMPANY=\"Company Name\" REG_ADDRESS=\"YourAddress\" REG_CITY=YourCity REG_STATE=<2 character state> REG_COUNTRY=\"Your Country\" REG_ZIP=53190 REG_PHONE=XXX-XXX-XXXX REG_EMAIL=user@company.com REG_EMAIL2=user@company.com


Installing via the command line

Following are examples Single-User and Workstation silent installs.
Note that strings that include embedded spaces must be enclosed by double-quotes.


Single user

The Single-User silent install utilizes the user registration (REG_* properties) and key (PRODUCTKEY, INSTALLCODE, and SERIALNUMBER) properties. When performing a Single-User silent install, the installer will attempt to contact the registration server to register your software electronically during the install. If automatic registration is not possible, a temporary 14-day license file will be created instead.

This example uses the /qn switch (a completely silent install) and specifies a desktop shortcut. Note that address information containing spaces are enclosed by double-quotes.

msiexec /i "D:\Statistica 13.x.x.x.msi" /qn B_DESKTOP_SHORTCUT=1 PRODUCTKEY=XXXXXXXXX INSTALLCODE=XXXXXXX SERIALNUMBER=XXXXXXXXX REG_FIRSTNAME=John REG_LASTNAME=Doe REG_TITLE=Statistician REG_COMPANY="ACME Inc." REG_ADDRESS="2300 E 14th St" REG_CITY=Tulsa REG_STATE=OK REG_COUNTRY="United States" REG_ZIP=74104 REG_PHONE=918-749-1119 REG_EMAIL=user@company.com REG_EMAIL2=user@company.com

The same command launching through setup.exe to include prerequisite installation:

“D:\setup.exe” /s /v“/qn B_DESKTOP_SHORTCUT=1 PRODUCTKEY=XXXXXXXXX INSTALLCODE=XXXXXXX SERIALNUMBER=XXXXXXXXX REG_FIRSTNAME=John REG_LASTNAME=Doe REG_TITLE=Statistician REG_COMPANY=\"ACME Inc.\" REG_ADDRESS=\"2300 E 14th St\" REG_CITY=Tulsa REG_STATE=OK REG_COUNTRY=\"United States\" REG_ZIP=74104 REG_PHONE=918-749-1119 REG_EMAIL=user@company.com REG_EMAIL2=user@company.com"


Workstation

The Workstation silent installer excludes user registration and key information, which are part of the server install.
You can map a drive to the \Statistica 13\ folder on the server:
 

msiexec /i "D:\Workstation Installer 32\Statistica 13.x.x.x.msi" /qn


or


“D:\Workstation Installer 32\setup.exe” /s /v“/qn”

Alternatively, you can use the UNC path to the \Statistica 13\Workstation Installer 32\ folder on the server:
 

msiexec /i " \\ServerName\Statistica 13\Workstation Installer 32\Statistica 13.x.x.x.msi" /qn


or


“\\ServerName\Statistica 13\Workstation Installer 32\setup.exe” /s /v“/qn”

Note: You cannot map a drive directly to the Workstation Installer 32/ 64 directory.



Uninstalling via the command line

Here is an example Single-User silent uninstall.  Note that strings that include embedded spaces must be enclosed by double-quotes.
A previous installation can be uninstalled by using the following command-line:

msiexec /uninstall "D:\Statistica 13.4.0.14 64-bit.msi"


The parameter can either specify the original MSI file or the Product Code, which is a code associated with each release of Statistica. This code can be read from the registry by finding the Statistica program file entry from the registry key:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall

For example, here is a registry location of the Add/Remove program entry for Statistica:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\{HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{4db0b63f-7cc4-444a-a680-af16d612ff5b}}, where {4db0b63f-7cc4-444a-a680-af16d612ff5b} is the Product Code.

Product Code in Registry
 

The syntax to uninstall that version using the Produce Code is:

msiexec /uninstall {4db0b63f-7cc4-444a-a680-af16d612ff5b}

Products Codes for 13.3 and above
13.3 32bit:{16ccb290-e930-42c5-8684-ac7f9f453dd8} 64bit:{1927cafb-11d6-4e85-bcd8-72ce9cb88ee4}
13.3.1 32bit:{9ee704d3-8810-45c1-8f1d-c2c5cdfc8d0d} 64bit:{c7023dde-eafc-45ad-870e-0773d1b648a6}
13.4 32bit:{33c7fa2e-938e-4fd8-a00d-84be8381c9d2} 64bit: {d119ba8d-9b58-4b99-98a3-be14c9004349}
13.5 32bit (NoDW): {5ecfe967-5ec3-48b3-b7ff-fa08b194d6b3} 64bit (NoDW): {111147fa-6cb7-438f-b7ac-714c3f9ec395}
32bit (DW):{af671f3f-796d-4d63-864a-f719d121f2cd} 64bit (DW): {4db0b63f-7cc4-444a-a680-af16d612ff5b}