While installing Dynamics CRM on Windows server 2016 half way through the installation if the following error is encountered:

Action.Microsoft.Crm.Setup.Common.InstallWindowsSearchAction failed

SearchActionError

Then ensure that Windows Search service is running and then the installation should continue without any errors

SearchActionError1