Skip to content

Commit

Permalink
[FIX] Package: Windows: service name in setup.nsi
Browse files Browse the repository at this point in the history
  • Loading branch information
sle-odoo committed Oct 2, 2014
1 parent eb5adb8 commit 8e365ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup/win32/setup.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,10 @@ Section $(TITLE_OpenERP_Server) SectionOpenERP_Server
nsExec::Exec '"$INSTDIR\service\win32_service.exe" -auto -install'

# TODO: don't hardcode the service name
nsExec::Exec "net stop odoo-server-8.0"
nsExec::Exec "net stop odoo-server-9.0"
sleep 2

nsExec::Exec "net start odoo-server-8.0"
nsExec::Exec "net start odoo-server-9.0"
sleep 2

SectionEnd
Expand Down Expand Up @@ -318,8 +318,8 @@ Section "Uninstall"
ReadRegStr $0 HKLM "${UNINSTALL_REGISTRY_KEY_SERVER}" "UninstallString"
ExecWait '"$0" /S'

nsExec::Exec "net stop odoo-server-8.0"
nsExec::Exec "sc delete odoo-server-8.0"
nsExec::Exec "net stop odoo-server-9.0"
nsExec::Exec "sc delete odoo-server-9.0"
sleep 2

Rmdir /r "$INSTDIR\server"
Expand Down

0 comments on commit 8e365ff

Please sign in to comment.