I just want to know if the exclusion of the folder c:\windows\installer during my ODS once a week is safe or not recommended.
Any suggestion are welcome ?
You would want to adhere to the guideline, "Exclude nothing, unless you have to".
If considering the exclusion, the pertinent data point to share is "Why?" because the theoretical answer is "No, it's not safe to have any exclusion, not even one". But, the reality is, you're juggling risk, how much risk you're prepared to accept vs. "whatever your reason is to consider the exclusion".
Perhaps there is an alternate than to just exclude the whole folder's contents; a way to minimize risk and satisfy your need for the exclusion.
To add a note to the 1st response... I would suggest excluding from OAS and leaving un-excluded for ODS, if an exclusion is requested. This way, you eliminate the scanning method that is more likely to cause issue and still keep a level of protection by scanning on a scheduled occurrence.