Home > Net >  Winform procedure, the problem of automatically boot startup
Winform procedure, the problem of automatically boot startup

Time:12-03

Made a winform procedure, would like to open automatically start,
The first method: many of them are talking online, write to the registry can realize the startup, but I've tried, Windows 7 is ok, win10 seems to be no,
The second method: make a window service, let Windows service start winform procedure, but is unable to start Windows service interface winform, that is to say winform cannot have the interface, is this a joke, how winform no interface? ,

Don't know how you do it? Have done this?

CodePudding user response:

https://bbs.csdn.net/topics/392010829

CodePudding user response:

The first method: sure is feasible, you can look at others' since the launch of the that position is added to the registry, also can add a link to the start menu.
The second method: the somebody else say do two procedures, one is service, service to open your main program. But to open a program, this is too make a mountain out of a molehill.

CodePudding user response:

You make a plan for the Windows task don't have to do is powered up

CodePudding user response:

refer to the second floor seehack response:
the first method: sure is feasible, you can look at others' since the launch of the that position is added to the registry, also can add a link to the start menu.
The second method: the somebody else say do two procedures, one is service, service to open your main program. But to open a program, this is too make a mountain out of a molehill.




refer to the second floor seehack response:
the first method: sure is feasible, you can look at others' since the launch of the that position is added to the registry, also can add a link to the start menu.
The second method: the somebody else say do two procedures, one is service, service to open your main program. But to open a program, this is too make a mountain out of a molehill.


The first method: in my win10 registry HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run position is written to the path of my program, but after win10 boot, really don't start the SOFTWARE, Windows 7 is ok,

The second method, I made a Windows service, but a Windows service, can not open interface winform procedure, my winform procedure a landing operation is to open the window, the Windows service is can't open the interface of the winform, is an error,

CodePudding user response:

I am wrote HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Run, the test is successful, you have a try.
The second you and see if it has already written there, or have no written.

The above said, also can generate a shortcut in the C: \ ProgramData \ Microsoft \ \ Windows Start Menu \ designed \ StartUp, namely the Windows Start Menu bar, the test success

Then I really didn't have the second method, it's just that I had to start is with the shell or CMD way, to start with the process is certainly not

CodePudding user response:

reference 5 floor seehack reply:
I am wrote HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Run, the test is successful, you have a try.
The second you and see if it has already written there, or have no written.

The above said, also can generate a shortcut in the C: \ ProgramData \ Microsoft \ \ Windows Start Menu \ designed \ StartUp, namely the Windows Start Menu bar, the test success

Then I really didn't have the second method, it's just that I had to start is with the shell or CMD way, to start with the process is certainly not


HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Run
HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Run
I wrote these two, still won't start, 360 guardians, does not ban started,
My is win10 operating system, the start has joined in,

Is really strange,


CodePudding user response:

Registry is ok, but you need to access, or writing is a sandbox, not to where the real, so win10 not know,

CodePudding user response:

Directly into the start of the start menu folder within can ah, I'm such a solution,

CodePudding user response:

refer to 7th floor caozhy response:
registry is ok, but you need to access, or writing is a sandbox, not to where the real, so win10, know


Oh, the sandbox is written?

That how to do, have the authority to set into the real registry?

CodePudding user response:

refer to 7th floor caozhy response:
registry is ok, but you need to access, or writing is a sandbox, not to where the real, so win10, know


I think of it, written not sandbox, because I manually open the registry, then start the path added, also is same, not start the boot

CodePudding user response:

# 3 of the method is simple, with the task planning process (task scheduler), can be set to start up,

CodePudding user response:

references to the tenth floor andy0618 response:
Quote: refer to 7th floor caozhy response:

Registry is ok, but you need to access, or writing is a sandbox, not to where the real, so win10, know


I think of it, written not sandbox, because I manually open the registry, then start the path added, also is same, not start the boot

I think that the only possibility, or your configuration is wrong, such as the configuration of the running path is wrong, the system cannot find the exe, will not be able to start,

CodePudding user response:

Simple testing, you change the address to an ordinary procedure, and see whether startup, most likely path problem, and on both sides of the path is need a quotation,

CodePudding user response:

https://jingyan.baidu.com/article/eae07827ad2bba1fec5485ae.html
Win10 system, test available in person, to the point, thank you

CodePudding user response:

The operation is simple,

CodePudding user response:

Create a shortcut the shortcut in a startup folder

CodePudding user response:

Task plan, select the start when the user login

CodePudding user response:

The building Lord finally found the problem? How to solve the
  •  Tags:  
  • C#
  • Related