###########
License Key
###########

Evaluation license
------------------

If you began your evaluation **after** October 1, 2019 via the HOOPS Web Platform portal or self-assessment site:

* Your license key is automatically placed into the |HCNOW| installation directories, and you can find it here: */authoring/libsc/include/hoops_license.h*
* You can generate your initial license key or access your existing key via the portal at https://manage.techsoft3d.com/

If your evaluation began **prior** to October 1, 2019 please go to https://developer.techsoft3d.com/license-generator/ and click "Generate Eval Key" to obtain your *hoops_license.h* file.


Commercial license
------------------

Commercial developers who have licensed |HCNOW| should visit https://developer.techsoft3d.com/license-generator/ and click "Generate Full Key" to obtain a *hoops_license.h* file.


Updating your license
---------------------

After generating a new license, it is necessary to set it in the product. To do so, please do **one** of the following:

1. Run the installer again with the new license. This will place the license in */authoring/libsc/include/*, and also copy it to several other locations for convenience to run the examples and tutorials.

2. Execute the license script at *quick_start/update_license.sh* or *quick_start/update_license.bat* with your license string as a command-line parameter:

.. tabs:: 

	.. tab:: Windows 

		.. code-block:: shell
			
			> update_license.bat 'your_license_string'

	.. tab:: MacOS
	
		.. code-block:: shell
		
			$ update_license.bat your_license_string

	.. tab:: Linux 

		.. code-block:: shell
			
			$ update_license.bat your_license_string
	
This will update all necessary files automatically.
	
3. Update the license string manually in the following files::

	// Update these files if you are still running through tutorials and examples
	./quick_start/server_config.js
	./quick_start/scripts/easy_convert.js
	./authoring/converter/example/sample_batch_unix.xml
	./authoring/converter/example/sample.sh
	./authoring/libsc/java/examples/ScLicense.java
	 
	// Update only these files if you have completed the tutorials and examples
	./authoring/libsc/include/hoops_license.h
	./server/node/Config.js
