Setting the System Environment Variable
Overview
You must renew your subscription by entering a new license 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 a user's machine.
Setting the system environment variables for a Windows operating system
For Windows 11
Press the
Windows key+Xto access thePower User Taskmenu.In the
Power User Taskmenu, select theSystemoption.In the
Systemwindow, scroll to the bottom and click theAboutoption.In the
System > Aboutwindow, click theAdvanced system settingslink at the bottom of theDevice specificationssection.In the
System Propertieswindow, click theAdvancedtab, then click theEnvironment Variablesbutton near the bottom of that tab.In the
Environment Variableswindow, click onNewbutton in theSystem variablessection.Enter the following details:
Variable name: codescanLicenseValue:<License_Key>
Click
OK.Click
OKagain to close theEnvironment Variablesscreen.
For Windows 10
Press the
Windows key+Xto access thePower User Taskmenu.In the
Power User Taskmenu, select theSystemoption.In the
Aboutwindow, click theAdvanced system settingslink under Related settings on the far-right side.In the
System Propertieswindow, click theAdvancedtab, then click theEnvironment Variablesbutton near the bottom of that tab.In the
Environment Variableswindow, click onNewbutton in theSystem variablessection.Enter the following details:
Variable name: codescanLicenseValue:<License_Key>
Click
OK.Click
OKagain to close theEnvironment Variablesscreen.
Setting the system environment variables for a Mac operating system
System environment variables are added to the .bash_profile file:
Find the path to
.bash_profileby using: ~/.bash-profileOpen the
.bash_profilefile with a text editor of your choice.Scroll down to the end of the
.bash_profilefile.Use the
exportcommand to add new environment variables: export codescanLicense=[License_Key]Save any changes you made to the
.bash_profilefile.Execute the new
.bash_profileby either restarting the terminal window or using: source ~/.bash-profile
Last updated
Was this helpful?

