---
title: Activate and Manage Licenses
order: 90
seealso: []
---

# Activate and Manage Licenses

Developer licenses for Eremex Controls are managed by two utilities from [Guardant](https://guardant.com):

- 'Guardant Control Center' - A license management service. Installation file: `grdcontrol-x.xx.msi` for Windows, and `grdcontrol-x.x_amd64.deb` for Linux. 
- 'Guardant License Wizard' - A GUI and command-line tool that allows you to add, update and transfer licenses. Executable file: `license_wizard.exe` for Windows, and `license_wizard` for Linux.

You can download these tools using the following links:

- [Guardant License Management Redistributables (Windows)](https://eremexcontrols.net/resources/Guardant_Redistributable_Windows.zip)
- [Guardant License Management Redistributables (Linux)](https://eremexcontrols.net/resources/Guardant_Redistributable_Linux_deb.zip) 

 

## Online Eremex Controls License Activation

1. Install 'Guardant Control Center'

2. Run 'Guardant License Wizard'

    ![guardant-license-wizard](https://eremexcontrols.net/images/guardant-license-wizard.png)
    
3. Click **Settings**, and ensure that the **Server address** property is set to _https://getlicense.guardant.ru_. 
   
     ![guardant-license-wizard-settings-server-address](https://eremexcontrols.net/images/guardant-license-wizard-settings-server-address.png)

	 Then click **Back** to return to the previous page.

4. Click the **License Activation** button to add a new license key.

5. Specify the computer on which you want to register a license.

    ![guardant-license-wizard-select-computer](https://eremexcontrols.net/images/guardant-license-wizard-select-computer.png)

6. Enter your license key in the **Serial Number** field.

    ![guardant-license-wizard-specify-license-key](https://eremexcontrols.net/images/guardant-license-wizard-specify-license-key.png)

	
7. Click **Get license**.

    If the license activation is successful, the Wizard will display information about the licensed products.

    ![guardant-license-wizard-list-of-licensed-products](https://eremexcontrols.net/images/guardant-license-wizard-list-of-licensed-products.png)


### Register a license from the command line

```
license_wizard --console --activate &lt;LICENSE-KEY&gt; --host https://getlicense.guardant.ru
```

### Get information about all command-line options

<code>license_wizard --help</code>


### Online Update of the Eremex Controls License

1. Run 'Guardant License Wizard'

    ![guardant-license-wizard-linceses-list](https://eremexcontrols.net/images/guardant-license-wizard-linceses-list.png)

2. Click **Settings**, and ensure that the **Server address** property is set to _https://getlicense.guardant.ru_. Then click **Back** to return to the previous page.

3. In the Licenses page, click the ellipsis ('...') button and click 'Check updates'.

    ![guardant-license-wizard-check-updates-button](https://eremexcontrols.net/images/guardant-license-wizard-check-updates-button.png)

	
4. Click the _Install Updates_ link that appears if a license update is found on the server. 

5. When the operation is successful, the Wizard will update the registered licenses.
 

### Update a license from the command line

```
license_wizard --console --update &lt;LICENSE-KEY&gt; --host https://getlicense.guardant.ru
```



## Offline Eremex Controls License Activation

1. Run 'Guardant License Wizard'

    ![guardant-license-wizard](https://eremexcontrols.net/images/guardant-license-wizard.png)

2. Click 'License activation'.

    
3. Select 'On this' to specify the computer on which you want to register a license.

    ![guardant-license-wizard-select-computer](https://eremexcontrols.net/images/guardant-license-wizard-select-computer.png)

4. Click the 'Offline activation' button.

    ![guardant-license-wizard-offline-activation-button](https://eremexcontrols.net/images/guardant-license-wizard-offline-activation-button.png)

5. Click 'Save' to save a request for a new license to a file.

    ![guardant-license-wizard-offline-save-request-button](https://eremexcontrols.net/images/guardant-license-wizard-offline-save-request-button.png)

6. On another computer with Internet access, run 'Guardant License Wizard'.

7. Click **Settings**, and ensure that the **Server address** property is set to _https://getlicense.guardant.ru_. Then click **Back** to return to the previous page.

8. In the Licenses page, click the **License Activation** button.

    ![guardant-license-wizard-offline-license-activation-button](https://eremexcontrols.net/images/guardant-license-wizard-offline-license-activation-button.png)

9. Select "On another" to specify the computer for which to activate a license. Then click 'Continue'.

    ![guardant-license-wizard-offline-another-comp](https://eremexcontrols.net/images/guardant-license-wizard-offline-another-comp.png)

10. Load the request for a license that was generated on a target computer.

    ![guardant-license-wizard-offline-load-request](https://eremexcontrols.net/images/guardant-license-wizard-offline-load-request.png)

11. Enter your license number and click 'Activate a new license'.

    ![guardant-license-wizard-offline-enter-license](https://eremexcontrols.net/images/guardant-license-wizard-offline-enter-license.png)

12. Save the license file ('_*.license_').

    ![guardant-license-wizard-offline-save-license-file](https://eremexcontrols.net/images/guardant-license-wizard-offline-save-license-file.png)

13. Go back to the target computer.

14. Run 'Guardant License Wizard', and switch to the 'License activation' page.

15. Select "On this" to the specify the computer for the license activation. Then click 'License file or rehost file', and load the generated license file ('_*.license_').

    ![guardant-license-wizard-offline-load-license-file](https://eremexcontrols.net/images/guardant-license-wizard-offline-load-license-file.png)

16. Activate the license.

## Switch Between Licenses

If you have two or more licenses registered on your computer, you can select the required license for the project as follows.

1. Build your project if the `emxLicense.cs` file is missing. Once generated, this file will reference the first found license.

    The third parameter of the `SetRuntimeLicenseOwner` method in the `emxLicense.cs` file specifies the license id.

    <!-- TODO
    screenshots
    <image> -->

2. Run 'Guardant License Wizard' to view the installed licenses.

    <!--TODO <image> -->

3. Locate the id of the required license (a hexadecimal number displayed after the license title).

4. Replace the license id in the `SetRuntimeLicenseOwner` method with the new one.

    <!-- TODO
    code
    -->

5. Rebuild the project.

