If you have downloaded NQHG 1.7 and are trying to use it from Visual studio, you probably got the following error:
Cannot find custom tool 'NHibernateQueryGenerator' on this system. The issue is that I didn't update the setup script correctly, and the version that it registers as a COM addin is set to 1.6, while the assembly version is 1.7. This cause the COM load to fail.
This script will reset the NHQG version to the correct one, until I manages to find some time for fixing this properly.
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CLSID\{DE8A7135-96F6-47BA-9DC9-D7D837B4CDE3}]
@="NHibernate.Query.Generator.NHibernateQueryGenerator"
[HKEY_CLASSES_ROOT\CLSID\{DE8A7135-96F6-47BA-9DC9-D7D837B4CDE3}\Implemented Categories]
[HKEY_CLASSES_ROOT\CLSID\{DE8A7135-96F6-47BA-9DC9-D7D837B4CDE3}\Implemented Categories\{62C8FE65-4EBB-45E7-B440-6E39B2CDBF29}]
[HKEY_CLASSES_ROOT\CLSID\{DE8A7135-96F6-47BA-9DC9-D7D837B4CDE3}\InprocServer32]
@="mscoree.dll"
"ThreadingModel"="Both"
"Class"="NHibernate.Query.Generator.NHibernateQueryGenerator"
"RuntimeVersion"="v2.0.50727"
"CodeBase"="C:\\Program Files\\Rhino\\NHibernate Query Generator\\NHQG.exe"
"Assembly"="NHQG, Version=1.7.0.0, Culture=neutral, PublicKeyToken=0b3305902db7183f"
[HKEY_CLASSES_ROOT\CLSID\{DE8A7135-96F6-47BA-9DC9-D7D837B4CDE3}\InprocServer32\1.7.0.0]
"Class"="NHibernate.Query.Generator.NHibernateQueryGenerator"
"CodeBase"="C:\\Program Files\\Rhino\\NHibernate Query Generator\\NHQG.exe"
"RuntimeVersion"="v2.0.50727"
"Assembly"="NHQG, Version=1.7.0.0, Culture=neutral, PublicKeyToken=0b3305902db7183f"
[HKEY_CLASSES_ROOT\CLSID\{DE8A7135-96F6-47BA-9DC9-D7D837B4CDE3}\ProgId]
@="NHibernate.Query.Generator.NHibernateQueryGenerator"