When I start the application with UI on Windows via script in Distribution job, it actually does not show up. Although, checking the process list reveals that the process is running. How can I force Agent to show my app's UI?
Question: My UI application does not show up on endpoint when I run it by Agent. Why?
0
artem • 50 wrote:
ADD COMMENT
• link
•
modified 3.2 years ago
by
Resilio Connect ♦♦ 750
•
written
3.2 years ago by
artem • 50
3
Resilio Connect ♦♦ 750 wrote:
Agent launched the app under its own session, which does not interact with logged in user's session. One can use psexec tool to launch the app under the user's session (-i parameter)
Once you are launching your app with psexec.ex
(or psexec64.exe
), ensure that you supply next parameters:
psexec. exe -i <session_id> -nobanner -accepteula
-nobanner
ensures that no splashscreen appear
-accepteula
ensures that no "Accept EULA" dialog appear
-i <session_id>
decides to which user session show the app's UI. Usually, current user session bears the id 1, but in multi-user login it might be different. Use query session command in your script to see which session is active now (if any), parse the output and feed it to psexec
.
Please log in to add an answer.