I want to add my application to autostart. I am adding a value to: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run
With a path to my exe. The code is 100% correct, but somehow, when I ran it, it wasn't working. I was pulling my hair out because of that, I tried everything. But later, when I restarted my PC, the application ran on startup! How is that possible? I don't see my value in the registry. Can someone help me? Thanks in advance.