Silent Installation
CSense supports a silent installation from the command line. An INI file is used to configure the installation options and is specified as a command line argument to the installer.
The INI file must be in the following format:
[SetupValues]
<Parameter1>=<value1>
<Parameter2>=<value2>
Silent install is run from an Administrator command line using the following format:
start /wait Setup.exe “/S:<path to .ini file>”
The INI file supports the following parameters:
Parameter Name |
Default |
Description |
%ExpressInstall% |
1 |
“1” for Express installation or “0” for Advanced Installation. |
%AppFolder% |
C:\Program Files\Proficy\Proficy CSense |
Installation Folder. |
%CacheFolder% |
C:\Proficy CSense Cache |
Cache Folder. |
%DatabaseServer% |
(local) |
Location of the SQL Database Server that must be used. Ignored when %ExpressInstall% is “1”. |
%InstallDataServer% |
1 |
“1” if the CSense Data Server component must be installed or “0” if the CSense Data Server must not be installed. |
%InstallApplicationServer% |
1 |
“1” If the CSense Application Server must be installed or “0” if the CSense Application Server must not be installed. |
%CustomServicesAccount% |
0 |
“1” If the CSense Services must be installed to a custom account. If set to “0” then the Local System Account is used for services. |
%ServicesUser% |
|
The account that must be used for services if the %CustomServicesAccount% is set to “1”. |
%ServicesPassword% |
|
The password for the %ServicesUser% if the %CustomServicesAccount% is set to “1”. |
If the %ExpressInstall% parameter is set to “1” then only the following parameters will be respected and the rest of the parameters from the INI file will be ignored, and their default values as specified will be used:
-
%AppFolder%
-
%CacheFolder%
If the %ExpressInstall% parameter is set to “0” and %InstallDataServer% is “1” then the following parameters will be used:
-
%DatabaseServer%
If the %ExpressInstall% parameter is set to “0” and %InstallApplicationServer% is “1” then the following parameters will be used:
-
%AppFolder%
-
%CacheFolder%
-
%DatabaseServer%
-
%CustomServicesAccount%
-
%ServicesUser% (if %CustomServicesAccount% is “1”)
-
%ServicesPassword% (if %CustomServicesAccount% is “1”)
Any parameter not specified or left empty will use the default value.
When specifying a %CustomServicesAccount% and the user is a domain user, the domain credentials information must be specified in either User Principal Name (UPN) format or Down-Level Logon Name format.
Example of Express Install into custom locations
.ini file name: SilentInstallExpress.ini
.ini file contents:
[SetupValues]
%ExpressInstall%=1
%AppFolder%=C:\CSense Install
%CacheFolder%=C:\CSense Cache
Command
start /wait Setup.exe “/S:C:\SilentInstallExpress.ini”
Example of Advanced Install (installing only the CSense Data Server to the local SQL Database Server)
.ini file name: SilentInstallDataServer.ini
.ini file contents:
[SetupValues]
%ExpressInstall%=0
%InstallDataServer%=1
%InstallApplicationServer%=0
Command
start /wait Setup.exe “/S:C:\DataServer.ini”
Related topics: