From 7ea2e6ce15981d1930d2e62c9e0cd03396f39a36 Mon Sep 17 00:00:00 2001 From: lejeune quentin Date: Tue, 7 Feb 2023 15:34:47 +0000 Subject: [PATCH] [FIX] hw_*: Modify the default user for iot in windows currently there is an error in the configuration of the default user for the iot windows it is configured for "local service" which is the French version of the local user. Except if the pc window is not in French, the user is not configured correctly. We have to use the default local user name of windows which is "LOCALSERVICE" closes odoo/odoo#112181 X-original-commit: 36c03128e97379f361072f481450704ebc582e3b Signed-off-by: Quentin Lejeune (qle) --- setup/win32/setup.nsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup/win32/setup.nsi b/setup/win32/setup.nsi index 20c2d93905c..03c75635043 100644 --- a/setup/win32/setup.nsi +++ b/setup/win32/setup.nsi @@ -268,12 +268,12 @@ Section $(TITLE_Odoo_Server) SectionOdoo_Server nsExec::ExecToLog '"$INSTDIR\nssm\win64\nssm.exe" install ${SERVICENAME} "$INSTDIR\python\python.exe"' nsExec::ExecToLog '"$INSTDIR\nssm\win64\nssm.exe" set ${SERVICENAME} AppDirectory "$\"$INSTDIR\python$\""' nsExec::ExecToLog '"$INSTDIR\nssm\win64\nssm.exe" set ${SERVICENAME} AppParameters "\"$INSTDIR\server\odoo-bin\" -c "\"$INSTDIR\server\odoo.conf\"' - nsExec::ExecToLog '"$INSTDIR\nssm\win64\nssm.exe" set ${SERVICENAME} ObjectName "SERVICE LOCAL" ""' + nsExec::ExecToLog '"$INSTDIR\nssm\win64\nssm.exe" set ${SERVICENAME} ObjectName "LOCALSERVICE"' ${Else} nsExec::ExecToLog '"$INSTDIR\nssm\win32\nssm.exe" install ${SERVICENAME} "$INSTDIR\python\python.exe" ' nsExec::ExecToLog '"$INSTDIR\nssm\win32\nssm.exe" set ${SERVICENAME} AppDirectory "$\"$INSTDIR\python$\""' nsExec::ExecToLog '"$INSTDIR\nssm\win32\nssm.exe" set ${SERVICENAME} AppParameters "\"$INSTDIR\server\odoo-bin\" -c "\"$INSTDIR\server\odoo.conf\"' - nsExec::ExecToLog '"$INSTDIR\nssm\win32\nssm.exe" set ${SERVICENAME} ObjectName "SERVICE LOCAL" ""' + nsExec::ExecToLog '"$INSTDIR\nssm\win32\nssm.exe" set ${SERVICENAME} ObjectName "LOCALSERVICE"' ${EndIf} Call RestartOdooService