|
<< Click to Display Table of Contents >> Navigation: 7. Introduction to the Databases > 7.5 Registry Settings |
Registry Settings
The installation program creates the registry keys and initial values required by MassTrack. During use, the application reads these settings and updates selected values, such as the SQL Server and login defaults.
Registry values normally do not need to be created or edited manually. Use the application’s settings windows for supported changes. Most project options are stored in the database rather than in the registry.
Machine settings
The application uses the following registry location:
HKEY_LOCAL_MACHINE\SOFTWARE\BAS engineering\ShipWeight\7.0
The names ShipWeight and 7.0 are retained for compatibility. They do not indicate the installed product version.
Database connection
The Database subkey contains these active connection settings:
Value |
Description |
ServerName |
SQL Server instance used when initializing the connection, for example SERVER\INSTANCE. |
ShipDB |
Name of the historical database. This is separate from the database containing the current project. |
The installation supplies initial values. The application can subsequently update them when connection settings change.
The server and databases must exist and be accessible to the selected account. Changing a registry value does not create a database or grant access.
Login defaults
The following settings are used by the Logon window:
Subkey |
Value |
Description |
AsbuiltWeight\User |
Name |
Previously stored user name. The supplied installation configuration initially sets this to Administrator. |
AsbuiltWeight\Authentication |
Type |
Stored authentication selection, read and updated by the application. |
Corresponding DesignWeight paths are used by the Design workflow.
Use the Logon window to select authentication and user information. Stored defaults do not grant access; the applicable permissions still apply.
Microsoft Entra configuration
Installations configured for Microsoft Entra authentication use the Entra subkey:
Value |
Description |
TenantId |
Identifier of the configured Microsoft Entra tenant. |
ClientId |
Application client identifier used by the authentication integration. |
These values are specific to the organisation’s Entra configuration and must be supplied by its administrator.
Personal settings
Personal settings are stored under HKEY_CURRENT_USER, beneath the application’s profile branch. For example, the supplied ShipWeight Enterprise installation uses:
HKEY_CURRENT_USER\Software\BAS engineering\ShipWeight\7.0\ShipWeight Enterprise
The profile name can depend on the installed product. Settings include recent projects, the last selected system, startup choices and main-window position.
These settings belong to the signed-in Windows user. They are separate from machine-wide connection settings and project options stored in the database.
Legacy and compatibility values
The installation may also create values retained from earlier versions. Their presence does not necessarily mean that they control the current application.
Values |
Current desktop behaviour |
Database\AsBuiltDB and Database\DatabaseType |
Still read during initialization. Although their returned values are not used further by that routine, missing values can produce messages. Retain them until the corresponding compatibility handling is changed. |
Database\WeightDB and system-database names such as RigSysDB, SwbsSysDB, MaradSysDB and PBSSysDB |
May still be written by the application, while initialization uses names defined in the code. |
Database\DBLog |
Does not control current database logging. Use the application’s project options instead. |
Database\DesignDB and Database\UseSP |
No active reading of these registry values has been identified in the current desktop application. |
AsbuiltWeight\Database\AutoSave, SumStart, Unit, ExePath and Path |
Belong to an older settings-reading routine that is no longer called during normal startup. |
AsbuiltWeight\Database\HistDBPath |
Is not used as the current historical-database connection setting. Use Database\ServerName and Database\ShipDB. |
Some values are strings (REG_SZ); others, including the installation’s legacy AutoSave, SumStart and Unit values, are REG_DWORD. Do not change a value’s type based on its appearance.
These observations are not instructions to delete registry entries. Installation maintenance, older supported versions or other tools may have additional dependencies.
Changing settings
Use the Logon window and the application’s database settings for normal administration. If support requests a direct registry change, record or export the affected values first.
Close the application before changing startup settings. Reopen it afterwards and verify the SQL Server, historical database and authentication selection.