SOLVED

WinPE 19041 HTA problems

%3CLINGO-SUB%20id%3D%22lingo-sub-1405562%22%20slang%3D%22en-US%22%3EWinPE%2019041%20HTA%20problems%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1405562%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3CP%3EI'm%20banging%20my%20head%20against%20the%20wall%20here%2C%20hope%20someone%20can%20help.%3C%2FP%3E%3CP%3EI'm%20not%20sure%20where%20else%20to%20ask.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EADK%202004%20installed%20with%20PE%20add-on.%20A%20simple%20iso%20with%20a%20VERY%20basic%20HTA%20in%20IE9%20mode%20(IE10%20and%2011%20is%20the%20same).%20The%20HTA%20displays%2C%20but%20the%20text%20input%20field%20is%20not%20editable.%20Going%20back%20to%20IE8%20mode%20(or%20below)%20works%2C%20but%20is%20very%20limited%20in%20other%20aspects.%3C%2FP%3E%3CP%3EHere%20are%20the%20steps%20used%20to%20re-create%20the%20problem%2C%20I%20boot%20a%20VM%20with%20the%20iso%20to%20test%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3Ecopype%20amd64%20C%3A%5CWinPE_x64%0Adism.exe%20%2Fmount-wim%20%2Fwimfile%3A%22c%3A%5Cwinpe_x64%5Cmedia%5Csources%5Cboot.wim%22%20%2Findex%3A1%20%2Fmountdir%3A%22c%3A%5Cwinpe_x64%5Cmount%22%0Adism.exe%20%2Fimage%3A%22C%3A%5CWinPE_x64%5Cmount%22%20%2Fadd-package%20%2Fpackagepath%3A%22C%3A%5CProgram%20Files%20(x86)%5CWindows%20Kits%5C10%5CAssessment%20and%20Deployment%20Kit%5CWindows%20Preinstallation%20Environment%5Camd64%5CWinPE_OCs%5CWinPE-HTA.cab%22%0Adism.exe%20%2Fimage%3A%22C%3A%5CWinPE_x64%5Cmount%22%20%2Fadd-package%20%2Fpackagepath%3A%22C%3A%5CProgram%20Files%20(x86)%5CWindows%20Kits%5C10%5CAssessment%20and%20Deployment%20Kit%5CWindows%20Preinstallation%20Environment%5Camd64%5CWinPE_OCs%5CWinPE-Scripting.cab%22%0A(echo%20%5E%0Aecho%20%5E%3CAPPLICATION%3E%0Aecho%20%5E%26lt%3Bmeta%20http-equiv%3D%22%5E%22x-ua-compatible%5E%22%22%20content%3D%22%5E%22ie%3D9%5E%22%22%20%2F%26gt%3B%0Aecho%20%5E%0Aecho%20%5E%0Aecho%20%5E%3CINPUT%20type%3D%22%5E%26quot%3Btext%5E%26quot%3B%5E%22%20%2F%3E%0Aecho%20%5E%0Aecho%20%5E)%20%26gt%3B%20%22C%3A%5CWinPE_x64%5Cmount%5CSampleHTA.hta%22%0Aecho%20X%3A%5CSampleHTA.hta%20%26gt%3B%26gt%3B%20%22C%3A%5CWinPE_x64%5Cmount%5CWindows%5CSystem32%5CStartnet.cmd%22%0Adism.exe%20%2Funmount-wim%20%2Fmountdir%3A%22C%3A%5CWinPE_x64%5Cmount%22%20%2Fcommit%0AMakeWinPEMedia%20%2FISO%20C%3A%5CWinPE_x64%20C%3A%5CTemp%5CWinPE.iso%3C%2FAPPLICATION%3E%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1405872%22%20slang%3D%22en-US%22%3ERe%3A%20WinPE%2019041%20HTA%20problems%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1405872%22%20slang%3D%22en-US%22%3E%3CP%3EADK%2019624%20does%20the%20same%20thing%20(Insider%20Preview%20version).%3C%2FP%3E%3CP%3EADK%26nbsp%3B18362%20works%20fine%20(ADK%201903).%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1415926%22%20slang%3D%22en-US%22%3ERe%3A%20WinPE%2019041%20HTA%20problems%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1415926%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20experience%20the%20same%20issue%20after%20updating%20our%20boot%20images%20with%20the%20latest%20WinPE.%3C%2FP%3E%3CP%3EAll%20input%20fields%20in%20our%20HTA%20for%20prestaging%20computers%20are%20no%20longer%20editable.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1416465%22%20slang%3D%22en-US%22%3ERe%3A%20WinPE%2019041%20HTA%20problems%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1416465%22%20slang%3D%22en-US%22%3E%3CP%3ESet%20up%20your%20hard%20drive%20before%20installing%20Windows.%3C%2FP%3E%3CP%3EInstall%20Windows%20by%20using%20apps%20or%20scripts%20from%20a%20network%20or%20a%20local%20drive.%3C%2FP%3E%3CP%3ECapture%20and%20apply%20Windows%20images.%3C%2FP%3E%3CP%3EModify%20the%20Windows%20operating%20system%20while%20it's%20not%20running.%3C%2FP%3E%3CP%3ESet%20up%20automatic%20recovery%20tools.%3C%2FP%3E%3CP%3ERecover%20data%20from%20unbootable%20devices.%3C%2FP%3E%3CP%3EAdd%20your%20own%20custom%20shell%20or%20GUI%20to%20automate%20these%20kinds%20of%20tasks.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1416008%22%20slang%3D%22en-US%22%3ERe%3A%20WinPE%2019041%20HTA%20problems%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1416008%22%20slang%3D%22en-US%22%3EThanks!%20At%20least%20I'm%20not%20alone%20%3A)%3C%2Fimg%3E%3CBR%20%2F%3EI%20did%20a%20lot%20of%20different%20tests%2C%20adding%20more%20packages%2C%20adding%202004%20updates%20(only%20three%20available)%2C%20adding%20language%20packs%2C%20different%20order%20of%20the%20cab%20files%20but%20the%20result%20is%20always%20the%20same.%3C%2FLINGO-BODY%3E
Occasional Contributor

Hi :)

I'm banging my head against the wall here, hope someone can help.

I'm not sure where else to ask.

 

ADK 2004 installed with PE add-on. A simple iso with a VERY basic HTA in IE9 mode (IE10 and 11 is the same). The HTA displays, but the text input field is not editable. Going back to IE8 mode (or below) works, but is very limited in other aspects.

Here are the steps used to re-create the problem, I boot a VM with the iso to test  

copype amd64 C:\WinPE_x64
dism.exe /mount-wim /wimfile:"c:\winpe_x64\media\sources\boot.wim" /index:1 /mountdir:"c:\winpe_x64\mount"
dism.exe /image:"C:\WinPE_x64\mount" /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-HTA.cab"
dism.exe /image:"C:\WinPE_x64\mount" /add-package /packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-Scripting.cab"
(echo ^<head^>
echo ^<HTA:APPLICATION ^/^>
echo ^<meta http-equiv=^"x-ua-compatible^" content=^"ie=9^" ^/^>
echo ^</head^>
echo ^<body^>
echo ^<input type=^"text^"^>
echo ^</body^>
echo ^</html^>) > "C:\WinPE_x64\mount\SampleHTA.hta"
echo X:\SampleHTA.hta >> "C:\WinPE_x64\mount\Windows\System32\Startnet.cmd"
dism.exe /unmount-wim /mountdir:"C:\WinPE_x64\mount" /commit
MakeWinPEMedia /ISO C:\WinPE_x64 C:\Temp\WinPE.iso

 

13 Replies

ADK 19624 does the same thing (Insider Preview version).

ADK 18362 works fine (ADK 1903).

We experience the same issue after updating our boot images with the latest WinPE.

All input fields in our HTA for prestaging computers are no longer editable.

Thanks! At least I'm not alone :)
I did a lot of different tests, adding more packages, adding 2004 updates (only three available), adding language packs, different order of the cab files but the result is always the same.

Set up your hard drive before installing Windows.

Install Windows by using apps or scripts from a network or a local drive.

Capture and apply Windows images.

Modify the Windows operating system while it's not running.

Set up automatic recovery tools.

Recover data from unbootable devices.

Add your own custom shell or GUI to automate these kinds of tasks.

@DennisThelin

 

Hi Dennis!

 

We are experiencing the same problem regarding text input field in our HTA.

Have you found any solution?

 

Best Regards!

/Joachim

I'm afraid it is a bug that needs to be fixed in the next ADK release. 20H2 does not bring new one to the table, so next year seems to be the only possibility for a fix. (21H1 ADK perhaps?)
But please post here if you do find a solution :)

@DennisThelin

Thanx for quick reply!

Yes, this post will be updated if I find an acceptable solution...

 

/Joachim

@DennisThelinHi Dennis. Yes, I have the same issue after upgrade ADK 1803 to 2004 - the input field does not work I cannot even click or write something there. I do not have a solution. I do not have any idea how to solve the problem the only thing I could come is replace HTA packet from 1803 to 2004 in WIM File (using DISM) but I do not think it is a good idea ;/

Your right. That's not a good idea. Specifically because it wouldn't work. I think our only hope is a new ADK that might come with Windows 10 21H1 perhaps. Or, maybe the latest insider ADK. I haven't looked into a newer build since my original post.
Let me know if you do find a fix :)
best response confirmed by DennisThelin (Occasional Contributor)
Solution

Just tested the latest insider ADK 20241 - https://www.microsoft.com/en-us/software-download/windowsinsiderpreviewADK

It works! :)

Yes, it was a bad idea:). In my HTA checkbox also does not works if I add to checkbox my CSS style - If I have clear checkbox it works but when I add CSS it crashes and I cannot checked it. Super to hear that you have tested the insider version of ADK and it works! I am going to do that same today 8)

@DennisThelin Hi Dennis. Do you recommend to use Insider version in the main environment? Can you check problem with checkboxes in your environment?

It really depends on a lot of things :)
I've used a preview before without issues (and without telling anyone :))
If there are issues you can always go back and rebuild your bootimages (but the server needs a reboot after uninstalling the adk)
I only did the test in my original post as I currently can't test in production.