Groups | Blog | Home
all groups > dotnet interop > march 2008 >

dotnet interop : Deployment question


Phil Wilson
3/27/2008 8:11:31 AM
Just a regasm should work. If you use a setup project you don't need to run
regasm. Most tools (inclusing VS Setup Projects) run regasm at design time
and store the registry entries in the MSI file. The install then just puts
the file on the system and writes the registry entries.
--
Phil Wilson
[Microsoft MVP-Windows Installer]
[quoted text, click to view]

paolo
3/27/2008 11:37:42 AM
Hello everyone,

I have a VB6 app that uses a strongly named assembly written in C#2.0.

On my development machine (VB6) i did regasm with /tlb option then added
reference in VB6 project in order to "see" the functions defined there,
everything ok.

Now the question... Is the TLB file needed for deployment or I just can do a
regasm (with NO /tlb) on the client machine so distribute only the DLL?

From the tests I have done seems like that (TLB is needed only at design
time or, maybe, VB6 packs the TLB inside the final exe file...), just wanted
to be sure...

TIA
Paolo

paolo
3/28/2008 8:26:59 AM
"Phil Wilson" <pdjwilson@nospam.cox.net> ha scritto nel messaggio
news:%235tPsuBkIHA.1208@TK2MSFTNGP05.phx.gbl...
[quoted text, click to view]

Thanx for answering, Phil.

I did not know that a setup project could register the DLL for me... Even a
VS6 (old VB6 IDE) setup project would register a dotnet assembly?

I actually wrote a small routine in my VB6 final exe that does the
registration upon first start (just creates an instance of the object and
then captures error 429 and launches registration via a batch).

[quoted text, click to view]

Thanx
Paolo

Phil Wilson
3/28/2008 5:06:50 PM
I'm not sure about that old Visual Studio 6.0 installer - that knows nothing
about .NET assemblies and regasm.
--
Phil Wilson
[MVP Windows Installer]

[quoted text, click to view]

AddThis Social Bookmark Button