Commit 3aa3080d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

ActiveX: List Plugin directy after installation of VLC in IE

The plugin is in Internet Explorer <= v9 not listed in "Tools" ->
"Manage Add-ons" after installation of VLC. Only when I run the plugin
on a page and confirm a security message, that appears, the plugin
appears permanently in the list. In IE10 (Win8) the plugin is listed
directly after the installation.

Close #8788
parent 8ff57098
......@@ -147,6 +147,12 @@ static void UnregisterProgID(REFCLSID rclsid, unsigned int version)
SHDeleteKey(hClsIDKey, szCLSID);
RegCloseKey(hClsIDKey);
}
if( ERROR_SUCCESS == RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Ext\\Stats"), 0, KEY_WRITE, &hClsIDKey) )
{
SHDeleteKey(hClsIDKey, szCLSID);
RegCloseKey(hClsIDKey);
}
};
STDAPI DllUnregisterServer(VOID)
......@@ -235,6 +241,25 @@ static HRESULT RegisterClassID(HKEY hParent, REFCLSID rclsid, unsigned int versi
keyClose(keySet(hProgKey, TEXT("CLSID"),
szCLSID, sizeof(szCLSID)));
}
// entry for addons list
hProgKey = keyCreate(HKEY_CURRENT_USER, TEXT("Software\\Microsoft\\Windows\\CurrentVersion\\Ext\\Stats"));
if( NULL != hProgKey )
{
HKEY hSubKey = keyCreate(hProgKey, szCLSID);
if( NULL != hSubKey )
{
HKEY hSubKey2 = keyCreate(hSubKey, TEXT("iexplore"));
if( NULL != hSubKey2 )
{
keyClose(keyCreate(hSubKey2, TEXT("AllowedDomains\\*")));
DWORD value = 1;
keyClose(keySet(hSubKey2, TEXT("Type"),
(const BYTE*)&value, sizeof(value), REG_DWORD));
}
}
}
}
hClassKey = keyCreate(hParent, szCLSID);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment