# Steps for version update

**Pre-Uninstall Steps**

* Take a backup of Cloud Assert billing database and obtain the resource provider username and password settings from Usage and Billing API Service web.config
* Take backup of ‘*Web.config’* file located at ‘*C:\inetpub\MgmtSvc-CloudAssertBilling’*
* Take backup of ‘*CloudAssert.WAP.Billing.AgentService.exe.config’* file located at ‘*C:\Program Files\CloudAssertBilling\CloudAssert.WAP.Billing.AgentService*’
* Take a backup of ‘*Scripts*’ folder form ‘*C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService*’ folder if present
* Take a backup of the following files (If present) from ‘*C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService*’
  * CloudAssert.Billing.UsageExtensions.dll
  * System.Management.Automation.dll
  * CloudAssert.Billing.UsageExtensions
  * UsageExtensionsSettings.json
* Take backups of ‘*Templates*’ folders present in ‘*C:\inetpub\MgmtSvc-CloudAssertBilling*’ and ‘*C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService*’.

**Uninstallation Steps**

* Uninstall existing Usage and Billing installers from Add or Remove Programs on the respective machines.
* Delete ‘*CloudAssertBilling*’ from ‘*C:\Program Files*’ if present after uninstalling Billing Agent Service setup.

**Pre – Installation Steps**

* For upgrading from version v1.9.0.22 to v1.9.1.11 (or) v1.9.2. \*, the following has to be done before installing the latest build.
  * Download the SQL script from [here](https://cloudassertdownloads.blob.core.windows.net/usage-1-9-2/Upgrade%20from%20v1_9_0_23%20to%20v_1_9_2_11.sql).
  * Execute the script in *CloudAssertBilling* database server

**NOTE:** Versions less than 1.9.0.22 will not need the script to be executed.

* For upgrading from version v1.9.1.10 to v1.9.2. \*
  * Download the SQL script from [here](https://cloudassertdownloads.blob.core.windows.net/usage-1-9-2/Upgrade%20from%20v1_9_1_10%20to%20v1_9_2_12.sql).
  * Execute the script in *CloudAssertBilling* database server.
* For upgrading from version v1.9.1.11 to v1.9.2. \*
  * Download the SQL script from [here](https://cloudassertdownloads.blob.core.windows.net/usage-1-9-2/Upgrade%20from%20v1_9_1_11%20to%20v_1_9_2_11.sql).
  * Execute the script in *CloudAssertBilling* database server.
* For upgrading from version v1.9.2.14 to v2.0.1. \*
  * Download the SQL script from [here](https://cloudassertdownloads.blob.core.windows.net/usage-2-1-1/MigrationScript_1.9.2_2.0.1.sql).
  * Execute the script in *CloudAssertBilling* database server.
* For upgrading from version v1.9.2.14 to v2.1.1.\* and higher
  * Download the SQL script from [here](https://cloudassertdownloads.blob.core.windows.net/usage-2-1-1/MigrationScript_1.9.2_2.1.1.sql).
  * Execute the script in *CloudAssertBilling* database server.
* For upgrading from version v2.0.1.10 to v2.1.1. \* and higher
  * Download the SQL script from [here](https://cloudassertdownloads.blob.core.windows.net/usage-2-1-1/MigrationScript_2.0.1_2.1.1.sql).
  * Execute the script in *CloudAssertBilling* database server.

**Post – Installation Steps**

&#x20;The post installation steps need to be followed after the ‘Billing Agent Service’ setup is installed.

* Stop the billing agent service.
* Replace the folder ‘*Templates*’ and its contents into ‘*C:\inetpub\MgmtSvc-CloudAssertBilling*’ and ‘*C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService*’.
* Replace the ‘*Scripts*’ folder and its contents into ‘*C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService’* folder.
* Replace the following files into ‘*C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService’* folder.
  * CloudAssert.Billing.UsageExtensions.dll
  * System.Management.Automation.dll
  * CloudAssert.Billing.UsageExtensions
  * UsageExtensionsSettings.json
* Open ‘*CloudAssert.WAP.Billing.AgentService.exe.config’* file located at ‘*C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService*’ and compare it with the backup file of the same name (*CloudAssert.WAP.Billing.AgentService.exe.config*). Enable the job processors that are enable in the backup file. For example, UsageEventsProcessors, UsageExtensionProcessor, etc.

![](https://1682904349-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fwap-billing%2F-Lp8KZ_6kZYrYPOY2QCF%2F-Lp8N2_BurjK5Sodl2su%2F0.png?generation=1568894109325438\&alt=media)

* If ‘UsageExtensionProcessor’ is enabled in the backup file, set true in the new file and also ensure the ‘SettingsPath’ is pointed to ‘C:\ Program Files\ CloudAssertBilling\ CloudAssert. WAP. Billing. AgentService\UsageExtensionsSettings.json’ as seen below.

![](https://1682904349-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2Fwap-billing%2F-Lp8KZ_6kZYrYPOY2QCF%2F-Lp8N2_CVBeEhQDSJgor%2F1.png?generation=1568894109380486\&alt=media)

* Start the Billing agent service.
