LesFerch / WinSetView

Globally Set Explorer Folder Views
MIT License
941 stars 38 forks source link

WinSetView.hta opens as blank window #22

Closed tobwz closed 2 years ago

tobwz commented 2 years ago

When I double click on the WinSetView.hta file on a certain (64bit Win7) computer then only a blank page opens (see attached snapshot).

Even when I wait 10 minutes or reboot the whole computer it does not help.

On other (Win7) computers the same file works.

Whats wrong?

problem blank window after  hta start

LesFerch commented 2 years ago

@tobwz I could not yet recreate this issue on Windows 7 (tested on both virtual and physical machines). What type of drive is D: in the screenshot? USB flash drive? Network drive? What antivirus or antimalware software is installed?

P.S. The current version is 2.15, but I can't see how that would make a difference.

LesFerch commented 2 years ago

@tobwz On a machine that has the issue, please right-click C:\Windows\System32\mshtml.dll and then select Properties. You should see something like this: image

tobwz commented 2 years ago

@LesFerch:

D: is a partition on hard disk. No antivirus is installed. "Details" tab shows exactly what your snapshot shows.

Curiously it worked in the past on the same computer.

I must have changed accidentally something in the recent weeks on that machine which prevents correct execution of *.hta files.

Eventlog shows no error. Really strange

LesFerch commented 2 years ago

Yes, very strange. It shouldn't make a difference, but please try running it from drive C:

LesFerch commented 2 years ago

The screenshot appears to be using Aero with transparency. I wanted to test that myself, but couldn't find a compatible driver. Maybe you could try running with a basic theme and see if that helps?

tobwz commented 2 years ago

This has nothing to do with Aero Theme with transparency. On other Win7 computers with Aero it works.

I guess its because the Visual Basic Runtime or association or registry setup is somehow accidentally damaged. Which VB runtime version is at least necessary? Maybe I have to reinstall it

LesFerch commented 2 years ago

Yes, I finally got a Windows 7 machine built with Aero and transparency and WinSetView was fine.

VB Runtime is not applicable. WinSetView is an HTA with VBScript code, so it uses MSHTA.exe, MSHTML.dll, and VBScript.dll.

The only thing I can think of trying is to uninstall/reinstall Internet Explorer 11. Although HTAs do not need IE installed, they share the same browser engine, so reinstalling IE could possibly repair what's broken.

Steps: Control Panel Programs and Features Turn Windows features on or off Uncheck Internet Explorer 11 and then click Yes and then OK Repeat above steps, doing check instead of uncheck

LesFerch commented 2 years ago

@tobwz Have you tried the IE 11 remove/install steps from my previous comment?

tobwz commented 2 years ago

@LesFerch: I doubt that this is an IExplorer error. I never touched Internet Explorer since years. I always use Firefox/Chrome. I am still seaching for a way to repair the HTA. I guess its an Registry error. I think its not a bug in WinSetView but in my Win7 system. Currently I have not much time due to other work. So leave this issue open. I will revert as soon as I resume investigations. Thank you

LesFerch commented 2 years ago

@tobwz It doesn't matter which browser you use. HTAs use the Internet Explorer browser engine (MSHTML.dll). If there is an issue with MSHTML.dll, removing and reinstalling Internet Explorer could fix the issue. It's a simple and quick thing to try.

LesFerch commented 2 years ago

@tobwz Did you try my suggestion?

LesFerch commented 2 years ago

Closed due to inactivity.