Question : COM DLL remove TypeLib and CLSID references in registry - VB

Using VB.NET code am trying to unregister a VB6 COM based DLL. Tried using regsvr32 /u vb6dll.dll. Somehow registry GUID entries in HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID or TYPELIB for the custom DLLs doesn't get removed.

Am trying to write code to clean all references (GUID, TYPELIB, CLSID) of this DLL in the registry. Is there a better way to do this? I need to write code in VB.NET to search and delete these entries.

Any help and push in the right direction is MUCH appreciated. Thanks.  

Answer : COM DLL remove TypeLib and CLSID references in registry - VB

look at this
http://www.sommarskog.se/share_data.html

Also, if you can make it a function instead of a SP, you can return a table variable.

declare @tablename sysname
declare @colname sysname

select top 1 @tablename = tablename, @colname = ColumnName FROM dbo.TestTableList()
select @tablename, @colname
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
CREATE FUNCTION TestTableList ( 
) RETURNS @TableList TABLE (
  ID INT IDENTITY(1, 1),
  TableName SYSNAME,
  ColumnName SYSNAME
) AS BEGIN  
	INSERT INTO @TableList
	SELECT TABLE_NAME, COLUMN_NAME
	FROM INFORMATION_SCHEMA.COLUMNS
	
	RETURN 
END
Random Solutions  
 
programming4us programming4us