___________________________________________________________ The entry is made into services and looks correct, but when the service control manager tries to start the service, it fails. Actually it times out w/ the following in the event log entry. "The CapSync service failed to start due to the following error. The service did not respond to the start or control request in a timely fashion" Does anyone have a clue to what might be causing this? Start_CapSync is a simple executable that just sends me email right now until I can get this working properly. Thanks, Ericuse strict; my $Registry; use Win32::TieRegistry ( TiedRef=>\$Registry, Delimiter=>"/" ); my $CAP_HOME = Win32::GetCwd(); $CAP_HOME =~ s/\\bin\S*//; $Registry->{"LMachine/System/CurrentControlSet/Services/CapSync/"}= { "/DisplayName" => [ "CapSync", "REG_SZ"], "/ErrorControl" => [ "0x0001", "REG_DWORD"], "/ImagePath" => [ "$CAP_HOME\\bin\\Start_CapSync.exe", "REG_EXPAND +_SZ"], "/ObjectName" => [ "LocalSystem", "REG_SZ"], "/Start" => [ "0x0002", "REG_DWORD"], "/Type" => [ "0x0110", "REG_DWORD"], } or die "Can not create services entry\n";
In reply to Trying to add a service in win32 environment by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |