Upgrading HotDocs Hub to a later version
You can upgrade the HotDocs Hub to a later version by following the steps below.
In this Topic Hide
1. Backup the Hub installation folders
3. Install the new version of Hub
4. Run additional installation scripts
5. (Optional) Configure HotDocsIdentityServer
6. Check Hub is configured to use HotDocs Web Services
Prerequisites
Before you begin the upgrade procedure, you should capture the pre-upgrade configuration settings of your existing Hub installation. You should also have a copy of the Invoke.ps1 you used for the initial Hub installation.
1. Backup the Hub installation folders
You should make a backup of the existing Hub installation folders before you upgrade Hub. This makes it easier to roll back the deployment if necessary. To backup the installation folders:
- Navigate to the Hub installation root directory; by default this is C:\inetpub\wwwroot
- Select the folders for the installed Hub applications.
- Copy and paste the folders into another folder on your hard drive; this should be a folder separate to the current Hub installation root directory
2. Uninstall the Hub
Next, you can uninstall the Hub:
- Open Control Panel.
- Navigate to Programs > Uninstall a Program.
- Select HotDocs Template Hub from the list.
- Click Uninstall.
3. Install the new version of Hub
Next, run the new Hub installer:
- Unzip the CombinedHub zip file provided to you by HotDocs.
- Open the Windows Command Prompt as an administrator.
- Navigate to the extracted CombinedHub directory, containing the HotDocs Hub installation files.
- Run the HotDocs Hub installer file (e.g. HotDocsHub_Setup.msi).
- Click Next.
- Review and accept the License Agreement terms.
- Click Next.
- (Optional) Click Browse to change the default installation directory.
- Click Next.
- Click Install.
- Click Finish.
4. Run additional installation scripts
Next, you must install the new version of Hub using the installation instructions for your specific configuration. From your previous installation of Hub, you should already have an Invoke.ps1 script populated with the required configuration settings.
To re-run the Invoke.ps1 configuration script:
- Run Powershell as an administrator.
- Change the directory to the Post-Install > Post-install Scripts folder.
- Edit the Invoke.ps1 script in a text editor to check the installation parameters against your previous Hub configuration settings.
- Note: if you are upgrading from version 1.16.0 or earlier, check you have set the HdServerFilesUrl parameter
- (Optional) If you are using HotDocs Web Services, change the HdCoreServiceUrl value in Invoke.ps1 to the URL for your installed version of HotDocs Web Services, e.g. https://exampleserver/HDSWebAPI/api/hdcs/
- Run the Invoke.ps1 script
in Powershell, using the following command with your own values replacing
the {placeholder} values:
.\Invoke.ps1 -EnableOAuth2 {enable-oauth2} -SqlServer "{sql-server-name}" -SqlUser {sql-username} -SqlPass {sql-password} -IisWebSite "{website-name}" -IisHostName "{host-name}" -IisAppRoot "{hub-application-root}"
Where: - enable-oauth2 – must be true
- sql-server-name – name of the SQL Server where the Hub databases are installed; e.g. .\sqlexpress
- sql-username – name of SQL user that has read and write permissions to the Hub databases
- sql-password – password associated with the SQL user above
- website-name – name of the website under which HotDocs Hub is installed; e.g. Default Web Site
- host-name – name of the server on which the HotDocs Hub is installed, e.g. exampleserver01; the name must be the same as the one used by your security certificate
- hub-application-root – path to root installation directory containing the HotDocs Hub applications; e.g. C:\inetpub\wwwroot
The new version of HotDocs Hub is now installed.
5. (Optional) Configure HotDocsIdentityServer
Note: You only need to configure IdentityServer if you configured Hub to use Active Directory.
You must configure the HotDocs Identity Server application with the location of the Windows Authentication application.
- Select the HotDocsIdentityServer application in IIS.
- Open Application Settings.
- Select the MetadataAddress key.
- Click Edit.
- Enter URL of the webhostwinauth application in the Value field; by default, this is https://localhost/webhostwinauth. You should use the full machine name of the server instead of localhost.
- Click OK.
6. Check Hub is configured to use HotDocs Web Services
If you are using HotDocs Web Services (rather than Cloud Services), check that the upgraded version of Hub is configured to use Web Services:
- Configure HotDocs Hub (with user management) to use Web Services
- Configuring HotDocs (with user management and Active Directory) Hub to use HotDocs Web Services
7. Check HotDocs Server configuration
- Configuring HotDocs Server runtime files cache
- (Optional) Configure HotDocs Server to serve runtime files – you only need to complete this step if HotDocs Server is installed on a domain different than the domain under which HotDocs Hub is installed
8. Run the upgrade script
- Open SQL Server Management Studio.
- Navigate to File > Open.
- Select File.
- Browse to the Hub Post-Install > Post-install Scripts > Upgrade Scripts folder.
- Select the workitems_upgrade.sql script.
- Click Open.
- Click Execute to run the upgrade script.
HotDocs Hub is now upgraded.