From fd50a36583685288672f14eefd15b9ca8e967652 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Wed, 21 Dec 2011 18:38:33 +0100 Subject: [PATCH] [FIX] Set the right directory in the service, set the right version bzr revid: stw@openerp.com-20111221173833-k0k2vasmjp4f6u9q --- setup.nsi | 16 ++++++++-------- win32/OpenERPServerService.py | 8 ++++---- win32/setup.py | 3 ++- win32/start.bat | 4 ++-- win32/stop.bat | 2 +- 5 files changed, 17 insertions(+), 16 deletions(-) diff --git a/setup.nsi b/setup.nsi index 7979b8a872e..1a98eb41614 100644 --- a/setup.nsi +++ b/setup.nsi @@ -160,7 +160,7 @@ LangString DESC_PostgreSQL_Username ${LANG_FRENCH} "Utilisateur" LangString DESC_PostgreSQL_Password ${LANG_FRENCH} "Mot de passe" Section -StopService - nsExec::Exec "net stop openerp-server-6.0" + nsExec::Exec "net stop openerp-server-6.1" sleep 2 SectionEnd @@ -186,7 +186,7 @@ Section OpenERP_Server SectionOpenERP_Server ; CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\uninstall.exe" ; !insertmacro CreateInternetShortcut "$SMPROGRAMS\$STARTMENU_FOLDER\Forum" "http://www.openerp.com/forum" ; !insertmacro CreateInternetShortcut "$SMPROGRAMS\$STARTMENU_FOLDER\Translation" "https://translations.launchpad.net/openobject" - !insertmacro CreateInternetShortcut "$SMPROGRAMS\$STARTMENU_FOLDER\OpenERP" "http://127.0.0.1:8069/" + !insertmacro CreateInternetShortcut "$SMPROGRAMS\$STARTMENU_FOLDER\OpenERP" "http://localhost:8069/" !insertmacro MUI_STARTMENU_WRITE_END @@ -209,7 +209,7 @@ Section OpenERP_Server SectionOpenERP_Server SectionEnd Section -RestartServer - nsExec::Exec "net start openerp-server-6.0" + nsExec::Exec "net start openerp-server-6.1" sleep 2 SectionEnd @@ -222,10 +222,10 @@ Section -Post ; WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "Version" "${VERSION}" ; WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "VersionMajor" "${MAJOR_VERSION}.${MINOR_VERSION}" ; WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "VersionMinor" "${REVISION_VERSION}" -; WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "HelpLink" "support@openerp.com" -; WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "HelpTelephone" "+32.81.81.37.00" -; WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "URLInfoAbout" "http://www.openerp.com" -; WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "Contact" "sales@openerp.com" + WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "HelpLink" "support@openerp.com" + WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "HelpTelephone" "+32.81.81.37.00" + WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "URLInfoAbout" "http://www.openerp.com" + WriteRegStr HKLM "${UNINSTALL_REGISTRY_KEY}" "Contact" "sales@openerp.com" WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "NoModify" "1" WriteRegDWORD HKLM "${UNINSTALL_REGISTRY_KEY}" "NoRepair" "1" WriteUninstaller "$INSTDIR\Uninstall.exe" @@ -233,7 +233,7 @@ SectionEnd Section "Uninstall" ; Stop the NT Service - nsExec::Exec "net stop openerp-server-6.0" + nsExec::Exec "net stop openerp-server-6.1" sleep 2 ; Uninstall the OpenERP Service diff --git a/win32/OpenERPServerService.py b/win32/OpenERPServerService.py index bdf371aca68..bf7c83e74a4 100644 --- a/win32/OpenERPServerService.py +++ b/win32/OpenERPServerService.py @@ -34,10 +34,10 @@ import thread class OpenERPServerService(win32serviceutil.ServiceFramework): # required info - _svc_name_ = "openerp-server-6.0" - _svc_display_name_ = "OpenERP Server 6.0" + _svc_name_ = "openerp-server-6.1" + _svc_display_name_ = "OpenERP Server 6.1" # optionnal info - _svc_description_ = "OpenERP Server 6.0 service" + _svc_description_ = "OpenERP Server 6.1 service" def __init__(self, args): win32serviceutil.ServiceFramework.__init__(self, args) @@ -66,7 +66,7 @@ class OpenERPServerService(win32serviceutil.ServiceFramework): # The server's binary must be one directory above the service's binary (when py2exe'd the python libraries shouldn' mix) service_dir = os.path.dirname(sys.argv[0]) server_dir = os.path.split(service_dir)[0] - server_path = os.path.join(server_dir, 'openerp-server.exe') + server_path = os.path.join(server_dir, 'server', 'openerp-server.exe') self.terpprocess = subprocess.Popen([server_path], cwd=server_dir, creationflags=win32process.CREATE_NO_WINDOW) diff --git a/win32/setup.py b/win32/setup.py index b06f94bcc2a..9c064c1f6d8 100644 --- a/win32/setup.py +++ b/win32/setup.py @@ -28,7 +28,8 @@ setup(service=["OpenERPServerService"], "_imagingtk","PIL._imagingtk", "ImageTk", "PIL.ImageTk", "FixTk"], - "compressed": 1}} + "skip_archive": 1, + "optimize": 2,}} ) # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/win32/start.bat b/win32/start.bat index c6b78835900..ff3c49b1397 100644 --- a/win32/start.bat +++ b/win32/start.bat @@ -1,7 +1,7 @@ @PATH=%WINDIR%\system32;%WINDIR%;%WINDIR%\System32\Wbem;. -@net stop openerp-server-6.0 +@net stop openerp-server-6.1 -@net start openerp-server-6.0 +@net start openerp-server-6.1 cls diff --git a/win32/stop.bat b/win32/stop.bat index 7d6d41ecf87..76a35b7e91f 100644 --- a/win32/stop.bat +++ b/win32/stop.bat @@ -1,5 +1,5 @@ @PATH=%WINDIR%\system32;%WINDIR%;%WINDIR%\System32\Wbem;. -@net stop openerp-server-6.0 +@net stop openerp-server-6.1 cls