Check if there is a previous installation of OpenERP Server

bzr revid: stephane@tinyerp.com-20081031202822-w62fwnuei6o3hoan
This commit is contained in:
Stephane Wirtel 2008-10-31 16:28:22 -04:00
parent 7e6d4f22d0
commit 9bf7189156
1 changed files with 4 additions and 1 deletions

View File

@ -89,6 +89,10 @@ Var STARTMENU_FOLDER
;Installer Sections
Section "OpenERP Server" SecOpenERPServer
ClearErrors
ReadRegStr $0 HKCU "Software\OpenERP Server" ""
IfErrors +2 0
Abort "Can't install this version of OpenERP Server, because there is a previous installation on this system !"
nsExec::Exec "net stop openerp-service"
sleep 2
@ -143,7 +147,6 @@ LangString DESC_SecOpenERPServer ${LANG_ENGLISH} "OpenERP Server."
;Uninstaller Section
Section "Uninstall"
nsExec::Exec "net stop openerp-service"
sleep 2
nsExec::Exec '"$INSTDIR\service\OpenERPServerService.exe" -remove'