Custom "Open with..." dialog does not work in Tota
Moderators: Hacker, petermad, Stefan2, white
Custom "Open with..." dialog does not work in Tota
Hi,
There is a "hack" for Windows 7, that allows changing the "Open with..." dialog to uncheck by default the option "Always use the selected program..." for unknown file types.
The hack is described here in detail:
http://blogs.msmvps.com/dmartin/blog/2011/11/09/how-to-display-the-open-with-dialog-box-with-the-always-associate-this-program-checkbox-unchecked-by-default-part-iii/
It requires a DLL to be copied to system32 folder and an entry modified in the registry.
The registry entry originally lists the command that is performed when opening a file with unknown file type (HKEY_CLASSES_ROOT\Unknown\shell\opendlg\command) and the registry hack changes the command to point from shell32.dll to DLL that was copied to system32 folder.
This hack works like a charm in Windows Explorer, but unfortunatelly it does not work in Total Commander. The checkbox stays checked, most likely because Total Commander directly calls shell32.dll methods instead of using the registry to find out what to call.
Is there anything that can be done to fix this?
Windows 7 Pro x64 / TotalCmd 8.01 x64
Thanks!
There is a "hack" for Windows 7, that allows changing the "Open with..." dialog to uncheck by default the option "Always use the selected program..." for unknown file types.
The hack is described here in detail:
http://blogs.msmvps.com/dmartin/blog/2011/11/09/how-to-display-the-open-with-dialog-box-with-the-always-associate-this-program-checkbox-unchecked-by-default-part-iii/
It requires a DLL to be copied to system32 folder and an entry modified in the registry.
The registry entry originally lists the command that is performed when opening a file with unknown file type (HKEY_CLASSES_ROOT\Unknown\shell\opendlg\command) and the registry hack changes the command to point from shell32.dll to DLL that was copied to system32 folder.
This hack works like a charm in Windows Explorer, but unfortunatelly it does not work in Total Commander. The checkbox stays checked, most likely because Total Commander directly calls shell32.dll methods instead of using the registry to find out what to call.
Is there anything that can be done to fix this?
Windows 7 Pro x64 / TotalCmd 8.01 x64
Thanks!
Last edited by Eddie1506 on 2013-01-30, 15:07 UTC, edited 1 time in total.
- ghisler(Author)
- Site Admin
- Posts: 50923
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I guess that this happens because the the code in TC against DLL injection - that's exactly what you do, inject a DLL to replace a system DLL. This is blocked in TC as a precaution against viruses/worms.
You can re-enable the loading of injected DLLs like this: Add the following line to wincmd.ini uder [Configuration]
DllLoad=1
You can re-enable the loading of injected DLLs like this: Add the following line to wincmd.ini uder [Configuration]
DllLoad=1
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Thanks, I'll try it tomorrow!ghisler(Author) wrote:I guess that this happens because the the code in TC against DLL injection - that's exactly what you do, inject a DLL to replace a system DLL. This is blocked in TC as a precaution against viruses/worms.
You can re-enable the loading of injected DLLs like this: Add the following line to wincmd.ini uder [Configuration]
DllLoad=1
Hi Christian,ghisler(Author) wrote:I guess that this happens because the the code in TC against DLL injection - that's exactly what you do, inject a DLL to replace a system DLL. This is blocked in TC as a precaution against viruses/worms.
You can re-enable the loading of injected DLLs like this: Add the following line to wincmd.ini uder [Configuration]
DllLoad=1
this works only partially. If I double click the file with unknown extension, it doesn't work. However, If I rightclick on the file and select "Open" then it does work.
- ghisler(Author)
- Site Admin
- Posts: 50923
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I meant the right click menu - the double click is handled by TC internally.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50923
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
I'm using ShellExecuteEx for the double click - apparently your hack does not support that, only the right click menu method.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com