summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephane Wirtel <stephane@tinyerp.com>2008-10-31 17:32:01 -0400
committerStephane Wirtel <stephane@tinyerp.com>2008-10-31 17:32:01 -0400
commitdcbad420a48ffdac7a4304ffecb9bf5bbfa7cdd8 (patch)
tree6e624f2856502df6864341af75a5cfa4b6eff910
parent6c47c45874ca9403ce913ed6739ca9625aa80a5f (diff)
Use label instread magic number
bzr revid: stephane@tinyerp.com-20081031213201-uzd7th8xivjz68zk
-rw-r--r--openerp-server-installer.nsi3
1 files changed, 2 insertions, 1 deletions
diff --git a/openerp-server-installer.nsi b/openerp-server-installer.nsi
index 2d03ec8b8c6..3a5b7f7fb78 100644
--- a/openerp-server-installer.nsi
+++ b/openerp-server-installer.nsi
@@ -91,10 +91,11 @@ Var STARTMENU_FOLDER
Section "OpenERP Server" SecOpenERPServer
ClearErrors
ReadRegStr $0 HKCU "Software\OpenERP Server" ""
- IfErrors +2 0
+ IfErrors DoInstall 0
MessageBox MB_OK "Can't install this version of OpenERP Server because there is a previous installation on this system !"
Quit
+ DoInstall:
nsExec::Exec "net stop openerp-service"
sleep 2