RegAddIn

	Function:
		This tool automates the registration of Inventor AddIn applications.
		This tool list all Registered CLSID's and show then in a listbox.
		When the AddIn.DLL is not yet registered then you can manually enter
		it in the registry using the (DOS) command:
			regsvr32.exe /s AddIn.DLL
			
		After selection of the one to register this program modifies a template
		registration file so the Menu name, description and the ClsId are entered.
		The new registry file will be placed at the same location as the AddIn.DLL
		When requested the AddIn.DLL is (again) entered in the registry and the modified 
		Registry file is registred.

	Note:
		The name listed in RegAddIn does not need to be the name of the actual DLL.
		For example when the DLL name is renamed to x.DLL, then the AddIn will still be
		found onder the name it was build in VB, i.e. the Class name in the VB project.

	Usage:
		Develop the AddIn as explained in the Inventor 5 Programming Help files
		(see AddIn>Introduction)
		Use the VB compiler to create the and Register the DLL.
		Then start RegAddIn.exe and select the DLL from the list.
		Look for the project name or DLL name.
		Select the entry in the listbox, and select the Write_Reg_File button.
		The ClsId is listed along with the path to the DLL.
		Now you can apply your own Menu entry, A description listed within Inventor
		under Tool>AddIn...
		The default Registry File Path is taken from the Path to the DLL.
		When the Write button is selected The Template Registry File is parsed and the
		Fields are replaced with the new values.
		The message box shown let you choose to have the created/modified registry file
		and the DLL to be entered in the Registry using the commands:
			regsvr32.exe /s inProcServer.DLL
			regedit.exe  /s AddIn.reg
  

	Required files:
		Template Registry file named: AddInTemplate.reg, placed in the same directory as
		the program file RegAddIn.exe
		The Registry Template file should look like this:

-------------------------------------------------------------------------------------------------
REGEDIT4

[HKEY_CLASSES_ROOT\CLSID\#Clsid]
@="#MenuName"

[HKEY_CLASSES_ROOT\CLSID\#Clsid\Description]
@="#Description"

[HKEY_CLASSES_ROOT\CLSID\#Clsid\Implemented Categories\#INVCLSID]

[HKEY_CLASSES_ROOT\CLSID\#Clsid\Required Categories]

[HKEY_CLASSES_ROOT\CLSID\#Clsid\Required Categories\#INVCLSID]

[HKEY_CLASSES_ROOT\CLSID\#Clsid\Settings]
"LoadOnStartUp"="1"
"Type"="Standard"
#SUPTDVER
-------------------------------------------------------------------------------------------------


Credits:
	Parts of the program are taken from the examples in the booK:
	"Programming Microsoft Visual Basic 6.0" by Francesco Balena

Modifications: 
	Version 20021209 (edits by CBliss)
		Added support for new R6 Class ID's.
		Added option for using new Version Specific switch (R6 only)
		Added option for saving an Un-register file
		Fix small problem when running multiple reg files in the same session


modifications:
	version 20011224: 
		Added a search for the DLL pathname. The registered InprocServer name
		and it's actual DLL name can be different. When the list is lenghty it
		can be difficult to find the InProcName. the Find DLL function reverse 
		the search: enter the DLL name and the program search for the InProcName.
		usage:
			Enter the name (part of the pathname will do) <Enter> or press Find_DLL
			will start the search from the current entry in the InProcServer list or 
			from the top if nothing is selected. Continuos searches are possible.
			

For any comments you can reach me at:
Anton van Buiten
Betagraphics B.V. 
Holland
avb@betagraphics.nl
December 2001



		
