@justin_c_i this is actually an intentional change and was implemented to support some legacy systems. Because of various changes the environment variable is no longer required to be used.
The current behavior will not overwrite the TAP_PATH variable if it already exists (again to support better side by side support with legacy systems).
We are updated the documentation, but you can see some of the options for finding the install path here:
Can one of these approaches meet your needs? If not, if you can share some more details about what you need the TAP_PATH for and how you are currently using we can recommend an alternative.
I think it will be more reliable going forward, especially if you are changing from 32 to 64 bit. It would probably be best in your case to use the registry entry:
public string GetTapPath()
{
// Todo: Add null checks as needed.
RegistryKey tapInstallPath = Registry.LocalMachine.OpenSubKey("SOFTWARE\\Keysight\\Test Automation\\Installations\\");
var subkeyCount = tapInstallPath.SubKeyCount;
var subkeyName = tapInstallPath.GetSubKeyNames()[0];
var installPathKey = tapInstallPath.OpenSubKey(subkeyName);
var path = installPathKey.GetValue("Path");
return path;
}
@brennen_direnzo Nice function! I may use it as well. Our projects also use TAP_PATH, and every once in a while I bump into the same issue as @justin_c_i.