[FIX] Set the right directory in the service, set the right version
authorStephane Wirtel <stw@openerp.com>
Wed, 21 Dec 2011 17:38:33 +0000 (18:38 +0100)
committerStephane Wirtel <stw@openerp.com>
Wed, 21 Dec 2011 17:38:33 +0000 (18:38 +0100)
bzr revid: stw@openerp.com-20111221173833-k0k2vasmjp4f6u9q

setup.nsi
win32/OpenERPServerService.py
win32/setup.py
win32/start.bat
win32/stop.bat

index 7979b8a..1a98eb4 100644 (file)
--- 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"\r
 \r
 Section -StopService\r
-    nsExec::Exec "net stop openerp-server-6.0"\r
+    nsExec::Exec "net stop openerp-server-6.1"\r
     sleep 2\r
 SectionEnd\r
 \r
@@ -186,7 +186,7 @@ Section OpenERP_Server SectionOpenERP_Server
 ;        CreateShortCut "$SMPROGRAMS\$STARTMENU_FOLDER\Uninstall.lnk" "$INSTDIR\uninstall.exe"\r
 ;        !insertmacro CreateInternetShortcut "$SMPROGRAMS\$STARTMENU_FOLDER\Forum" "http://www.openerp.com/forum"\r
 ;        !insertmacro CreateInternetShortcut "$SMPROGRAMS\$STARTMENU_FOLDER\Translation" "https://translations.launchpad.net/openobject"\r
-        !insertmacro CreateInternetShortcut "$SMPROGRAMS\$STARTMENU_FOLDER\OpenERP" "http://127.0.0.1:8069/"\r
+        !insertmacro CreateInternetShortcut "$SMPROGRAMS\$STARTMENU_FOLDER\OpenERP" "http://localhost:8069/"\r
     !insertmacro MUI_STARTMENU_WRITE_END\r
 \r
 \r
@@ -209,7 +209,7 @@ Section OpenERP_Server SectionOpenERP_Server
 SectionEnd\r
 \r
 Section -RestartServer\r
-    nsExec::Exec "net start openerp-server-6.0"\r
+    nsExec::Exec "net start openerp-server-6.1"\r
     sleep 2\r
 SectionEnd\r
 \r
@@ -222,10 +222,10 @@ Section -Post
 ;    WriteRegDWORD HKLM     "${UNINSTALL_REGISTRY_KEY}" "Version" "${VERSION}"\r
 ;    WriteRegDWORD HKLM     "${UNINSTALL_REGISTRY_KEY}" "VersionMajor" "${MAJOR_VERSION}.${MINOR_VERSION}"\r
 ;    WriteRegDWORD HKLM     "${UNINSTALL_REGISTRY_KEY}" "VersionMinor" "${REVISION_VERSION}"\r
-;    WriteRegStr HKLM       "${UNINSTALL_REGISTRY_KEY}" "HelpLink" "support@openerp.com"\r
-;    WriteRegStr HKLM       "${UNINSTALL_REGISTRY_KEY}" "HelpTelephone" "+32.81.81.37.00"\r
-;    WriteRegStr HKLM       "${UNINSTALL_REGISTRY_KEY}" "URLInfoAbout" "http://www.openerp.com"\r
-;    WriteRegStr HKLM       "${UNINSTALL_REGISTRY_KEY}" "Contact" "sales@openerp.com"\r
+    WriteRegStr HKLM       "${UNINSTALL_REGISTRY_KEY}" "HelpLink" "support@openerp.com"\r
+    WriteRegStr HKLM       "${UNINSTALL_REGISTRY_KEY}" "HelpTelephone" "+32.81.81.37.00"\r
+    WriteRegStr HKLM       "${UNINSTALL_REGISTRY_KEY}" "URLInfoAbout" "http://www.openerp.com"\r
+    WriteRegStr HKLM       "${UNINSTALL_REGISTRY_KEY}" "Contact" "sales@openerp.com"\r
     WriteRegDWORD HKLM     "${UNINSTALL_REGISTRY_KEY}" "NoModify" "1"\r
     WriteRegDWORD HKLM     "${UNINSTALL_REGISTRY_KEY}" "NoRepair" "1"\r
     WriteUninstaller "$INSTDIR\Uninstall.exe"\r
@@ -233,7 +233,7 @@ SectionEnd
 \r
 Section "Uninstall"\r
     ; Stop the NT Service\r
-    nsExec::Exec "net stop openerp-server-6.0"\r
+    nsExec::Exec "net stop openerp-server-6.1"\r
     sleep 2\r
 \r
     ; Uninstall the OpenERP Service\r
index bdf371a..bf7c83e 100644 (file)
@@ -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)
 
 
index b06f94b..9c064c1 100644 (file)
@@ -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:
index c6b7883..ff3c49b 100644 (file)
@@ -1,7 +1,7 @@
 @PATH=%WINDIR%\system32;%WINDIR%;%WINDIR%\System32\Wbem;.\r
 \r
-@net stop openerp-server-6.0\r
+@net stop openerp-server-6.1\r
 \r
-@net start openerp-server-6.0\r
+@net start openerp-server-6.1\r
 \r
 cls\r
index 7d6d41e..76a35b7 100644 (file)
@@ -1,5 +1,5 @@
 @PATH=%WINDIR%\system32;%WINDIR%;%WINDIR%\System32\Wbem;.\r
 \r
-@net stop openerp-server-6.0\r
+@net stop openerp-server-6.1\r
 \r
 cls\r