Setting the System Environment Variable
Overview
You must renew your subscription by entering a new licence key if your subscription has expired and you can no longer access your CodeScan account.
A CodeScan license key can be passed on by setting the path and environment variables in user's machine.
Note: Administrator privileges are required to set the system environment variables.
Set the system environment variables in Windows machine
For Windows 11
Press the
Windows key+X
to access thePower User Task
menu.In the
Power User Task
menu, select theSystem
option.In the
System
window, scroll to the bottom and click theAbout
option.In the
System > About
window, click theAdvanced system settings
link at the bottom of theDevice specifications
section.In the
System Properties
window, click theAdvanced
tab, then click theEnvironment Variables
button near the bottom of that tab.In the
Environment Variables
window, click onNew
button in theSystem variables
section.Enter the following details:
Variable name
: codescanLicenseValue:
<License_Key>
Click
OK
.Click
OK
again to close theEnvironment Variables
screen.
For Windows 10
Press the
Windows key+X
to access thePower User Task
menu.In the
Power User Task
menu, select theSystem
option.In the
About
window, click theAdvanced system settings
link under Related settings on the far-right side.In the
System Properties
window, click theAdvanced
tab, then click theEnvironment Variables
button near the bottom of that tab.In the
Environment Variables
window, click onNew
button in theSystem variables
section.Enter the following details:
Variable name
: codescanLicenseValue:
<License_Key>
Click
OK
.Click
OK
again to close theEnvironment Variables
screen.
In MacOS
System environment variables are added to the .bash_profile
file:
Find the path to
.bash_profile
by using:
Open the
.bash_profile
file with a text editor of your choice.Scroll down to the end of the
.bash_profile
file.Use the
export
command to add new environment variables:
Save any changes you made to the
.bash_profile
file.Execute the new
.bash_profile
by either restarting the terminal window or using:
Last updated