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