How to perform a silent uninstall of Spotfire Statistica

How to perform a silent uninstall of Spotfire Statistica

book

Article ID: KB0070193

calendar_today

Updated On:

Products Versions
Spotfire Statistica 14.0 and higher

Description

This article provides the details of using the msiexec command with the Statistica.msi file or using the Statistica Product Code to silently uninstall any Statistica 14 version.

Environment

OS: Windows

Resolution

Silent Uninstall via command line 



Method 1:  Using MSIEXEC with Statistica.msi

A previous installation can be uninstalled by using the following command-line:
 
msiexec /uninstall "<path to Statistica.msi>"

The parameter must specify the location to the original MSI file.  For example, the path to the msi file is below:

Installer path and msi file

Add the /qn switch to uninstall silently:   
 
msiexec /uninstall "C:\users\administrator\Desktop\Installer64\Statistica.msi" /qn

To also add logging to the silent uninstall: 

msiexec.exe /uninstall "C:\users\administrator\Desktop\Installer64\Statistica.msi" /qn /l*v c:\temp\Statistica_uninstall.log
 
Note:  The location of the path must exist and the file name provided in the command.  


METHOD 2:  Using the Product Code

The location of the Product Code is found in the registry here:  HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall
The correct code is found by inspecting the details of registry entries.  For example, the Statistica version 14.1 Product Code was found by inspecting the entries under the Uninstall folder.  When the DisplayName and DisplayVersion show Statistica and the version, respectively, the corresponding Product Code is for 14.1: 

14.1 install code registry entry

Here are the product codes and commands for silent install with logging for each version of Statistica 14:
 
Statistica Version Product Code Command with logging
14.0 {288AA1C9-F29A-4A05-AA6B-49FF160350EA} msiexec.exe /uninstall {288AA1C9-F29A-4A05-AA6B-49FF160350EA} /qn /l*v c:\temp\Statistica_uninstall.log
14.0.1 {288AA1C9-F29A-4A05-AA6B-49FF160350EA} MsiExec.exe /uninstall {288AA1C9-F29A-4A05-AA6B-49FF160350EA} /qn /l*v c:\temp\Statistica_uninstall.log
14.1 {61C557B3-788C-4480-A657-ECF16DB45FBA} msiexec.exe /uninstall {61C557B3-788C-4480-A657-ECF16DB45FBA} /qn /l*v c:\temp\Statistica_uninstall.log
14.2 {BE0BEF3C-9D7C-4471-BB2E-03C5C2F906B8} msiexec.exe /uninstall {BE0BEF3C-9D7C-4471-BB2E-03C5C2F906B8} /qn /l*v c:\temp\Statistica_uninstall.log

A Windows Batch Script Example

A simple Windows Batch Script can be used to run the command:

Windows Batch Script

Use of automated applications are known to work with the commands above.  For example, the Microsoft System Center Configuration Manager ( https://learn.microsoft.com/en-us/mem/configmgr/core/understand/introduction). 

Issue/Introduction

Silent install command and windows batch file script for Spotfire Statistica 14.0 and higher

Additional Information

https://support.tibco.com/s/article/How-to-perform-silent-installation-of-Statistica
https://www.advancedinstaller.com/how-to-uninstall-msi-package.html