When I try Open With in the context menu, the mshta.exe executable no longer appears in the context menu (like it used to). When I browse to it (either the 32-bit or 64-bit version) I get the following:

When I try calling mhsta.exe from the command line and passing in the name of the HTA as an argument, the HTA doesn't open, but there are no additional errors.

Please note that the above text of C:\\Windows\\SysWOW64\\mshta.exe relates to 32-bit execution. For 64-bit execution use instead C:\\Windows\\System32\\mshta.exe.

Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

We use cookies to make your experience better. To comply with the new e-Privacy directive, we need to ask for your consent to set the cookies. Learn more.

JavaScript seems to be disabled in your browser. For the best experience on our site, be sure to turn on Javascript in your browser.

Try to see if your antivirus product has decided that .hta applications are a security threat (which they are, allowing an html file to modify the system).

If you need to reestablish the registry settings for .hta applications, you may create and execute a .reg file containing the following text. The contents are a modification of the github file Default_HTA.reg with data from my computer :