regAppendToPath function
Collection of Windows specific registry functions.
Appends newPath to the Windows PATH environment variable.
A WindowsException is thrown if the call falls.
@Throwing(ArgumentError)
@Throwing(UnsupportedError)
@Throwing(WindowsException)
Implementation
void regAppendToPath(String newPath) {
final paths = _getPaths();
if (!_isOnUserPath(newPath, paths)) {
paths.add(newPath);
_replacePath(paths);
}
}