Solved *.hwt files not opening as zip-archive in TC10.52rc4

Bug reports will be moved here when the described bug has been fixed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
bluntman
Junior Member
Junior Member
Posts: 12
Joined: 2010-10-24, 09:07 UTC

Solved *.hwt files not opening as zip-archive in TC10.52rc4

Post by *bluntman »

Total Commander used to open files with .hwt extension (Huawei WatchFace files) as ZIP-archive.
That was correctly working till TC10.52rc2.
From version TC10.52rc3 it displays windows dialog to choose application to open that file.
Last edited by bluntman on 2022-10-22, 10:25 UTC, edited 1 time in total.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: *.hwt files not opening as zip-archive in TC10.52rc4

Post by *ghisler(Author) »

It's NOT a bug, it's actually a bugfix!
13.10.22 Fixed: Do not open documents like .docx like a ZIP file when they have an "open with" list in the registry (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx\OpenWithList, value MRUlist) (32/64)
Apparently you once tried to open the file in Explorer or via right click - open with, so Windows added an open with list.
Can you check with regedit.exe what the following key contains?
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.hwt\OpenWithList

Please use my tool RegistryInfo to gather information about the misbehaving file association for .hwt, then please post it here:
https://www.totalcommander.ch/win/registryinfo.zip
Author of Total Commander
https://www.ghisler.com
Infector
Junior Member
Junior Member
Posts: 45
Joined: 2005-11-22, 12:48 UTC
Location: Russia

Re: *.hwt files not opening as zip-archive in TC10.52rc4

Post by *Infector »

You can use the key combination CTRL+PgDn to open the .hwt as an archive
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: *.hwt files not opening as zip-archive in TC10.52rc4

Post by *ghisler(Author) »

Maybe I should limit this check just to the well known MS Office file extensions:
*.docx *.docm *.dotx *.dotm *.xlsx *.xlsm *.xltx *.xltm *.pptx *.pptm *.potx *.potm
So far only Microsoft seems to not register any extensions and only rely on "Open with".

What do you think?
Author of Total Commander
https://www.ghisler.com
bluntman
Junior Member
Junior Member
Posts: 12
Joined: 2010-10-24, 09:07 UTC

Re: *.hwt files not opening as zip-archive in TC10.52rc4

Post by *bluntman »

It's NOT a bug, it's actually a bugfix!

13.10.22 Fixed: Do not open documents like .docx like a ZIP file when they have an "open with" list in the registry (HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.docx\OpenWithList, value MRUlist) (32/64)

Apparently you once tried to open the file in Explorer or via right click - open with, so Windows added an open with list.
Can you check with regedit.exe what the following key contains?
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.hwt\OpenWithList

Please use my tool RegistryInfo to gather information about the misbehaving file association for .hwt, then please post it here:
https://www.totalcommander.ch/win/registryinfo.zip
Here’s information from registryinfo:

not found: [HKEY_CLASSES_ROOT\.hwt]
=============================
[Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.hwt]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.hwt\OpenWithList]
"a"="firefox.exe"
"MRUList"="cab"
"b"="Facemaker.exe"
"c"="TOTALCMD64.EXE"
Maybe I should limit this check just to the well known MS Office file extensions:
*.docx *.docm *.dotx *.dotm *.xlsx *.xlsm *.xltx *.xltm *.pptx *.pptm *.potx *.potm
So far only Microsoft seems to not register any extensions and only rely on "Open with".

What do you think?
Yes, I think you should limit this check for the MS Office extensions and other frequently used extensions.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: *.hwt files not opening as zip-archive in TC10.52rc4

Post by *ghisler(Author) »

Thanks for the registry details! What I could do is also check for the presence of
HKEY_CLASSES_ROOT\.extension
because MS Office does set this key (just no association).
Yes, I think you should limit this check for the MS Office extensions and other frequently used extensions.
I can make it configurable, but what other extensions should I include by default?
Author of Total Commander
https://www.ghisler.com
bluntman
Junior Member
Junior Member
Posts: 12
Joined: 2010-10-24, 09:07 UTC

Re: *.hwt files not opening as zip-archive in TC10.52rc4

Post by *bluntman »

I can make it configurable, but what other extensions should I include by default?
I thought, for example, extensions of other office bundles - like open-office, libre-office, then photoshop and paintshop extensions...
I don’t know exactly, but i think of filetypes based on xml, or so.

Thank you for your work.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: *.hwt files not opening as zip-archive in TC10.52rc4

Post by *ghisler(Author) »

Don't these .hwt files use xml internally too?
Author of Total Commander
https://www.ghisler.com
bluntman
Junior Member
Junior Member
Posts: 12
Joined: 2010-10-24, 09:07 UTC

Re: *.hwt files not opening as zip-archive in TC10.52rc4

Post by *bluntman »

Don't these .hwt files use xml internally too?
From the outside it is simple zip-archive renamed to .hwt, but files inside use xml.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: *.hwt files not opening as zip-archive in TC10.52rc4

Post by *ghisler(Author) »

So they are like Office XML. I will therefore not check in the file whether it contains xml, but instead use a fixed list of office xml (Microsoft and Open-/Libreoffice) extensions.
Author of Total Commander
https://www.ghisler.com
bluntman
Junior Member
Junior Member
Posts: 12
Joined: 2010-10-24, 09:07 UTC

Re: *.hwt files not opening as zip-archive in TC10.52rc4

Post by *bluntman »

So they are like Office XML. I will therefore not check in the file whether it contains xml, but instead use a fixed list of office xml (Microsoft and Open-/Libreoffice) extensions.
As I think about it, you are right. Check in only Office files, and all other unassociated files that can be opened as archive, should open as archive.
Then when we want to associate them we can use mouse right-click - Open with dialog to choose application to open it in.
bluntman
Junior Member
Junior Member
Posts: 12
Joined: 2010-10-24, 09:07 UTC

Re: *.hwt files not opening as zip-archive in TC10.52rc4

Post by *bluntman »

Just tried new RC5, and .hwt files are opened as archive back again as it was before RC3.
For me - problem solved.
Thank you very much.
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Re: Solved *.hwt files not opening as zip-archive in TC10.52rc4

Post by *Flint »

I'm a bit confused about how it should work now, in rc5. I have some e-books in FB2 format which is also a renamed ZIP archive. I do have both HKCR\.fb2 and FileExts\.fb2\OpenWithList in the registry. For the sake of testing, I renamed the HKCR\.fb2 key and tested TC 10.52rc5 (without any PreferOpenTypes in wincmd.ini).
From the history description, I expected that fb2 in this scenario should open as an archive (because there is no HKCR\.fb2, and it's not in the list of default Office file types). But it still opened in my e-book reader application (AlReader2).

Here is the output from the RegistryInfo tool:

Code: Select all

not found: [HKEY_CLASSES_ROOT\.fb2]
=============================
[Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.fb2]
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.fb2\OpenWithList]
"a"="AlReader2.exe"
"b"="cba"
"c"="EmEditor.exe"
"d"="cabd"
"e"="cabde"
"MRUList"="gihcabdef"
"f"="firefox.exe"
"g"="ee256.exe"
"h"="Everything.exe"
"i"="SumatraPDF.exe"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.fb2\OpenWithProgids]
"fb2_auto_file"=hex(0):
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.fb2\UserChoice]
"Hash"="bbmANWJYbEk="
"ProgId"="Applications\AlReader2.exe"
=============================
Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.fb2\UserChoice="Applications\AlReader2.exe"
[HKEY_CLASSES_ROOT\Applications\AlReader2.exe]
[HKEY_CLASSES_ROOT\Applications\AlReader2.exe\shell]
[HKEY_CLASSES_ROOT\Applications\AlReader2.exe\shell\open]
[HKEY_CLASSES_ROOT\Applications\AlReader2.exe\shell\open\command]
@=""C:\Programs\AlReader2\AlReader2.exe" "%1""
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Solved *.hwt files not opening as zip-archive in TC10.52rc4

Post by *ghisler(Author) »

2Flint
The new change is only for the case where there is NO association. You have a "UserChoice" entry which is added when the user chooses "Always open with this app", so there is a valid association.
Author of Total Commander
https://www.ghisler.com
User avatar
Flint
Power Member
Power Member
Posts: 3487
Joined: 2003-10-27, 09:25 UTC
Location: Antalya, Turkey
Contact:

Re: Solved *.hwt files not opening as zip-archive in TC10.52rc4

Post by *Flint »

I see, thank you for the details. When I renamed also the UserChoice key, indeed, TC started opening them as archives.
I think this detail needs to be documented, otherwise it may get really confusing; especially now that the associations became so darn complicated.
Flint's Homepage: Full TC Russification Package, VirtualDisk, NTFS Links, NoClose Replacer, and other stuff!
 
Using TC 10.52 / Win10 x64
Post Reply