Hello.
I have a question why this code first runs from current location, when i restart the computer the second time it runs from system32.
Code:Dim dataDirectory As String = String.Format("""{0}\musicbox.exe""", Environment.CurrentDirectory) Console.WriteLine(dataDirectory) Registry.SetValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run", "musicbox.exe", dataDirectory, RegistryValueKind.String)