Solved *.hwt files not opening as zip-archive in TC10.52rc4
Moderators: Hacker, petermad, Stefan2, white
Solved *.hwt files not opening as zip-archive in TC10.52rc4
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.
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.
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: *.hwt files not opening as zip-archive in TC10.52rc4
It's NOT a bug, it's actually a bugfix!
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
Apparently you once tried to open the file in Explorer or via right click - open with, so Windows added an open with list.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)
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
https://www.ghisler.com
Re: *.hwt files not opening as zip-archive in TC10.52rc4
You can use the key combination CTRL+PgDn to open the .hwt as an archive
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: *.hwt files not opening as zip-archive in TC10.52rc4
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?
*.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
https://www.ghisler.com
Re: *.hwt files not opening as zip-archive in TC10.52rc4
Here’s information from registryinfo: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
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"
Yes, I think you should limit this check for the MS Office extensions and other frequently used extensions.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?
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: *.hwt files not opening as zip-archive in TC10.52rc4
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).
HKEY_CLASSES_ROOT\.extension
because MS Office does set this key (just no association).
I can make it configurable, but what other extensions should I include by default?Yes, I think you should limit this check for the MS Office extensions and other frequently used extensions.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: *.hwt files not opening as zip-archive in TC10.52rc4
I thought, for example, extensions of other office bundles - like open-office, libre-office, then photoshop and paintshop extensions...I can make it configurable, but what other extensions should I include by default?
I don’t know exactly, but i think of filetypes based on xml, or so.
Thank you for your work.
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: *.hwt files not opening as zip-archive in TC10.52rc4
Don't these .hwt files use xml internally too?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: *.hwt files not opening as zip-archive in TC10.52rc4
From the outside it is simple zip-archive renamed to .hwt, but files inside use xml.Don't these .hwt files use xml internally too?
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: *.hwt files not opening as zip-archive in TC10.52rc4
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
https://www.ghisler.com
Re: *.hwt files not opening as zip-archive in TC10.52rc4
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.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.
Then when we want to associate them we can use mouse right-click - Open with dialog to choose application to open it in.
Re: *.hwt files not opening as zip-archive in TC10.52rc4
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.
For me - problem solved.
Thank you very much.
Re: Solved *.hwt files not opening as zip-archive in TC10.52rc4
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:
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 11.03 / Win10 x64
Using TC 11.03 / Win10 x64
- ghisler(Author)
- Site Admin
- Posts: 50421
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Solved *.hwt files not opening as zip-archive in TC10.52rc4
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.
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
https://www.ghisler.com
Re: Solved *.hwt files not opening as zip-archive in TC10.52rc4
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.
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 11.03 / Win10 x64
Using TC 11.03 / Win10 x64