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:
@@ -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")],
|
||||
|
||||
Reference in New Issue
Block a user