Solved

How can I combine multiple 3rd party DLL files and my VB app into a single exe?

Posted on 2012-03-12
3
528 Views
Last Modified: 2012-03-27
I have a VB.Net 2010 application using multiple 3rd party DLLs and would like to compile this into a single binary executable for distribution.  I've searched around and cannot find much of anything on this that is less than 10 years old outside of a few references to ILMerge, and most indications say that will not work with outside DLLs or VB; the DLLs need to be .net assemblies.
Has anything come available that will combine everything into a single exe file for VB apps?  I'm using vb in the vs.net 2010 Pro package...
0
Comment
Question by:Dalexan
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
ID: 37712211
You are right, ILMerge works only with .NET dlls. So I understand that your dlls are COM dlls, not COM/ActiveX dlls.

COM dlls do not have the same structure as .NET assemblies. And they need to be registered individually in the Windows Registry in order to work, so there is not way to merge them into a single file.

The only thing that you can include in your application is the interop dll that is needed for a .NET application to communicate with an ActiveX component. Since you are in Visual Studio 2010, this is probably already applied to your application, because there is a feature that is on by default and does that for you.

If not, you have some .interop.dll in your resulting compilation. To activate the feature, click on the reference in the References window, and then set Embed Interop Types to True for each of your COM dlls.
0
 

Author Closing Comment

by:Dalexan
ID: 37772330
Not what I wanted to hear, but you did answer my questions and explained what I suspected.  Thank You.  I now know my options and where to go next.
0
 
LVL 40
ID: 37772397
What I would like to hear is that the nigerian who is offering me a fortune is not a fake :-)

Things can be harsh when big changes happen such as moving from COM to .NET.

Wait for the change when users will expect us to design our applications in the Windows 8 metro style interfaces.

That is part of this field of work we have chosen to work in. The continuous changes are in some way what makes it interesting, because you never drop into a routine. But sometimes, those changes, that need to be mixed with a good deal of continuity, are also the part of the job that makes us crazy.

Good luck with you project.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
THe viewer will learn how to use NetBeans IDE 8.0 for Windows to perform CRUD operations on a MySql database.
The viewer will learn how to use and create keystrokes in Netbeans IDE 8.0 for Windows.

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question