How to Distribute Interop.ADOX.dll?

S

ScottWPNY

I am including a reference to ADOX in a C# project by doing the
following:

In Solution Explorer, right-click the References node and select Add
Reference.
On the COM tab, select Microsoft ADO Ext. 2.7 for DDL and Security,
click Select to add it to the Selected Components, and then click OK.

This creates a dll in my debug and release directory named
Interop.ADOX.dll.

However if the executable is placed in a different path it requires
this dll.

If I copy the Interop.ADOX.dll to the same path where the executable
resides all is fine.

The question is what must be done during an installation?
Can the file Interop.ADOX.dll just be copied to a directory or is there
some type of registration that must take place?

Thanks in advance for any help,
Scott
 
M

Miha Markic [MVP C#]

Hi Scott,

I am including a reference to ADOX in a C# project by doing the
following:

In Solution Explorer, right-click the References node and select Add
Reference.
On the COM tab, select Microsoft ADO Ext. 2.7 for DDL and Security,
click Select to add it to the Selected Components, and then click OK.

This creates a dll in my debug and release directory named
Interop.ADOX.dll.
Yup.


However if the executable is placed in a different path it requires
this dll.
Yup.


If I copy the Interop.ADOX.dll to the same path where the executable
resides all is fine.
Yup.


The question is what must be done during an installation?
Can the file Interop.ADOX.dll just be copied to a directory or is there
some type of registration that must take place?

Basically you have two options:
- copy and paste to the same folder (no registration required)
- strong sign it and install it in GAC (registration required)

I would preffer copy & paste approach.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top