Launch Window on Windows startup
问题 I want that my application (a WPF Window ) is launched on Windows startup. I tried different solutions, but no one seems to work. What i have to write in my code to do this? 回答1: You are correct when you say that you must add a key to the registry. Add a key to: HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run if you want to start the application for the current user. Or: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run If you want to start it for all users. For