Generally the advice I'd give with an error message like this is to look at the windows_package resource documentation: https://docs.chef.io/resource_windows_package.html ...
If Chef cannot detect the package type to install, you need to specify it using the
installer_type property (most likely, setting it to
:custom) and also provide the relevant unattended options (e.g.
But it looks like you are installing Autologon, as in https://docs.microsoft.com/en-us/sysinternals/downloads/autologon - in this case it's more likely that Autologon.exe is the actual executable rather than an installer, and you either need to run it once with the /accepteula flag, or set the following registry key before the first run:
It might be better/easier in your case to install from the chocolatey package autologon: https://chocolatey.org/packages/autologon where this is all done for you.