From 2797bef1f7fbdcc20b97309a0e3be09caa33eb08 Mon Sep 17 00:00:00 2001 From: lejeune quentin Date: Mon, 13 Feb 2023 10:47:35 +0000 Subject: [PATCH] [FIX] hw_*: Fix the access rights for the LOCALSERVICE user We must force the access rights to the installation folder to "FullAccess" because in some environments these rights have been restricted by customers. And so the iot windows does not work properly closes odoo/odoo#112735 X-original-commit: db3dff5150a638ed00d16109176853503326cd7f Signed-off-by: Christophe Monniez (moc) --- setup/win32/setup.nsi | 1 + 1 file changed, 1 insertion(+) diff --git a/setup/win32/setup.nsi b/setup/win32/setup.nsi index 03c75635043..44ca962c45a 100644 --- a/setup/win32/setup.nsi +++ b/setup/win32/setup.nsi @@ -275,6 +275,7 @@ Section $(TITLE_Odoo_Server) SectionOdoo_Server 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 "LOCALSERVICE"' ${EndIf} + AccessControl::GrantOnFile "$INSTDIR" "LOCALSERVICE" "FullAccess" Call RestartOdooService SectionEnd