Upgrading HotDocs Advance
Note: the steps for upgrading from Advance v1.1 and later are different to the process of upgrading from Advance v1.0. Please see the section that corresponds to your currently installed version of Advance.
You can upgrade HotDocs Advance to a later version by following the procedure below.
Prerequisites
Before you begin the upgrade procedure, you should have a copy of the Advance deployment zip file, containing all necessary installation files.
Upgrading Core Assembly Service
Upgrading from v1.1.82 or earlier
If you are upgrading to v1.1.84 or later from an older version of Core, you must install Core v1.1.83 as an intermediate upgrade step.
Upgrading from v1.1.81 or earlier
For users of Microsoft SQL Server 2012 or Microsoft SQL Server 2014: if you upgrade to Core v1.1.82 or later, you should ensure that existing interviews in Advance are completed before upgrading. Some in-progress session data in SQL Server 2012 cannot be migrated following an upgrade. Completed sessions are unaffected.
Upgrading from Advance v1.1 or later
1. Backup the Advance installation folders
You should make a backup of the existing HotDocs Advance installation folders before you upgrade Advance.
2. Stop the site under which Advance is installed
- Open Internet Information Services (IIS) Manager.
- In the Connections pane, navigate to the site under which Advance is installed; for example, Default Web Site.
- In the Actions pane, click Stop.
3. Run the Advance installer
- Unzip the Advance Installer zip file.
- Open the Windows Command Prompt as an administrator.
- Navigate to the unzipped HotDocs Advance folder.
- Navigate to the bin folder.
- Type the following command to upgrade all the Advance applications:
HdaInstaller upgrade - Press Enter; the installer checks the prerequisites for Advance and installs the Advance applications.
4. Restart the IIS site
- Open Internet Information Services (IIS) Manager.
- In the Connections pane, navigate to the site under which Advance is installed; for example, Default Web Site.
- In the Actions pane, click Start.
Advance is now upgraded.
Upgrading to Advance 1.30 or later
For customers upgrading from versions 1.29 and lower, to version 1.30 and higher, HotDocs requires setting the UI URL in the HDA Api settings file.
When upgrading, use the following parameter to set the UI URL in the HDA Api settings file:
HdaInstaller.exe upgrade --setting UiUrl=https://{tenancy}.appDomain/UIApplicationPath
For example:
HdaInstaller.exe upgrade --setting UiUrl=https://{tenancy}.yourorganization.com/HdaUi
This setting is additional to any other flags or parameters used on upgrade.
Upgrading the client interview application
You can choose to upgrade only the client interview application. If you are using a separate Core Assembly Service installation, take care to ensure you upgrade both when upgrading the client interview application.
Follow the procedure to upgrade Advance, replacing the command with:
HdaInstaller upgradeclientinterviews
Rerunning migrations
Occasionally migrations may fail on upgrade. In the case of a migration failure it is necessary to fix the cause of the failure. Access the logs and the database, examine the upgrade logs and locate the failure. Causes for failure may include permission issues preventing access to a database or particular parts of the schema, or certain data may have triggered the issue and can be carefully amended.
Once you have addressed the cause of the migration failure, rerun the migration.
To rerun the migration:
- Open the Windows Command Prompt as an administrator.
- Navigate to the unzipped HotDocs Advance folder.
- Navigate to the HubApi folder.
- Type the following command:
dotnet HubApi migrate
The installer attempts to rerun the migrations and complete the upgrade.
Upgrading from Advance v1.0
1. Backup HotDocs Advance installation folders
You should make a backup of the existing HotDocs Advance installation folders before you upgrade Advance.
2. Edit the installation configuration file
- Unzip the Advance Installer zip file
- Edit the installation configuration file HdaInstallerSettings.json
- Ensure the same setting values are used as for the original installation.
- Do not remove any new settings that are in the new configuration JSON file.
- Set the ApiSiteSettings.AppSettings.ReseedClientCredentialsEnabled option to true.
- Set the AuthSiteSettings.AppSettings.AdminAuthScheme option to password.
-
Set the ApiSiteSettings.AppSettings.ReseedClientCredentialsEnabled option to true.
- Open Internet Information Services (IIS) Manager.
- In the Connections pane, navigate to the site under which Advance is installed; for example, Default Web Site
- In the Actions pane, click Stop.
3. Run the Advance installer
- Open the Windows Command Prompt as an administrator.
- Navigate to the unzipped HotDocs Advance folder.
- Navigate to the bin folder.
- Type the following command:
HdaInstaller install - Press Enter; the installer checks the prerequisites for Advance and installs the Advance applications.
4. Restart the IIS site
- Open Internet Information Services (IIS) Manager.
- In the Connections pane, navigate to the site under which Advance is installed; for example, Default Web Site
- In the Actions pane, click Start.
5. Log in to Advance
- Login to the Advance Root Application; this launches any necessary automatic database updates for root.
- Login in to a tenancy; this launches any necessary automatic database updates for your tenancies.
HotDocs Advance is now upgraded.