# Installer type for Windows Package ‘autologon’ not specified and cannot be determined from file extension ‘exe’

**URL:** <https://discourse.chef.io/t/installer-type-for-windows-package-autologon-not-specified-and-cannot-be-determined-from-file-extension-exe/14226>\
**Category:** Chef Infra (archive)\
**Created:** [December 29, 2018, 5:23pm UTC](https://discourse.chef.io/t/installer-type-for-windows-package-autologon-not-specified-and-cannot-be-determined-from-file-extension-exe/14226 "2018-12-29T17:23:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![snpten1](https://avatars.discourse-cdn.com/v4/letter/s/ed655f/32.png) [@snpten1](https://discourse.chef.io/u/snpten1)\
**Post date:** [December 29, 2018, 5:23pm UTC](https://discourse.chef.io/t/installer-type-for-windows-package-autologon-not-specified-and-cannot-be-determined-from-file-extension-exe/14226/1 "2018-12-29T17:23:11Z")

</div>

“Installer type for Windows Package ‘autologon’ not specified and cannot be determined from file extension ‘exe’

```
      Resource Declaration:
      ---------------------
      # In C:/Users/kitchen/AppData/Local/Temp/kitchen/cache/cookbooks/rtest/recipes/windows.rb

       26: windows_package ‘autologon’ do
       27: source “#{node[‘rtest’][‘remote_root_url’]}/autologon/3.10/Autologon.exe”
       28: end
       29:
```

---

<div class="post-metadata">

**Author:** ![stuartpreston](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/stuartpreston/32/1771_2.png) [@stuartpreston](https://discourse.chef.io/u/stuartpreston)\
**Post date:** [December 30, 2018, 6:35pm UTC](https://discourse.chef.io/t/installer-type-for-windows-package-autologon-not-specified-and-cannot-be-determined-from-file-extension-exe/14226/2 "2018-12-30T18:35:38Z")

</div>

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](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. `options '/q'`).

**But** it looks like you are installing Autologon, as in [https://docs.microsoft.com/en-us/sysinternals/downloads/autologon](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:

```auto
[HKEY_CURRENT_USER\Software\Sysinternals\Autologon]
"EulaAccepted"=dword:00000001

```

It might be better/easier in your case to install from the chocolatey package autologon: [https://chocolatey.org/packages/autologon](https://chocolatey.org/packages/autologon) where this is all done for you.

Stuart
