Run.bat
The
Run.bat
file is used to start the installer. The following is a sample
Run.bat
file:msiexec /qn /i AtHocCorpDSW6.2.3.270.msi /l*vx AtHocCorpDSW6.2.3.270.log BASEURL=http://172.16.6.38/config/baseurl.asp PID=2050329 RUNAFTERINSTALL=Y DESKBAR=N TOOLBAR=N SILENT=N VALIDATECERT=N MANDATESSL=N UNINSTALLOPTION=Y
See the
msiexec
help for more information about the following part of the Run.bat
command line: msiexec /qn /i AtHocCorpDSW6.2.3.270.msi /l*vx AtHocCorpDSW6.2.3.270.log
The
/qn
switch specifies quiet mode with no UI. This switch overrides the SILENT property. If you rely on the SILENT property passed in the command line and do not include the /qn
switch, the installation dialog appears briefly while the Windows Installer processes the command line.The
/i
switch indicates “Install.”AtHocCorpDSW6.2.3.270.msi
is the name of the installer associated with the switch.The
/l*vx
switch specifies a verbose log.AtHocCorpDSW6.2.3.270.log
is the name of the file where logging output is written.The following table describes the other elements in the
run.bat
file.Element | Description |
---|---|
BASEURL | The URL that the desktop app should connect to. Required: YesFormat: http://<server_name_or_ip>/config/baseurl.asp Written to: HKLM/SOFTWARE/Wow6432Node/AtHoc[edition]/BASEURL |
PID | Provider ID. The organization that the desktop app should connect to. Required: YesFormat: http://<server_name_or_ip>/config/baseurl.asp Written to: HKLM/SOFTWARE/Wow6432Node/AtHoc[edition]/PROVIDER ID |
RUNAFTERINSTALL | Specifies if the desktop app should start when the installer completes the installation. This element cannot be used to prevent the desktop app from starting when the machine starts. The desktop app is always added to the list of applications that start when the machine starts. Required: NoValues: Y = Start after installation. N= Do not start after installation.Default: NWritten to: HKLM/SOFTWARE/Wow6432Node/AtHoc[edition]/RunAfterInstall There is no HKCU copy. Added to: HKLM/SOFTWARE/Wow6432Node/Microsoft/Windows/CurrentVersion/Run |
DESKBAR | Specifies if the Deskbar ( AtHoc[editionName]Desk.exe ) should run. The Deskbar is a toolbar that appears on the Windows desktop.The feature in the BlackBerry AtHoc management system that creates Deskbar menu options has been removed, so the Deskbar no longer has any use. This element was removed from the installer in release 6.2.x.27x. Required: NoValues: Y or NDefault: N |
TOOLBAR | Specifies whether or not the Toolbar ( AtHoc[editionName]TBr.dll ) should run. This is the toolbar that appears in Internet Explorer.The feature in the BlackBerry AtHoc management system that creates Toolbar menu options has been removed, so the Toolbar no longer has any use. This element was removed from the installer in release 6.2.x.27x. Required: NoValues: Y = Enabled. The user is prompted to allow or disable the toolbar when IE starts. The toolbar appears in the Manage add-ons dialog. N = Disabled. Default: Y |
SILENT | Specifies if the MSI user interface (UI) should be displayed to the user. Required: No Values: Y = Do not show the UI. N = Show the UI.If the SILENT value is set to Y, there is no UI. If SILENT is set to N, the BASEURL and PID parameters in the run.bat file are ignored.Default: N |
MANDATESSL | Specifies if the URLs used for Sign On, Check Update, and Get Update must use the HTTPS protocol. Required: NoValues: Y = URLs must use HTTPS. If they do not use HTTPS, the operation ends and logs the message "SSL required". N = URLs can use either HTTP or HTTPS. Default: NWritten to: HKLM/SOFTWARE/Wow6432Node/AtHoc[edition]/MandateSSL There is no HKCU copy. |
VALIDATECERT | Specifies if a valid certificate is required. Required: NoValues: Y = Certificates are checked for validity. Server certificates must not be expired, revoked, or otherwise invalid. N = Certificates are not checked. The server may require certificate validation. If a server requires certificate validation, an error is logged and the desktop app automatically attempts to open the certificate store and loop through the certificates, resending the request until it succeeds or until there are no more certificates. Default: NWritten to: HKLM/SOFTWARE/Wow6432Node/AtHoc[edition]/ValidateCert There is no HKCU copy. |
UNINSTALLOPTION | Determines if a user can remove the desktop app using the Control Panel. Required: NoValues: Y = Can be removed. N = cannot be removed.The <UninstallOption>no</UninstallOption> node in the options.xml file has a default value of "Yes." The value in the options.xml file is overridden by the value in the run.bat file.Default: N |