Pliki hta powinny być skojarzone z programem ‘Host Microsoft® HTML Aplication’, czyli plikiem …\Windows\System32\mshta.exe. Ustaw we wspomnianym okienku albo zaimportuj do rejestru poniższy plik reg:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\htafile]
"EditFlags"=dword:00100000
@="HTML Application"
"FriendlyTypeName"="@C:\\Windows\\system32\\mshta.exe,-6412"
[HKEY_CLASSES_ROOT\htafile\CLSID]
@="{3050f4d8-98B5-11CF-BB82-00AA00BDCE0B}"
[HKEY_CLASSES_ROOT\htafile\DefaultIcon]
@="C:\\Windows\\system32\\mshta.exe,1"
[HKEY_CLASSES_ROOT\htafile\Shell]
[HKEY_CLASSES_ROOT\htafile\Shell\Open]
[HKEY_CLASSES_ROOT\htafile\Shell\Open\Command]
@="C:\\Windows\\system32\\mshta.exe \"%1\" %*"
Przed importem popraw plik jeżeli Windows jest na innej partycji niż C:\