Error: A foreground process is already running

As suggested by @marian.platonov you have to install UiPath in service mode