C# winform program for windows server 2008 R2 or Windows server 2012 R2 autorun

永刚 齐 1 Reputation point
2022-06-08T23:45:40.69+00:00

My program is written in C# winform procedures, I registered the program to the registry

HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

D:\Exercise\TestTimer\TestTimer\bin\Debug\ testtimer. exe -autorun win10 Windows Server 2008 R2 or Windows Server 2012 R2 under J is not available, into the operating system desktop this program can be started, can run, this problem how to solve? It is hoped that in Windows Server series without entering the user name and password do not enter the system desktop so that the program can also start working normally.

This program has a window interface, which is mainly used to monitor video signals. To transmit video signals to the server, the interface is needed because sometimes the network inspector needs to log in to the operating system to check whether the camera monitored by this program is abnormal

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
6,960 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 28,036 Reputation points
    2022-06-09T02:51:30.8+00:00

    A windows app can not create a window unless it’s started by a logged in desktop session. Most will crash if started without a desktop window.

    No comments