Microsoft Windows installation variables
Overview
A list and explanation of the variables available for an Installation on Microsoft Windows.
config-all.conf (single machine mode)
| Variable | Description |
|---|---|
IMAGING_SERVICES_HOSTNAME |
Updated in ≥ 3.6.7-funcrel
Defines the “public” hostname (FQDN - fully qualified domain name) for the current machine to allow users to access CAST Imaging over the internal network. For example, imaging.corp.domain.com. If you do not intend to access the installed UI from remote devices in your network (i.e. you will be accessing it from the same machine it is installed on), then you can leave this variable set to localhost. This variable was called PUBLIC_URL in releases before 3.6.7-funcrel. |
HOSTNAME_xxx |
Defines the hostname for communication between specific CAST Imaging services. These variables can be updated to the current machine’s “public” hostname (FQDN - fully qualified domain name), or you can leave these variables at the default localhost since all communication is within the same machine. Whichever you choose, all variables must use the same type, i.e. all must use localhost or all must use the FQDN. |
ANALYSIS_NODE_HOSTNAME |
Defines the hostname for your analysis-node service. This variable can be updated to the current machine’s “public” hostname (FQDN - fully qualified domain name), or you can leave this variable at the default localhost since all communication is within the same machine. |
PORT_xxx or xxx_PORT |
Defines the TCP port number for each CAST Imaging service. These variables can be customized, or you can leave these variables at the default. |
CSS_INFOS |
Details of your local or remote PostgreSQL instance in the format HOSTNAME:PORT, e.g. the FQDN or hostname such as css.corp.domain.com:2284. This instance will be used to store the persistence schemas control_panel and keycloak in the postgres database (by default but can be modified). It will also be automatically added as a data storage target for analysis data in the Database Connection List. Only use localhost:PORT if your PostgreSQL instance is installed on the SAME machine as ALL other components. See also Database requirements. |
CSS_USER and CSS_PASSWORD |
Credentials (username/password) for your PostgreSQL instance defined via CSS_INFOS. These fields will be prepopulated with the default operator/CastAIP credentials. Note that if you do not want the password in plain text in the configuration file for security reasons, leave the CSS_PASSWORD entry blank and you will be prompted for the password during the installation process. If you are using credentials other than the default prepopulated values, then you should enter them and replace the default values. In this specific situation (custom credentials), you will ALSO need to enter your custom password in encrypted form using the CSS_ENCRYPTED_PASSWORD field (see below). |
CSS_ENCRYPTED_PASSWORD |
This variable is specifically and ONLY for use when your target PostgreSQL instance is configured with credentials (either username and/or password) other than the default operator/CastAIP. If this is the case, you should enter the custom username under CSS_USER, the unencrypted custom password under CSS_PASSWORD (you can leave the variable blank and fill in during the installation when prompted if necessary) and you should finally enter an encrypted version of the same password as used for CSS_PASSWORD in CSS_ENCRYPTED_PASSWORD. To encrypt the password use the imaging-encryption-tool.bat tool located in the tools folder in the unzipped installation media. |
CSS_SSL_ENABLED |
Set this option to true if your target PostgreSQL instance defined by CSS_INFOS is functioning in encrypted TLS mode. Setting this to true ensures that the installer can interact with the encrypted database instance. It also means you must supply values for the following: CSS_SSL_MODE, CSS_SSL_ROOT_CERT, CSS_SSL_CERT, CSS_SSL_KEY, CSS_SSL_KEY_PEM, CSS_INI_FILE_PATH. You can find out more about encrypted modes for your databases instance in Configuring and using an encrypted database instance and Installing or updating CAST Imaging with certificate-based database authentication. |
CSS_SSL_MODE |
One of disable, allow, prefer, require, verify-ca, verify-full. More details about this setting can be found in the PostgreSQL SSL support documentation . This variable will match the PostgreSQL parameter PGSSLMODE. |
CSS_SSL_ROOT_CERT |
The full path to root.crt file on the local file system. This variable will match the PostgreSQL SSL parameter PGSSLROOTCERT. See Generate certificates and keys. |
CSS_SSL_CERT |
The full path to client.crt file on the local file system. This variable will match the PostgreSQL SSL parameter PGSSLCERT. See Generate certificates and keys. |
CSS_SSL_KEY |
The full path to client.key file on the local file system. This variable will match the PostgreSQL SSL parameter PGSSLKEY. See Generate certificates and keys. |
CSS_SSL_KEY_PEM |
The full path to client.pem.pk8 file on the local file system for JDBC connections. See Generate certificates and keys. |
CSS_INI_FILE_PATH |
The full path to the .ini file containing information about the target PostgreSQL instance. See Configuring and using an encrypted database instance and Installing or updating CAST Imaging with certificate-based database authentication. |
V3_DB_NAME |
The database you would like to use to store the control-panel persistence schema (postgres or other custom database). See also Database requirements. |
KEYCLOAK_DB |
The name of the database you would like to use to store the CAST Imaging authentication system (Keycloak) persistence schema (keycloak). See also Database requirements. Note that in previous releases (3.5.3-funcrel and earlier), this variable was set to keycloak_v3 by default which created a database called keycloak_v3 and used the public schema for tables etc. |
KEYCLOAK_LOGIN_ADMIN_USER |
Available in ≥ 3.6.0-funcrel
Defines the username for the Keycloak UI login admin user. Default value: kcadmin. The default password for this account is admin, however this is temporary - on first login to the Keycloak UI, the user will be prompted to change it. Can be set during a fresh installation only. See Keycloak accounts and passwords. |
INSTALL_DIR |
Root installation location for this installer, e.g. C:\Program Files\CAST\Imaging. If the chosen path is anything other than C:\Program Files, it must not contain any white space. |
DATA_DIR |
Sets the installation data folder (avoid using a network drive (even mapped)). A default data folder will be assigned if you do not provide a value here, as follows:
|
AIP_INSTALLDIR |
CAST Imaging Core component installation location (i.e. where CAST Imaging Core is installed on the local machine) e.g: C:\Program Files\CAST\8.4. |
DELETE_ADDITIONAL_DATA_FOLDERS |
Set to true if you would like the installer to delete the contents of the folders defined by the options SHARED_FOLDER, DELIVERY_FOLDER and DEPLOY_FOLDER (this is recommended when you want to perform a clean install and you want to re-use the same folders). If the option is set to false (default) then these folders will not be deleted and will be re-used during the installation. |
SHARED_FOLDER, DELIVERY_FOLDER, DEPLOY_FOLDER |
Details of the folder paths for analysis data storage for each node (each path must be distinct). In a single machine installation scenario (all components on one single machine) and you do not intend to add additional nodes in the future, these paths can point to local paths on the machine itself. If no value is assigned, the default paths will be used: C:\cast-node\common-data, C:\cast-node\delivery and C:\cast-node\deploy. See also Microsoft Windows file storage locations and Software requirements for more information about the user account required to run the Microsoft Windows Services when using share network folders. |
SOURCES_FOLDER_LOCATION |
Optional (only available for single machine/standalone installations): auto configures a path to your application source code for delivery purposes. See Configuring source code delivery from a folder. This path will be checked for validity during the installation - if it is not accessible it is logged in the installation log and will not be configured. |
INSTANCE_ID |
This variable determines how the name of the Node Service is displayed in CAST Imaging in Services. If you make no change, the default is used: MACHINE_HOSTNAME:8099. |
USE_IPADDRESS |
This variable is set to false by default and should be left in this position for standalone installations (all on one machine) . Set to true if you are installing CAST Imaging on multiple machines (distributed/enterprise installation) or you are adding additional nodes to an initial installation all on one machine. |
XXX_START_AS_USER and XXX_START_AS_PASSWORD |
These variables determine the user account used to run the Microsoft Windows services. Leave both empty to run a service as LocalSystem (the default). Populate XXX_START_AS_USER in the format DOMAIN\USERNAME to run it under a dedicated account instead. Where the matching XXX_START_AS_PASSWORD is also populated, the installer configures the service without prompting; where it is left empty, the installer prompts for the password during the installation or update. The password is not retained: it is held in encrypted form only until the service has been configured and is then deleted, and it is masked in the installation logs. You are therefore prompted again on each update unless the variable is populated, so populate it for an unattended update, otherwise the update stops and waits at the prompt. CAST recommends leaving it empty where the file is shared with others. See also Software requirements. |
CONTROL_PANEL_START_AS_USER and CONTROL_PANEL_START_AS_PASSWORD |
Available in ≥ 3.6.8-funcrel
Determines the user account used to run the CAST Imaging Control Panel Microsoft Windows service. Leave both variables empty to run the service as LocalSystem (the default). Populate CONTROL_PANEL_START_AS_USER in the format DOMAIN\USERNAME to run it under a dedicated account instead - this is required when the Control Panel needs to reach a mapped network drive, because a mapped drive is visible only to the account that mapped it and is therefore invisible to LocalSystem. CONTROL_PANEL_START_AS_PASSWORD is handled in the same way as the other XXX_START_AS_PASSWORD variables described above, and the password is masked as ****** in the installation logs. The account requires the Windows Log on as a service right, together with access to the installation folder, the data folder and the network drives the Control Panel uses. Passwords can contain spaces and the special characters ! % & ^ = ' $ ( ) < > |. A double quote (") is not supported, nor is a password that starts with =: leave the variable empty and type the password when you are prompted for it. |
LICENSE_KEY |
Optional: The global license key (Contributing Developers) in plain text. This will avoid the need to provide this key during the initial start-up of the imaging-services component. Note that if you intend to use Named Application license keys, do not use this variable (you will need to choose the Named Application option in the initial configuration wizard). |
EXTEND_API_KEY |
Optional: The Extend API key in encrypted format. To encrypt the key use the imaging-encryption-tool.bat tool (requires an installation of Java) located in the tools folder in the unzipped global installer folder. This will avoid the need to provide this key during the initial start-up of the imaging-services component. |
Best practice for database naming: use only lowercase letters (a-z), numbers (0-9), and underscores (_) for the database names (V3_DB_NAME and KEYCLOAK_DB) - for example app_db, orders_v2, or reporting_prod. Avoid hyphens (customer-db), spaces (customer db), mixed case (CustomerDB), and other special characters (customer$db). PostgreSQL folds unquoted identifiers to lowercase and requires quoting for these characters, which can prevent CAST Imaging services (including SSO) from starting correctly.
There is no Microsoft Windows equivalent of the KEYCLOAK_SERVICE_ACCOUNT_PASSWORD variable available for Linux via Docker/Podman deployments, so the password for the Keycloak admin internal service account cannot be set during a Microsoft Windows installation. It remains admin after a fresh installation, including in 3.6.6-funcrel and later where Linux via Docker/Podman and Kubernetes deployments generate a random password. CAST recommends changing it once the installation is running - see Keycloak accounts and passwords.
config-imaging-services.conf (distributed / read-only modes)
| Variable | Description |
|---|---|
IMAGING_SERVICES_HOSTNAME |
Updated in ≥ 3.6.7-funcrel
Defines the “public” hostname (FQDN - fully qualified domain name) for the current machine to allow users to access CAST Imaging over the internal network. For example, imaging.corp.domain.com. This variable must always be updated to the current machine’s “public” hostname (FQDN - fully qualified domain name). This variable was called PUBLIC_URL in releases before 3.6.7-funcrel. |
HOSTNAME_xxx |
Defines the hostnames for the imaging-services services. All these variables must be identical within the file, must always be updated to the current machine’s “public” hostname (FQDN - fully qualified domain name) and must be identical to IMAGING_SERVICES_HOSTNAME. |
PORT_xxx |
Defines the TCP port number for the imaging-services services. These variables can be customized, or you can leave these variables at the default. |
CSS_INFOS |
Details of your local or remote PostgreSQL instance in the format HOSTNAME:PORT, e.g. the FQDN or hostname such as css.corp.domain.com:2284. This instance will be used to store the persistence schemas control_panel and keycloak in the postgres database (by default but can be modified). It will also be automatically added as a data storage target for analysis data in the Database Connection List. Only use localhost:PORT if your PostgreSQL instance is installed on the SAME machine as ALL other components. See also Database requirements. |
CSS_USER and CSS_PASSWORD |
See description above. |
CSS_SSL_ENABLED |
See description above. |
CSS_SSL_MODE |
See description above. |
CSS_SSL_ROOT_CERT |
See description above. |
CSS_SSL_CERT |
See description above. |
CSS_SSL_KEY |
See description above. |
CSS_SSL_KEY_PEM |
See description above. |
CSS_INI_FILE_PATH |
See description above. |
CSS_ENCRYPTED_PASSWORD |
See description above. |
V3_DB_NAME |
See description above. |
KEYCLOAK_DB |
See description above. |
KEYCLOAK_LOGIN_ADMIN_USER |
See description above. |
SECURED_CONNECTION |
Used for the health check actioned at the end of the component installation process to check that the component is “up” and running. For an initial installation of this component where HTTPS has not yet been enabled, this option must be set to false. If you subsequently enable HTTPS and are performing a component update to a new release, this variable must be changed to true. |
INSTALL_DIR |
See description above |
DATA_DIR |
See description above |
SHARED_FOLDER, DELIVERY_FOLDER, DEPLOY_FOLDER |
Details of the folder paths for analysis data storage for each node (each path must be distinct). In an enterprise/distributed deployment, a mapped network share drive or a UNC path of the network share must be used, for example: \\server\imaging\shared etc., so that all nodes can access common data. If no value is assigned, the default paths will be used: C:\cast-node\common-data, C:\cast-node\delivery and C:\cast-node\deploy and then these must be shared across the network. See also Microsoft Windows file storage locations and Software requirements for more information about the user account required to run the Microsoft Windows Services when using shared network folders. |
SOURCES_FOLDER_LOCATION |
See description above. |
XXX_START_AS_USER and XXX_START_AS_PASSWORD |
See description above. |
CONTROL_PANEL_START_AS_USER and CONTROL_PANEL_START_AS_PASSWORD |
Available in ≥ 3.6.8-funcrel
See description above. |
LICENSE_KEY |
See description above. |
EXTEND_API_KEY |
See description above. |
config-analysis-node.conf (distributed / read-only modes)
| Variable | Description |
|---|---|
HOST_HOSTNAME |
Defines the hostname for the analysis-node service. This variable must always be updated to the current machine’s “public” hostname (FQDN - fully qualified domain name) and must be identical to ANALYSIS_NODE_HOSTNAME. |
PORT_ANALYSIS_NODE |
Defines the TCP port number for the service. This variable can be customized, or you can leave it at the default. |
ANALYSIS_NODE_HOSTNAME |
Updated in ≥ 3.6.7-funcrel
Defines the “public” hostname (FQDN - fully qualified domain name) for the current machine. For example, imaging.corp.domain.com. This variable must always be updated to the current machine’s “public” hostname (FQDN - fully qualified domain name) and must be identical to HOST_HOSTNAME. This variable was called PUBLIC_URL in releases before 3.6.7-funcrel. |
CSS_INFOS |
Details of your local or remote PostgreSQL instance in the format HOSTNAME:PORT, e.g. the FQDN or hostname such as css.corp.domain.com:2284. This instance will be used to store the persistence schemas control_panel and keycloak in the postgres database (by default but can be modified). It will also be automatically added as a data storage target for analysis data in the Database Connection List. Only use localhost:PORT if your PostgreSQL instance is installed on the SAME machine as ALL other components. See also Database requirements. |
CSS_USER and CSS_PASSWORD |
See description above. |
CSS_SSL_ENABLED |
See description above. |
CSS_SSL_MODE |
See description above. |
CSS_SSL_ROOT_CERT |
See description above. |
CSS_SSL_CERT |
See description above. |
CSS_SSL_KEY |
See description above. |
CSS_SSL_KEY_PEM |
See description above. |
CSS_INI_FILE_PATH |
See description above. |
V3_DB_NAME |
See description above. |
HOSTNAME_xxx |
Defines the hostname for communication from the node service to the specific imaging-services services. These variables must always be updated to the “public” hostname (FQDN - fully qualified domain name) of the machine hosting the imaging-services component (to match the IMAGING_SERVICES_HOSTNAME defined in the config-imaging-services.conf or config-all.conf files) so that the Node can access the required services over the internal network. |
PORT_xxx |
Defines the TCP port numbers for communication from the dashboards service to the specific imaging-services services. These port numbers must match the same variable defined in the config-imaging-services.conf file or config-all.conf file. |
SECURED_CONNECTION |
Used for the health check actioned at the end of the component installation process to check that the component is “up” and running. For an initial installation of this component where HTTPS has not yet been enabled, this option must be set to false. If you subsequently enable HTTPS and are installing an additional node or you are performing a component update to a new release, this variable must be changed to true. |
INSTALL_DIR |
See description above |
DATA_DIR |
See description above |
AIP_INSTALLDIR |
See description above |
DELETE_ADDITIONAL_DATA_FOLDERS |
Set to true if you would like the installer to delete the content of the folders defined by the options SHARED_FOLDER, DELIVERY_FOLDER and DEPLOY_FOLDER in the config-imaging-services.conf or config-all.conf files (this is recommended when you want to perform a clean install). If the option is set to false(default) then these folders will not be deleted and will be re-used during the installation. |
INSTANCE_ID |
See description above |
USE_IPADDRESS |
This variable is set to false by default and should be set to true if you are installing CAST Imaging on multiple machines (distributed/enterprise installation) or you are adding additional nodes to an initial installation all on one machine. |
XXX_START_AS_USER and XXX_START_AS_PASSWORD |
See description above. |
config-imaging-viewer.conf (distributed / read-only modes)
| Variable | Description |
|---|---|
HOSTNAME_VIEWER |
Defines the hostname for imaging-viewer service. This variable must always be updated to the current machine’s “public” hostname (FQDN - fully qualified domain name). |
HOSTNAME_CONTROL_PANEL |
Defines the hostname for communication from the imaging-viewer service to the specific imaging-services services, therefore this variable must always be updated to the “public” hostname (FQDN - fully qualified domain name) of the machine hosting the imaging-services component (to match the IMAGING_SERVICES_HOSTNAME defined in the config-imaging-services.conf file) so that the imaging-viewer service can access the required services over the internal network. |
PORT_CONTROL_PANEL |
Defines the TCP port number for communication from the imaging-viewer service to the Control Panel. It must match the same variable defined in the config-imaging-services.conf file. |
INSTALL_DIR |
See description above |
DATA_DIR |
See description above |
All other PORT options |
These determine the running port for the various imaging-viewer services. CAST recommends these are left at their default. |
config-dashboards.conf (distributed / read-only modes)
| Variable | Description |
|---|---|
HOST_HOSTNAME |
Defines the hostname for the dashboards service. This variable must always be updated to the current machine’s “public” hostname (FQDN - fully qualified domain name). |
PORT_DASHBOARDS |
Defines the TCP port number for the service. This variable can be customized, or you can leave it at the default. |
DASHBOARDS_START_AS_USER and DASHBOARDS_START_AS_PASSWORD |
See description above. |
INSTALL_DIR |
See description above |
DATA_DIR |
See description above |
HOSTNAME_AUTH_SERVICE, HOSTNAME_CONTROL_PANEL, HOSTNAME_CONSOLE and HOSTNAME_GATEWAY |
Defines the hostname for communication from the dashboards service to the specific imaging-services services, therefore these variables must always be updated to the “public” hostname (FQDN - fully qualified domain name) of the machine hosting the imaging-services component (to match the IMAGING_SERVICES_HOSTNAME defined in the config-imaging-services.conf file) so that the dashboards service can access the required services over the internal network. |
PORT_AUTH_SERVICE, PORT_CONTROL_PANEL, PORT_CONSOLE and PORT_GATEWAY |
Defines the TCP port numbers for communication from the dashboards service to the specific imaging-services services. These port numbers must match the same variables defined in the config-imaging-services.conf file. |
V3_DB_NAME |
Must match the same variable defined in the config-imaging-services.conf file. See description above |