public void EnrollReg() { // 레지스트리 등록. 부팅시 자동 실행프로그램 등록 if (IsRegisteredInRegistry()) { // 레지스트리 등록 파일 경로 string executablePath = Application.StartupPath + "\앱이름.exe"; // 레지스트리 키 등록 경로 string keyPath = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"; using (RegistryKey registryKey = Registry.CurrentUser.OpenSubKey(keyPath, true)) { registryKey.SetValue("앱이름", executablePath); } // * 레지스트리 키 ..