News:

SMF - Just Installed!

Main Menu

Recent posts

#61
General support / Re: "Unable to register the DL...
Last post by KryziK - December 22, 2020, 10:42:26 PM
Quote from: Ixen on December 22, 2020, 08:05:20 PM
I've sent you a PM on this forum with link. Thanks!

Responded. Overall things are looking good. Replying here because I don't see any of my replies in sent messages, and want to make sure you got them.
#62
General support / Re: "Unable to register the DL...
Last post by Ixen - December 22, 2020, 08:05:20 PM
I've sent you a PM on this forum with link. Thanks!
#63
General support / Re: "Unable to register the DL...
Last post by KryziK - December 22, 2020, 07:21:25 PM
Not a problem! Glad it helped.

If you want me to test the fix on one of my VMs, I can. Just tell me what specifics you want me to verify (other than the error going away during install, obviously).
#64
General support / Re: "Unable to register the DL...
Last post by Ixen - December 22, 2020, 07:12:43 PM
@KryziK: thanks for pinpointing the specific part of code - that sped things up.

Fix has been committed to git repo. I'll release 1.46 in a day or two after fixing one more problem with shell extension. If anyone would like to test the fix - please pm me.
#65
General support / Re: "Unable to register the DL...
Last post by Xallde - December 22, 2020, 08:22:01 AM
Error seen with Win 10 20H2 build 19042.658
#66
General support / Re: "Unable to register the DL...
Last post by KryziK - December 21, 2020, 11:32:30 PM
Sorry for double-post.

void TRegistry::ReOpen(HKEY key, const wchar_t* pszKey, bool bReadOnly /*= true*/)
{
if (!pszKey)
throw std::invalid_argument("pszKey");

if (m_hKey)
RegCloseKey(m_hKey);

LSTATUS lStatus = RegOpenKeyEx(key, pszKey, 0, bReadOnly ? KEY_QUERY_VALUE : KEY_ALL_ACCESS, &m_hKey);
if (lStatus != ERROR_SUCCESS || m_hKey == nullptr)
throw std::runtime_error("Cannot open registry key");
}


Can confirm that throw std::runtime_error("Cannot open registry key"); is getting hit.
#67
General support / Re: "Unable to register the DL...
Last post by KryziK - December 21, 2020, 10:51:53 PM
Quote from: Ixen on December 21, 2020, 10:00:08 PM
Thanks. I can reproduce problem with fresh install of Win10 2004.
I've filed a bug for further tracking: https://dev.copyhandler.com/browse/CH-369

I'll try to take a look at it tomorrow.

Command
C:\Windows\System32\regsvr32.exe C:\Users\Test\Desktop\ch-portable-1.45\64bit\chext64.dll

Working Directory
C:\Users\Test\Desktop\ch-portable-1.45\64bit

Module
chext64.dll

API
RegOpenKeyExW ( HKEY_CLASSES_ROOT, "Directory\Shellex\DragDropHandlers", 0, KEY_ALL_ACCESS, 0x0000000000b3e198 )

Return Value
ERROR_FILE_NOT_FOUND

Error
2 = The system cannot find the file specified.

Notes
void DllRegistration::RegisterDropMenuExt()
{
std::wstring strClsID = CLSID2String(CLSID_DropMenuExt);
RegisterClass(strClsID, L"DropMenuExt Class", L"Apartment");

CreateNodes(HKEY_CLASSES_ROOT, L"CLSID", strClsID + L"\\shellex\\MayChangeDefaultMenu");

CreateNodeWithDefaultValue(HKEY_CLASSES_ROOT, L"Directory\\Shellex\\DragDropHandlers", L"chext", strClsID.c_str());
CreateNodeWithDefaultValue(HKEY_CLASSES_ROOT, L"Drive\\Shellex\\DragDropHandlers", L"chext", strClsID.c_str());
CreateNodeWithDefaultValue(HKEY_CLASSES_ROOT, L"Folder\\Shellex\\DragDropHandlers", L"chext", strClsID.c_str());

CreateSingleValue(HKEY_LOCAL_MACHINE, L"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Shell Extensions\\Approved", strClsID.c_str(), L"chext");
}
#68
General support / Re: "Unable to register the DL...
Last post by Ixen - December 21, 2020, 10:00:08 PM
Thanks. I can reproduce problem with fresh install of Win10 2004.
I've filed a bug for further tracking: https://dev.copyhandler.com/browse/CH-369

I'll try to take a look at it tomorrow.
#69
General support / Re: "Unable to register the DL...
Last post by KryziK - December 21, 2020, 08:55:25 PM
Quote from: Ixen on December 21, 2020, 08:11:28 PM
What is the exact version of Win10 that you've used?
Looks like some dependency problem, but I'll have to try reproducing it on some clean Win10 vm.

OS Name   Microsoft Windows 10 Pro
Version   10.0.19041 Build 19041
#70
General support / Re: "Unable to register the DL...
Last post by Ixen - December 21, 2020, 08:11:28 PM
What is the exact version of Win10 that you've used?
Looks like some dependency problem, but I'll have to try reproducing it on some clean Win10 vm.
SMF spam blocked by CleanTalk