How to run automations without interacting with UiPath Assistants

Hi everyone, I have custom script that run UiPath Assistant in hidden mode. That’s mean that UI inside UiPath Assistant doesn’t load, and this is freezing all initialization.
It was working fine with UiPath 2022.4, but I don’t use my script for a while, and I try to use it again on new version UiPath 2024.10.
I guess that angular or/and electron cant run in hidden mode or without GUI (For example when I connect to my Windows computer via ssh, and system doesn’t render any GUI at all)

This is UiPath Assistant 2024.10 logs:

{"name":"Injector index (entry)","startTime":335.1694999933243,"delta":335.1694999933243}
{"name":"main.ts after imports","startTime":336.1384000778198,"delta":0.9689000844955444}
{"name":"Bootloader initialize","startTime":378.8208000063896,"delta":42.682399928569794}
{"name":"Bootloader start","startTime":445.56819999217987,"delta":66.74639999866486}
{"name":"Bootloader start after _getWindowOptions","startTime":464.1917999982834,"delta":18.623600006103516}
{"name":"Shell waiting for Electron ready","startTime":466.47809994220734,"delta":2.286300003528595}
{"name":"main window create","startTime":464.7348999977112,"delta":0.07050001621246338}
{"name":"main window loadURL","startTime":512.45849990844726,"delta":47.723599910736084}
{"name":"pre Angular ready","startTime":628.14860010147095,"delta":115.69010019302368}
{"name":"Shell ready-to-show","startTime":689.6208999156952,"delta":61.47229981422424}
{"name":"Angular ready","startTime":1789.9800065422,"delta":1125.471899986267}

Then initialization freezing and I opened UiPath Assistant mannualy with GUI:

{"name":"Shell ready-to-show","startTime":77975.53250002861,"delta":77985.54359996319}

so…

I can’t understand at this moment why it’s work on 2022.4 but not working in 2024.10?
It’s changing inside UiPath Assistant or its BUG and UiPath team don’t want to do this?

Here are logs from UiPath Assistant 2022.4:

{"name":"Before imports","duration":271.32599997520447}
{"name":"Bootloader initialize","duration":319.30629992485046}
{"name":"Electron Ready","duration":425.217200009346}
{"name":"Sentry-init","duration":0}
{"name":"Sentry","duration":70.4179996929169}
{"name":"Shell waiting for Electron ready","duration":567.5671999454498}
{"name":"Checking if we run from /Applications","duration":567.6412999629974}
{"name":"Creating Main Window","duration":567.654699921608}
{"name":"Angular ready","duration":1556.1019999980927}
{"name":"Shell ready-to-show","duration":1591.1607999801636}

Thanks in advance for any kind of help!

Hey @ulohob,

We actually do not support this :slightly_frowning_face:

Can you please tell me what is the reason why you want to start Assistant without GUI (hidden mode)? What is the scenario/use case you are trying to resolve? Thank you!

Hi @Catalina_Ianus!
Thank you for your response!

I need to run UiPath Assistant without the GUI because I’m using it in my home automation and security setup. The system runs on its own, without user input, and it’s important for keeping my home safe and efficient. It tracks things like security alarms, sensors, and energy usage.

We sometimes deal with power outages and bad weather, so it’s crucial that everything restarts automatically when power comes back on. I’ve got one Windows PC acting as a server that runs my automations, collecting data about what’s happening at home. I made a script* that starts the automation when the PC boots up after a power cut.

* I just create an automation shortcut from UiPath Assistant and configure the system to run this shortcut on system startup.

This worked perfectly with the older UiPath version (2022.4), but with the new version, it doesn’t. Now, I have to manually log into the PC, open the GUI, and then everything runs fine - but only after that, which isn’t ideal, especially if I’m not around.

With potential safety risks and the need for quick responses during emergencies, I really need to get this functionality back. Any help or advice on making the Assistant run without the GUI in the latest version would be awesome.

Thanks a lot for your help!

Hi @Catalina_Ianus
I made little research and find information that I can directly use UiRobot.exe via CLI to run all what I need. By the documentation, it looks literally what I need!

I am not an advanced programmer, but I go to UiPath Assistant Plugin Creator on GitHub and find out that I can customize UiPath Assistant or better say I can customize Widgets.

Step by step searching how I can fix my logic that unfortunately broke, I find Command Line Interface. In a couple of days I will try to test CLI, and if it works - I let you know.

Just want to write this message, maybe someone will search info about how to work with UiPath without any interface :slight_smile:

And one more thing: looks like issue not related to BUG at all in this case.
Probably better rename topic after test CLI and find out that CLI will be solution for me (I hope so)

1 Like

Hey @ulohob

I just create an automation shortcut from UiPath Assistant and configure the system to run this shortcut on system startup.

You can try instead to use the combination of two features that we have at UiPath:

  • Automatically start Assistant with Windows (Assistant → Preferences → General → System section);
  • Automatically Start Process (Orchestrator → Automations → Edit, from the automation contextual menu → Additional Settings).

Additionally, it can also be used with “Automation can’t be stopped from UiPath Assistant”


1 Like

Hi again! :slight_smile:

I tested your solution and also tested CLI. Both works fine, but CLI have more configurations that I find interesting for myself.

Thank you for help!

P.s. Renamed topic from “BUG: Unable to open UiPath Assistant without GUI” to “How to run automations without interacting with UiPath Assistants”

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.