Name: dotnet40
Description: Microsoft .NET Framework 4
Provider: Microsoft
License: Microsoft EULA
License_url: https://www.microsoft.com/web/webpi/eula/net_library_eula_enu.htm
Dependencies: []
Conflicts:
- mono
Uninstaller: Microsoft .NET Framework 4 Extended
Steps:
- action: uninstall
  file_name: Wine Mono

- action: set_windows
  version: win7

- action: install_exe
  environment:
    WINEDLLOVERRIDES: fusion=b
  file_name: dotNetFx40_Full_x86_x64.exe
  url: http://download.microsoft.com/download/9/5/A/95A9616B-7A37-4AF6-BC36-D6EA96C8DAAE/dotNetFx40_Full_x86_x64.exe
  rename: dotnet40.exe
  arguments: /q
  file_checksum: 251743dfd3fda414570524bac9e55381
  file_size: 50449456

- action: set_windows
  version: win10

- action: set_register_key
  key: HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full
  value: Install
  data: '0001'
  type: REG_DWORD

- action: set_register_key
  key: HKLM\\Software\\Microsoft\\NET Framework Setup\\NDP\\v4\\Full
  value: Version
  data: 4.0.30319
  type: REG_SZ
  
- action: override_dll
  dll: mscoree
  type: native
