refactor: change Windows service start type from Automatic to AutoStart

Update service configuration to use ServiceStartType::AutoStart instead of Automatic for consistency with Windows service API naming conventions.
This commit is contained in:
2026-03-17 21:56:57 +01:00
parent a3e5eb32ec
commit 357c35de42

View File

@@ -241,7 +241,7 @@ fn install_windows_service() -> Result<(), String> {
name: OsString::from(SERVICE_NAME),
display_name: OsString::from(SERVICE_DISPLAY_NAME),
service_type: ServiceType::OWN_PROCESS,
start_type: ServiceStartType::Automatic,
start_type: ServiceStartType::AutoStart,
error_control: ServiceErrorControl::Normal,
executable_path: helper_path,
launch_arguments: vec![OsString::from("service")],