ASF Bugzilla – Attachment 29251 Details for
Bug 51496
NSIS - Warn that duplicate service name will result in install failure
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Check wheather a service of the same name is allready installed.
2012-08-19_trunk_51496_Service_Name.patch (text/plain), 1.38 KB, created by
Ralph Plawetzki
on 2012-08-19 18:16:01 UTC
(
hide
)
Description:
Check wheather a service of the same name is allready installed.
Filename:
MIME Type:
Creator:
Ralph Plawetzki
Created:
2012-08-19 18:16:01 UTC
Size:
1.38 KB
patch
obsolete
>Index: trunk/res/tomcat.nsi >=================================================================== >--- trunk/res/tomcat.nsi (revision 1374795) >+++ trunk/res/tomcat.nsi (working copy) >@@ -51,6 +51,7 @@ > Var TomcatMenuEntriesEnable > Var TomcatShortcutAllUsers > Var TomcatServiceName >+Var TomcatServiceNameAllreadyInstalled > Var TomcatServiceDefaultName > Var TomcatServiceFileName > Var TomcatServiceManagerFileName >@@ -573,6 +574,24 @@ > Goto exit > ${EndIf} > >+ ReadRegStr $TomcatServiceNameAllreadyInstalled HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" \ >+ "ApacheTomcatMonitor@VERSION_MAJOR_MINOR@_$TomcatServiceName" >+ ${If} $TomcatServiceNameAllreadyInstalled != "" >+ MessageBox MB_ICONEXCLAMATION|MB_OK 'A service with the given Service Name is allready installed on the machine. \ >+ Please choose another Service Name' >+ Abort "Config not right" >+ Goto exit >+ ${EndIf} >+ >+ ReadRegStr $TomcatServiceNameAllreadyInstalled HKCU "SOFTWARE\Microsoft\Windows\CurrentVersion\Run" \ >+ "ApacheTomcatMonitor@VERSION_MAJOR_MINOR@_$TomcatServiceName" >+ ${If} $TomcatServiceNameAllreadyInstalled != "" >+ MessageBox MB_ICONEXCLAMATION|MB_OK 'A service with the given Service Name is allready installed on the machine. \ >+ Please choose another Service Name' >+ Abort "Config not right" >+ Goto exit >+ ${EndIf} >+ > Push $TomcatServiceName > Call validateServiceName > Pop $0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51496
:
29251
|
29289