summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorPaul Joseph Davis <davisp@apache.org>2011-05-04 00:39:09 +0000
committerPaul Joseph Davis <davisp@apache.org>2011-05-04 00:39:09 +0000
commit42eac38fd5074434faac0874bc0ba60885a55063 (patch)
tree5713fb6e3e27ac4ce28773b7c6d5dd03de5d5816 /etc
parent742c29989b9f8b10f248596c02ccdd51e13134b1 (diff)
Improve Windows installer definition.
Backport of 1083714 from trunk. git-svn-id: https://svn.apache.org/repos/asf/couchdb/branches/1.1.x@1099306 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'etc')
-rw-r--r--etc/windows/couchdb.iss.tpl13
1 files changed, 8 insertions, 5 deletions
diff --git a/etc/windows/couchdb.iss.tpl b/etc/windows/couchdb.iss.tpl
index 6efee0aa..8a32561d 100644
--- a/etc/windows/couchdb.iss.tpl
+++ b/etc/windows/couchdb.iss.tpl
@@ -74,11 +74,14 @@ Filename: "{app}\Install.exe"; Parameters: "-s"; Flags: runhidden
; Commands for a service
; First attempt to nuke an existing service of this name, incase they are
; reinstalling without uninstalling
-Filename: "{app}\erts-%erts_version%\bin\erlsrv.exe"; Parameters: "remove ""%package_name%"""; Tasks: service
-; add a new one
-Filename: "{app}\erts-%erts_version%\bin\erlsrv.exe"; Parameters: "add ""%package_name%"" -w ""{app}\bin"" -ar ""-sasl errlog_type error -s couch"" -c ""%package_name% %version%"""; Tasks: service
+Filename: "{app}\erts-%erts_version%\bin\erlsrv.exe"; Parameters: "remove ""%package_name%"""; Flags: runhidden; Tasks: service
+; add a new service, including automatic restart by default on failure
+Filename: "{app}\erts-%erts_version%\bin\erlsrv.exe"; Parameters: "add ""%package_name%"" -workdir ""{app}\bin"" -onfail restart_always -args ""-sasl errlog_type error -s couch +A 4 +W w"" -comment ""%package_name% %version%"""; Flags: runhidden; Tasks: service
; and start it if requested
-Filename: "{app}\erts-%erts_version%\bin\erlsrv.exe"; Parameters: "start ""%package_name%"""; Tasks: service\start
+Filename: "{app}\erts-%erts_version%\bin\erlsrv.exe"; Parameters: "start ""%package_name%"""; Flags: runhidden; Tasks: service\start
[UninstallRun]
-Filename: "{app}\erts-%erts_version%\bin\erlsrv.exe"; Parameters: "remove ""%package_name%"""; Tasks: service
+; erlsrv stops services prior to removing them
+Filename: "{app}\erts-%erts_version%\bin\erlsrv.exe"; Parameters: "remove ""%package_name%"""; Flags: runhidden; Tasks: service
+; kill epmd.exe if running to ensure uninstaller is not prevented from removing all binaries
+Filename: "{app}\erts-%erts_version%\bin\epmd.exe"; Parameters: "-kill"; Flags: runhidden