Customize SS.INI and SRCSAFE.INI Files

See Also

You can customize the SS.INI and SRCSAFE.INI files in two ways, either by using the options dialog boxes or a text editor.

Using Options Dialog boxes

You can set most SS.INI initialization variables directly in VSS in the Options dialog box on the Tools menu. Only administrators should set SRCSAFE.INI variables, using the VSS Administrator Options dialog box. When you use the Options dialog box, note that VSS saves your changes in memory, but does not write the changes to the file until you quit VSS or open a different database. Therefore, if you start a second VSS session before exiting the first, your changes are not yet in effect.

Using a Text Editor

You can read and modify initialization files with any text editor. There is a limit of 511 characters on an initialization file line, although this maximum may be restricted by specific variable requirements (such as project path limitations).

Location of SS.INI File

Usually, SS.INI is located in the Users subfolder of the folder in which VSS is installed, for example, SS\Users\Username. You can move your SS.INI file from this location, provided you tell VSS of the change by editing the Users.txt file appropriately (see your VSS administrator).

The SRCSAFE.INI file is usually placed in the main VSS folder of the server installation.

Note   Initialization variables set in SS.INI override settings in SRCSAFE.INI.

The Format

There are three kinds of lines in SS.INI and SRCSAFE.INI.

The order of variables inside an initialization file does not matter at all; however, the header under which a variable is placed matters a great deal. If a variable is placed under the wrong header for instance, if a general-purpose variable is placed under [Keyword Comments] it is ignored.

SS.INI on Multiple Platforms

If you are running a multi-platform VSS installation, you may want certain variables to have different values on the different platforms or on different computers. You can therefore place a platform or computer name in parentheses after the variable, to indicate that the variable applies only on that platform. For example:

Use_ReadOnly (WIN) = Yes
Comment_Editor (JOE1)= c:\MSOFFICE\WINWORD\WINWORD.EXE

The setting in the first example applies only under Microsoft Windows. The setting in the second example applies only to a computer named JOE1. Other possible settings include Win, UNIX, UI, CL, NT, MAC, and PC the last is a catchall for Intel operating systems.

Every variable in SRCSAFE.INI can be followed by a platform specifier, that is, a computer name, in parentheses. This specifier enables one variable to have different settings on different platforms. Not all variables recognize different computer names, but many do. Only 10 platform specifiers are allowed per user, or 10 per each SS.INI file.

Different versions of VSS look for different specifiers. For example, the VSS interface on a Windows NT computer looks for the platform specifiers in following order:

JOE1, NT, Win, PC, UI

This looks for a variable set for Joe's computer named JOE1; if it does not find that, it looks for Windows NT; then Win, then PC, then UI, and finally, for a variable with no platform specifier.

However, you can override this setting by setting the environment variable SSiniENV. For example:

Set SSiniENV = Ragiv, MS-DOS, PC, CL

Then VSS would look for variables specified for Ragiv before looking for MS-DOS, PC, CL, or no specifier. If the following two lines were in the SRCSAFE.INI:

Data_Path (Ragiv) = R:\SS\DATA
Data_Path (Kim) = R:\SS2\DATA

VSS would use the first setting and ignore the second. If SSiniENV were set to Kim, VSS would use the second string and ignore the first. Hence, by setting the SSiniENV variable appropriately, you can control which Data_Path variable VSS reads and which DATA folder is used.