View | Details | Raw Unified | Return to bug 51496
Collapse All | Expand All

(-)tomcat/trunk/res/tomcat.nsi (+10 lines)
Lines 51-56 Link Here
51
Var TomcatMenuEntriesEnable
51
Var TomcatMenuEntriesEnable
52
Var TomcatShortcutAllUsers
52
Var TomcatShortcutAllUsers
53
Var TomcatServiceName
53
Var TomcatServiceName
54
Var TomcatServiceNameAllreadyInstalled
54
Var TomcatServiceDefaultName
55
Var TomcatServiceDefaultName
55
Var TomcatServiceFileName
56
Var TomcatServiceFileName
56
Var TomcatServiceManagerFileName
57
Var TomcatServiceManagerFileName
Lines 573-578 Link Here
573
    Goto exit
574
    Goto exit
574
  ${EndIf}
575
  ${EndIf}
575
576
577
  ReadRegStr $TomcatServiceNameAllreadyInstalled HKLM "SYSTEM\CurrentControlSet\Services\$TomcatServiceName" \
578
    "DisplayName"
579
  ${If} $TomcatServiceNameAllreadyInstalled != ""
580
    MessageBox MB_ICONEXCLAMATION|MB_OK 'A service with the given Service Name is allready installed on the machine. \
581
      Please choose another Service Name'
582
    Abort "Config not right"
583
    Goto exit
584
  ${EndIf}
585
576
  Push $TomcatServiceName
586
  Push $TomcatServiceName
577
  Call validateServiceName
587
  Call validateServiceName
578
  Pop $0
588
  Pop $0

Return to bug 51496