Changeset 97 for trunk/sources/win32service/win32service/src/svc/svc.cpp
- Timestamp:
- 08/24/10 09:57:23 (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/win32service/win32service/src/svc/svc.cpp
r86 r97 28 28 if( lstrcmpi( argv[1], TEXT("installService")) == 0 ) 29 29 { 30 SvcInstall(); 31 //OpenRegistry(); 30 if(GetSvcRegistry() != REGIST_ERROR) 31 SvcInstall(); 32 else 33 printf("\n The service is not installed because of error(s) in registry\n"); 32 34 return; 33 35 }else if( lstrcmpi( argv[1], TEXT("uninstallService")) == 0) … … 65 67 if (!DoQuerySvc){ 66 68 printf("Server will start normally.\n\n"); 67 rtmpserver( );69 rtmpserver(GetSvcRegistry()); 68 70 return; 69 71 }else{ 70 printf("\nERROR: Server cannot be started normally.\n\n"); 71 printf("Service described above is already installed.\n"); 72 printf("\nERROR: Server cannot be started normally because the service described above is already installed. .\n\n"); 72 73 printf("Start/Stop the server by starting/stopping the service.\n\n"); 73 74 printf("To start server normally, enter 'uninstallService' command to delete the service.\n\n"); … … 392 393 DWORD WINAPI ThreadProc( __in LPVOID lpParameter) 393 394 { 394 rtmpserver( );395 rtmpserver(SvcRegistry(GET_KEY_VALUE)); 395 396 //the lines below works too. 396 397 /*if(Initialize())
Note: See TracChangeset
for help on using the changeset viewer.
