Understanding the Statistica StatOpts.xml file hierarchy

Understanding the Statistica StatOpts.xml file hierarchy

book

Article ID: KB0082154

calendar_today

Updated On:

Products Versions
Spotfire Statistica 12.0 and above.

Description

 How does Statistica determine which StatOpts.xml file will be used?

 

Issue/Introduction

This article discusses how the Statistica StatOpts.xml file hierarchy works.

Environment

Windows operating systems only.

Resolution

Statistica does the following checks, in order, to determine which StatOpts.xml file will be used:
 
1. The Statistica directory that contains statist.exe also contains a StatOpts.xml. If that file has contains a line that says “<StatOpts CreateMachineStore="1"/>”, then Statistica will look for the StatOpts.xml for the machine, described in item 2 below. Otherwise, the StatOpts.xml file described in this item will be used.
 
2. The StatOpts.xml for the machine will be stored in the following directory on Windows 7:
C:\Users\All Users\StatSoft\Statistica\. It may vary depending on the version of Windows. If that file has a line that says “<Initial Description="Initial User Configuration" CreateUserStore="1">”, then Statistica will look for the StatOpts.xml for the user, described in item 3 below. Otherwise, the StatOpts.xml file described in this item will be used.
 
3. The StatOpts.xml will be stored in the following directory on Windows 7:
C:\.......\AppData\Roaming\StatSoft\STATISTCA\13.0.0.0.1033\. It may vary depending on the version of Windows. If Statistica has checked the other StatOpts.xml files described in the previous 2 items, and got to this point where it checks the StatOpts.xml file, then this user-specific StatOpts.xml will be used.
 
So, for example, the desired StatOpts.xml file is in the Statistica directory which contains statist.exe, then change the line in that StatOpts.xml file that says “<StatOpts CreateMachineStore="1"/>” to be “<StatOpts/>”.
 
Also, run Statistica with elevated permissions in order to allow Statistica to save the changes to the StatOpts.xml file in the Statistica directory that contains statist.exe.
 
To propagate a given StatOpts.xml file for all users:
1. Copy that desired StatOpts.xml file to the STATISTICA directory on the server, and re-name it to DefOpts.xml.
2. Delete all other users StatOpts.xml files. The next time a user starts and then exits Statistica, the settings from the DefOpts.xml file will be saved as that user’s new StatOpts.xml file.
 
This can also be done via registry setting:

DISCLAIMER : Tibco Support does not provide support for problems that arise from improper modification of the registry. The Windows registry contains information critical to your computer and applications. Make sure you back up the registry before modifying it. For more information on the Windows Registry Editor and how to back up and restore it, refer to Microsoft Article ID 256986

The registry entry which allows the use of the same StatOpts.xml file for all users every time they start:
 
Specify the parent directory of the StatOpts.xml adding a String value “ConfigPath” to the HKLM\Software\Classes\STATISTICA.Application key. The value is the parent directory of the StatOpts.xml file. 
 
The following REG file snippet will set this path to “C:\Enterprise\”. 
 
Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\STATISTICA.Application]
"ConfigPath"="c:\\Enterprise\\"
 
 
In addition to the registry setting, create a short cut that starts statist.exe with command line that specifies the full path to the statopts.xml: 
 
                statist.exe -statopts="c:\Enterprise\StatOpts.xml"
 
The command-line parameter forces the system to use this StatOpts.xml file regardless of user permissions or read/write for the file. 
 
The registry entry will supply the value for WebStatistica where you cannot provide command-line parameters.