LesFerch / WinSetView

Globally Set Explorer Folder Views
MIT License
965 stars 40 forks source link

WinSetView.hta won't launch on Windows 11 22H2 Pro (x64) (10.0.22621.607) #32

Closed radio222 closed 1 year ago

radio222 commented 1 year ago

WinSetView.hta (WinSetView 2.14 - WinSetView 2.41) won't launch on Windows 11 22H2 (x64) Pro (10.0.22621.607). How to solve this problem?

LesFerch commented 1 year ago

WinSetView does launch on Windows 11 (all versions) so the issue is really that it doesn't launch on your particular Windows 11 machine.

More details are needed to troubleshoot. Are you getting anything displayed at all? Any error message? Is your computer managed (i.e. company owned)?

Typically, a "won't launch" scenario is caused by a policy blocking HTA execution, an incorrect association, or over-protective anti-malware software. In all those cases, there's usually a message of some sort displayed.

But it's possible to have a silent stop. For example, there could be a registry entry in HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\MSHTA.exe which redirects to a dummy exe that does nothing.

You could first try booting your computer into Safe Mode and see if it then runs.

radio222 commented 1 year ago

Thanks for the answer.

I answer your questions:

1) When you run the WinSetView.hta (WinSetView 2.41) file from "File Explorer" and "Total Commander", the following window appears: No access or the file "WinSetView.hta" is already in use. "Application not found."

2) Regedit: Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\mshta.exe] "MitigationOptions"=hex(b):00,01,00,00,00,00,00,00

3) In Windows 11 Safe Mode, the situation is similar, WinSetView.hta does not start.

LesFerch commented 1 year ago

When I saw that "MitigationOptions" entry, I thought that must be it, but I added that entry to my machine and WinSetView ran fine. Still, that entry is not normally present, so please delete the mshta.exe key from Image File Execution Options and see if that helps.

The No access or the file "WinSetView.hta" is already in use "Application not found" sounds like an anti-malware program has quarantined the file, but if you still get that error in Safe Mode, then that doesn't appear to be the correct explanation.

What anti-virus/anti-malware software are you running?

And I'm assuming you've extracted the entire zip file and aren't trying to run WinSetView.hta directly from the zip file, but please confirm. Thanks.

radio222 commented 1 year ago

I answer: 1) so please delete the mshta.exe key.

2) What anti-virus/anti-malware software are you running?

3) And I'm assuming you've extracted the entire zip file and aren't trying to run WinSetView.hta directly from the zip file, but please confirm.

Your program is very convenient and necessary for work (I use it successfully on another computer under Windows 10). I would like to use it successfully in my Windows 11 22H2 Pro (x64) (10.0.22621.607).

Is it not difficult for you to create another startup file (for example, create a shell: WinSetView.exe) so that I can run it under Windows 11 22H2 Pro (x64) (10.0.22621.607) without any problems?

LesFerch commented 1 year ago

I really want to solve this, but I need to think about the next troubleshooting steps. I wish the machine were in front of me. It's probably a registry setting. Perhaps a policy. Is this machine managed ( i.e. group policies set by IT department)? I suppose something could be corrupted... I hope you're available to follow up. This has happened a couple of other times, but the users did not stick with me, so troubleshooting stopped with no resolution.

radio222 commented 1 year ago

Perhaps a policy. Is this machine managed ( i.e. group policies set by IT department)? answer:

P.S.

I have read in several forums on the topic of not being able to run WinSetView.hta in the most recent build Windows 11 22H2 Pro (x64), but "WinSetView.hta" runs without problems on Windows 11 21H2.

You can install the latest version of Windows 11 22H2 Pro (x64) (10.0.22621.607) and test, run "WinSetView.hta". Then it will be clear exactly where the problem lies, personally with me or in the new assembly of Windows 11 22H2 Pro (x64) (10.0.22621.607). Then your intervention in the WinSetView program is necessary.

LesFerch commented 1 year ago

I'm sure you can't run any HTA script on that machine, but to be sure, try something minimal like this script.

radio222 commented 1 year ago

Did not start Windows 11 22H2 Pro (x64), writes, as it was in my first message. Under Windwos 10 Pro (1806) started.

LesFerch commented 1 year ago

Thanks for confirming. It runs fine on Windows 11 22H2 Home, so I'll build a 22H2 Pro tonight and see what happens. What were those forums where you saw the same issue reported?

radio222 commented 1 year ago

What were those forums where you saw the same issue reported?

Answer: Permission denied if reading Location object property - Browsers | Microsoft Learn https://learn.microsoft.com/en-us/troubleshoot/developer/browsers/development-website/permission-denied-for-location-object-properties

VBS/WSH/JS - [решено] не запускается .hta http://forum.oszone.net/nextnewesttothread-316328.html

What is the future of mshta.exe since Internet Explorer is officially going away? - Microsoft Q&A https://learn.microsoft.com/en-us/answers/questions/403154/what-is-the-future-of-mshtaexe-since-internet-expl-1.html

radio222 commented 1 year ago

In order for the verification test to be completely the same, please download not just the PRO version, namely an exact copy, like mine: Windows 11 22H2 Pro (x64) (10.0.22621.607)

LesFerch commented 1 year ago

The links you provided don't appear to have the same issue discussed.

Here are a couple of recent changes that may be relevant:

https://learn.microsoft.com/en-us/mem/configmgr/mdt/known-issues https://www.anoopcnair.com/windows-11-22h2-group-policy-settings-download

LesFerch commented 1 year ago

So far, I tested Windows 11 22H2 Home (x64) (10.0.22621.608) and had no problem.

LesFerch commented 1 year ago

I just finished testing Windows 11 22H2 Pro (x64) (10.0.22621.608) and also had no problem.

radio222 commented 1 year ago

Can you compile WinSetView.hta into an EXE file to simply run and set up the program?

LesFerch commented 1 year ago

The HTA is a combination of HTML/CSS and VBScript, so it's an interpreted language. Such scripts can be "converted" to an Exe using VbsEdit, which includes code that replicates the functionality of MSHTA.exe. I'm testing that process, but so far there are too many issues to deploy it that way. I'm hoping the VbsEdit developer will fix the issues I've reported, so that will be an option someday soon.

Let's check the HTA file associations on your computer. Using RegEdit, please export the following keys and email me the REG files:

HKEY_CLASSES_ROOT\.hta HKEY_CLASSES_ROOT\htafile HKEY_CLASSES_ROOT\SystemFileAssociations\.hta HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.hta

You can find my email address in the WinSetView manual.

radio222 commented 1 year ago

Ok, I sent the letter.

LesFerch commented 1 year ago

Unfortunately, that wasn't it. I set my test machine with the same registry values as yours, but WinSetView continued to load fine.

At this point, I think you should do an in-place repair. That should get it working.

radio222 commented 1 year ago

Thanks!

radio222 commented 1 year ago

The issue of launching WinSetView was successfully solved using the VbsEdit 9.9615 program. Launched WinSetView 2.41 and configured folders and files.

LesFerch commented 1 year ago

You were able to run WinSetView via VBSEdit by selecting Start Debugging with MSHTA (F5)? But, you still cannot double-click WinSetView.hta to run it? It seems to be a corrupted file association. Did you try the association procedure I documented here? If that makes no difference, try the ftype and assoc commands provided here.

radio222 commented 1 year ago

You were able to run WinSetView via VBSEdit by selecting Start Debugging with MSHTA (F5)?

Did you try the association procedure I documented? If that makes no difference, try the ftype and assoc commands provided.

I think that this is the problem Windows 11 22H2 Pro (x64) (10.0.22621.607).

LesFerch commented 1 year ago

I've tested many versions of Windows 11, including Windows 11 22H2 Pro (x64) (10.0.22621.608). The fact you have a slightly older version (10.0.22621.607) does not matter. I'm sure you can find other Windows 11 computers that are the same, older, or newer build that will run HTAs from File Explorer without any issue. There is something specific to your machine causing the problem.

Let's determine if the issue is system-wide or specific to your user profile. Please login with a different local account and see if you still get the same error.

radio222 commented 1 year ago

Doesn't start.

LesFerch commented 1 year ago

The issue is likely a problem in the registry (HKLM). Narrowing it down will require comparing with a working machine. Do you have access to any other computers (or VMs) running Windows 11? If not, then I think doing an in-place repair will fix it.

radio222 commented 1 year ago

The issue is likely a problem in the registry (HKLM). Narrowing it down will require comparing with a working machine. Do you have access to any other computers (or VMs) running Windows 11?

LesFerch commented 1 year ago

If you can export your entire HKEY_LOCAL_MACHINE registry key and figure out a way to get that file to me (It's going to be hundreds of MBs) I could then analyze it and, hopefully, find the root cause. Otherwise, the in-place repair should fix it, but we'll then never know the cause.

LesFerch commented 1 year ago

Similar error reported here with a completely different app. OP fixed issue by applying Microsoft update KB5018427.

radio222 commented 1 year ago

Installed Windows 11 22H2 Build 22621.674 and WinSetView started right away. Thanks for the support, WinSetView is now working.

LesFerch commented 1 year ago

That's great news! Thanks for letting me know. 🙂

On Mon, Oct 17, 2022, 5:43 PM radio222 @.***> wrote:

Installed Windows 11 22H2 Build 22621.674 and WinSetView started right away. Thanks for the support, WinSetView is now working.

— Reply to this email directly, view it on GitHub https://github.com/LesFerch/WinSetView/issues/32#issuecomment-1281533277, or unsubscribe https://github.com/notifications/unsubscribe-auth/AS25QO4LHVVQY77RHG4DC6DWDXCBVANCNFSM6AAAAAAQ3QEUQ4 . You are receiving this because you commented.Message ID: @.***>