I have created a workflow and “published” it afterwards. When I run the UIPath Robot it lists the mentioned package and I can download and run it from there.
Is it possible to run the package with a vba or cmd script after I downloaded it once?
For normal .xaml files / workflows I am using scripts like this which works perfectly:
Dim oShell
Set oShell = CreateObject (“WScript.Shell”)
oShell.run "cmd /K CD C:\Program Files (x86)\UiPath\Studio\ & UiRobot -file ““C:\Users\XXXXXXXX\WindowsCredential.xaml”” "
Set oShell = Nothing
But in this case it is important that it has to go through packages, because the enduser is not allowed to open the files with uipathstudio!
I would ask for your help here.
Important: I dont have Orchestrator! Therefore, I want to use a script and not just open the UIPath Robot and run the package manual.
thanks for ur response!
I already tryed ur solution / hint but the problem is that the enduser can just simple double click the extracted .xaml file and can open it with uipathstudio.
But when the Robot is doing the same why I am not able to trigger it through an script / bat ? I mean script which trigger the Robot to start the package, like when I am clicking on it.
This would help alot, because the Robot saves the file in a more complex path and that would be enough for me.
Ok this means that I could write a script which triggers the UiPath.Executor.exe to unpack the nupkg to get the xaml file, could move it to a temp folder and then use the normal script to execute the xaml file from the temp folder
edit: but I actually dont get it why there is no other workaround to just simply run the package from cmd through UIPath Robot
I would rather use own script for all - see attached.
What it does:
1/ look into .packages if new package with name ProcessID* exists
2/ if YES it will expand it into .processes folder replacing any existing process of same ID and archive the package
3/ launch process from .processes folder
copy package to the device where it has to be executed
use script to run the nupkg file
this makes sure that everything works and the user can not open the nupkg file with double click on it or uipathstudio… yes he can open it with uipathstudio but he will not see anything.
To make sure… there is still one way that he could get the raw data but yea to be 100% sure u need the Orchestrator.