Message 1 of 6
GUID's for addins

Not applicable
03-19-2007
10:00 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm using VS2005 for some simple IV development and have a couple
questions concerning its use. Yes, I know that the 2.0 framework is not
"officially" supported, but I have got it to work after modifying IV's
config file. Obviously I cannot use the "wizards", but I did get some
benefit by going through the wizard install anyway, I was able to
extract some good templates for addin creation. That leads to my first
question. In said templates there are a few placeholders where the
wizard would plug in some information during project creation which I
must now plug in manually. On the file "AssemblyInfo.vb" one placeholder
is "Project_Name". Not to hard to figure out what goes in there. The
next placeholder in this file is "Assembly: Guid", this is one that I
don't know how to get a value for.
The next file is "StandardAddinServer.vb" (which does not appear in all
the samples, I thought it was mandatory?). Again "Project_Name"
placeholder is here, no biggy. There is also a placeholder called
"GuidAttribute", again I don't know how to arrive at a value for this.
So, should I just make up values for these GUID's?, its worked so far
but there must be a preferred method.
My next question concerns the file "AddinRegistration.vb", which has no
placeholders to deal with, but seems redundant.
This file creates the standard registry entries that IV needs to
discover an addin but obviously it cannot add those entries until the
addin executes. But, the addin will not execute until IV knows its
there, which it will not because the needed registry enties don't exist
yet! Catch-22 anyone?
What I'm getting at here is that for your addin to work you must create
a .reg file for it and run that prior to starting up IV (just like the
old VB6 addins. Thus, in packaging .net addins you must still have this
.reg file and install it during addin installation).
So why have a "AddinRegistration" code file if the info its placing in
the registry is already there?
Thanks for any insight
Perry
questions concerning its use. Yes, I know that the 2.0 framework is not
"officially" supported, but I have got it to work after modifying IV's
config file. Obviously I cannot use the "wizards", but I did get some
benefit by going through the wizard install anyway, I was able to
extract some good templates for addin creation. That leads to my first
question. In said templates there are a few placeholders where the
wizard would plug in some information during project creation which I
must now plug in manually. On the file "AssemblyInfo.vb" one placeholder
is "Project_Name". Not to hard to figure out what goes in there. The
next placeholder in this file is "Assembly: Guid", this is one that I
don't know how to get a value for.
The next file is "StandardAddinServer.vb" (which does not appear in all
the samples, I thought it was mandatory?). Again "Project_Name"
placeholder is here, no biggy. There is also a placeholder called
"GuidAttribute", again I don't know how to arrive at a value for this.
So, should I just make up values for these GUID's?, its worked so far
but there must be a preferred method.
My next question concerns the file "AddinRegistration.vb", which has no
placeholders to deal with, but seems redundant.
This file creates the standard registry entries that IV needs to
discover an addin but obviously it cannot add those entries until the
addin executes. But, the addin will not execute until IV knows its
there, which it will not because the needed registry enties don't exist
yet! Catch-22 anyone?
What I'm getting at here is that for your addin to work you must create
a .reg file for it and run that prior to starting up IV (just like the
old VB6 addins. Thus, in packaging .net addins you must still have this
.reg file and install it during addin installation).
So why have a "AddinRegistration" code file if the info its placing in
the registry is already there?
Thanks for any insight
Perry