# Upgrading Document Generation Services

This section explains how to upgrade Document Generation Services (DGS).

Before you begin

Note: If you are either perform an initial installation or uninstalling/reinstalling DGS, this section does not apply to you.

- If changing or moving the rabbitmq.config file, you must remove and install the service again. For best results, use the RABBITMQ_BASE environment variable on all servers.
- To remove and install the service, run the following from the sbin folder:
  - rabbitmq-service.bat remove
  - rabbitmq-service.bat install

Note: Confirm that you can visit the Management web site; if not, you may need to reinstall the RabbitMQ Management. See Installing RabbitMQ for more information.

1. Manually uninstall the existing version of DGS.
   Note: You may need to physically remove the DocGenServices installation folder, as any files in the folder could interfere with subsequent installation.
2. Refer to Creating and installing the Document Generation Services components.
   Note: You should not have to perform steps #2 and 3 as they should have been completed during the initial installation.

Proceed to either the Management or Tool Suite environments to verify the installation was successful.