testtoolsconn/oncrpc/group/oncrpc.configure.nsh
changeset 0 3da2a79470a7
equal deleted inserted replaced
-1:000000000000 0:3da2a79470a7
       
     1 push $0
       
     2 push $1
       
     3 
       
     4 nsSCM::QueryStatus portmap 
       
     5 Pop $0 ; return error/success
       
     6 Pop $1 ; return service status
       
     7   
       
     8   ;!define SERVICE_STOPPED                0x00000001
       
     9   ;!define SERVICE_START_PENDING          0x00000002
       
    10   ;!define SERVICE_STOP_PENDING           0x00000003
       
    11   ;!define SERVICE_RUNNING                0x00000004
       
    12   ;!define SERVICE_CONTINUE_PENDING       0x00000005
       
    13   ;!define SERVICE_PAUSE_PENDING          0x00000006
       
    14   ;!define SERVICE_PAUSED                 0x00000007
       
    15   
       
    16 ${If} $0 == "error"  
       
    17   nsExec::ExecToLog "$WINDIR\system32\portmap.exe /registerservice"
       
    18 ${EndIf}
       
    19 
       
    20 pop $1
       
    21 pop $0