how can I run an app automatic after restart?
(by c# code) I create A new string in ‘runOnce’ key in registry with the path of the App.
the OS run this APP before it load the OS
my problem is: My APP loads but explorer doesn’t load, after I close my APP, explorer loads
I restart the computer in APP, and after restart I want that my APP reopen
how can I run an app automatic after restart? (by c# code) I create
Share
When you click restart from your app, make the following modifications to the registry:
Create an entry in
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Runregistry branch.Use
to create an entry.
And
to set the run path.
After the system has restarted, your app starts and removes the restart entry by calling this: