KB: Fail to install possibly due to lack of admin privilege or virus protection software

Altium Designer Altium Designer
Starting in version: 18 Up to Current
Installer may fail to access particular folder path and registry and throwing error such as 'Failed to Create Key' or 'System Error' due to lack of admin privilege or virus protection software.

Solution Details

Here are things to try:
• Update or disable virus protection software, or add an exclusion for Altium installer at least.
• To rule out other factors such as blockage of network traffic necessary during the installation, acquire offline installer, right-click on the executable downloaded, and 'Run as administrator'.
• If still failing, check log files at C:\Users\Public\Documents\Altium\Logs and of Windows Event Viewer to narrow down on the cause.

Ultimately, the windows account from which the installer is executed requires access to regitry keys and the folder paths here:

Registry:
- HKEY_CURRENT_USER\Software\Altium
- HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start
Menu\Programs\Altium
- HKEY_USERS\S-1-5-21-149779583-799757147-1568867282-45119\Software\Altium (Your ID differs
from this. It is important that the extended ID contains the correct key path).
- HKEY_LOCAL_MACHINE\SOFTWARE\Altium (32 bit system).
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Altium (64 bit system)

Default Installation Paths:
- C:\Users\Public\Public Documents\Altium
- C:\Users\<WIN-LOGINNAME>\AppData\Local\Altium
- C:\Users\<WIN-LOGINNAME>\AppData\Roaming\Altium
- C:\ProgramData\Altium
- C:\Program Files(x86 - for AD17 & older)\Altium\AD(version)
If you have changed the default installation folders, access privilege needs to be configured accordingly.

Note path such as ProgramData is hidden by default in Windows that it needs to be unhidden:
image.png

If you are not an administrator of your computer, you can pass this information on to IT support personnel, though without admin rights on a computer, Altium Designer may not run properly to begin with.
 
You may encounter System Error Code 5 and 2 due to access denied or cannot find the file specified (usually in Temp folder) especially after a new release.
error code 5.png
error code 2.png

These are most likely caused by virus protection software such as Carbon Black.  Please turn off your virus/malware protection software before attempting the installation.  Updating the anti-virus software definition at some later time may also help.

If updating virus protection doesn't happen or doesn't help, try adding the Altium Designer installer to the exclusion list for the Anti-virus software.  Here's a link for Carbon Black:
https://community.carbonblack.com/t5/Knowledge-Base/Carbon-Black-Cloud-How-to-Set-up-Exclusions-in-the-Carbon-Black/ta-p/42334
Our developers have worked with Carbon Black in the past, but it seems to be a recurring issue.  If you are using Carbon Black, it will probably be necessary to report the false positive to Carbon Black: 
https://community.carbonblack.com/t5/Knowledge-Base/All-Products-How-to-report-Malware-False-Positives-to-VMware/ta-p/101821


If you are using Windows Defender, please run the windows updater to install the latest Windows Defender update then try running the installer. If Windows updater doesn't find the update, try opening Windows "Virus & Threat Protection" and use the Check for Updates link under the Virus & Threat Protection Updates section.  If you can't get the Defender update for some reason, go to Settings - Update & Security - Windows Security, then click on "Open Windows Security", "Virus & Thread protection", "Manage settings", "Add or remove exclusions", "Add an exclusion" and select folder.  Select C:\Users\<UserName>\AppData\Local\Temp and click "Select Folder", and then attempt to run the Altium Designer installer again.  Remove the exclusion after the installation is complete.  Alternatively, you can also try disabling Defender tentatively before running the installer then enabling it again after the installation is finished.

Similarly, the installer may be restricted from creating the registry keys that are needed and throw an error 'Failed to create key'.
image.png
Again, try the same schemes of disabling/updating any virus/spam protection software and running the installer with administrative privilege.

If you already have an existing installation of the same major release and have chosen the "New installation" check box rather than the "Update existing version" option in the Installer wizard, you may encounter the error "Directory cannot be empty"
image.png
If this fits your context, modify the suggested path to make it unique in the subsequent dialog in the wizard (for example: append the sub-version number as in, AD23_6), but again it can also be that one of the installation folders is absent somehow or you simply don't have administrative privilege to access/create.

There may be other variations of errors, such as 'Cannot patch', 'EULA download has failed', and 'Error from appregistry.api.altium.com: Invalid UserName/Password combination', possibly due to some network traffic blockage during the installation, which can be resolved by using the offline installer typically.
Patch.png
Error.jpg
image.png

Please note here however that while the offline installer may be able to bypass the problem of this network traffic blockage during the installation, you may still have the issue running Altium, in which case, please confirm that TLS 1.2 is enabled in your system using the following procedure:

  • Press "Win+I" to launch the Windows Settings panel

  • Type "Internet Options" in the search bar

  • Launch the Internet Properties panel (Figure 1)

  • Click on the Advanced tab

  • Scroll down to the bottom of the list to find the "Security" section

  • Confirm "Use TLS 1.2" is enabled (Figure 2)

TLS.png
 

 

If you find an issue, select the text/image and pressCtrl + Enterto send us your feedback.