I.e. append path vairiable (ticket 101769/Nico Baalbergen Hogeschool Rotterdam)
Product
Application Workspace
Guest
Jun 3, 2025
Hi Liquit Team!
Right now we have Action type "Set environment variable" only, which will always overwrite the Value of the variable, so it cant be unified for different setups.
Would be nice to have action option to "append/add" the environment variables values. Most common Variable in question is Path, so we are forced right now to go by workaround with ps1 (User level EV example):
It would be nice if you could actually use Set environment variable where it says PATH. It would be nice to have the action SET PATH=%PATH%;C:\path added to the current path, and not overwritten.
Hi Liquit Team!
Right now we have Action type "Set environment variable" only, which will always overwrite the Value of the variable, so it cant be unified for different setups.
Would be nice to have action option to "append/add" the environment variables values. Most common Variable in question is Path, so we are forced right now to go by workaround with ps1 (User level EV example):
$newPath = "C:\NewLocationToAdd\"
$currentPath = [Environment]::GetEnvironmentVariable("Path", "User")
if ($currentPath -notlike "*$newPath*") {
$updatedPath = $currentPath + ";" + $newPath
[Environment]::SetEnvironmentVariable("Path", $updatedPath, "User")
}
$updatedPath = [Environment]::GetEnvironmentVariable("Path", "User")
Thanks! Let me know in case of questions!
Gregory
It would be nice if you could actually use Set environment variable where it says PATH. It would be nice to have the action SET PATH=%PATH%;C:\path added to the current path, and not overwritten.