I\'m trying to add my program to the windows start up programs by adding the program execution path to the registry editor.
This is the code:
RegistryKey
Off-topic: add a null check before trying to set the value, or write with a questionmark like so "registryKey?.SetValue(..."