private RegistryKey GetRunAtWindowsStartupRegistryKey(RegistryKey root, bool writable) { RegistryKey key; root.TryOpenSubkey(@"Software\Microsoft\Windows\CurrentVersion\Run", writable, out key); return key; }