How to install Interaction History
Interaction History installation.
-
Install Chocolatey.
Chocolatey is the package manager used in Interaction History, and is mandatory to install Interaction History.
- Access the URL https://chocolatey.org/install#individual.
- Follow the steps to install Chocolatey.
-
Install Chocolatey dependencies.
- Open a Windows command line with the option Run as administrator.
-
Install the Chocolatey dependencies.
Run the following command to install Chocolatey dependencies:
choco upgrade chocolatey-core.extension
-
Check the PowerShell version.
The installation only runs if you have PowerShell version 5.1 or higher.
- Open the Windows PowerShell as an administrator.
-
Check the PowerShell version.
Execute the following command:
The command returns the version of PowerShell you are using. For example:Get-Host | Select-Object VersionVersion-------5.1.19041.1320
-
Start the installation.
- Log in to Windows using a Windows account with administrative privileges.
-
Get the Interaction History installation package.
For example, get the following files for update 8.6.2010:
- Altitude_8.6_1_to_2010.Windows.Interaction History.zip
Note
Extract the files before installation.
- Extract the zip file.
- Create a folder that will act as the local repository for future versions of Interaction History. For example, create the folder C:\InteractionHistoryInstall.
- Extract the file InteractionHistory.zip to the folder C:\InteractionHistoryInstall.
-
Install Interaction History.
Tip
To simplify other installations of Interaction History, for example, when upgrading to a newer version, you can enter the following commands into a .bat file, and run the .bat file when needed.
- Open PowerShell with the option Run as administrator.
-
Install Interaction History.
Run the choco upgrade command with the following parameters:
- --source: Enter the path to the folder where the .nupkg files are located. For example, C:\InteractionHistoryInstall\.
- instanceAddress: Enter the IP address or host name, and port, of the Altitude uCI Server. For example, localhost:1500.
- integrationServerBaseUri: Enter the HTTPS URL to access uAgent Web. For example, https://ccserver.mycompany.com/uagentweb8
- userSystem: Enter the user name with administrative privileges and the advanced user right Log on as a service. If empty, Interaction History will use LocalSystem.
- userPassword: Enter the password of the user with administrative privileges and the advanced user right Log on as a service. If empty, Interaction History will use LocalSystem.
- targetDir: Enter the folder where you want to install Interaction History. For example, C:\InteractionHistoryApp.
- httpPort: Enter the HTTP port to access Interaction History. For example, 3021.
choco upgrade altitude.interactionhistory.install --source='C:\InteractionHistoryInstall\;chocolatey' -y --params="/instanceAddress=localhost:1500 /integrationServerBaseUri=http://10.10.1.1/uAgentWeb8/ /userSystem= /targetDir='C:\InteractionHistoryApp' /httpPort=3021"
-
Configure a CORS policy in the uAgent Web configuration file.
- Open the uAgent Web configuration file. By default, the file Web.config is located at C:\Program Files\Altitude\Altitude uCI 8\Altitude Integration Server\Web\.
- Locate the key restApi.
-
Add or edit the key allowAnyOrigin.
Set the value of the key to true.
<restApi><authenticationTokenProvider></authenticationTokenProvider><corsPolicy><allowAnyOrigin>true</allowAnyOrigin></corsPolicy></restApi> - Save and close the configuration file.