Click here to Skip to main content
15,884,629 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
So I've made a software, I debugged it & it created a Exe when I press it in the folder it works fine, if I move the exe outisde the folder it says the program has stopped working, if I create a folder and add the two dll files with the exe it works, how to I merge those 3 items together or how do I release a standalone exe that people can use even if they dont have all the files I do on my computer.
Posted
Comments
phil.o 28-Oct-15 22:27pm    
Which two dll files? You are not talking about a multi-project solution, nor about any external library referenced. How can we know? Remember, we do not have access to your screen, hard-drive, nor mind :)
Please press the "Improve question" button at the bottom of your question, and qualify it with relevant details about your project/solution.
Christoffer Nilsson 28-Oct-15 23:20pm    
AxInterop.WMPLib.ddl & Interop.WMPLib.dll
phil.o 28-Oct-15 23:25pm    
Unfortunately for you, these are interop libraries, which means non-.NET, unmanaged dlls, of which I don't think it would be possible to incorporate the source code.
You might follow Philippe Mori's advise, and create a setup project that will create a nice-and-clean .msi file with everything included.
Christoffer Nilsson 28-Oct-15 23:28pm    
How would I go by on making one of those MSI's ?
phil.o 28-Oct-15 23:39pm    
Microsoft Visual Studio 2015 Installer Projects would be a good place to start with :)

The only thing that can be said is that if your application references external libraries (controls, for example, or a library to zip and unzip files, or a MVVM framework, or whatever), then you must ditribute these libraries along with your application.

If you have access to the source code of the library, and if its licence allows you to do so, you may instead include the source files of the library in your own project.
This would allow you to get rid of the reference to the library (dll); library objects will be compiled into your own executable, and you won't have to distribute external dlls anymore.

[Edit] Added from comment:
Microsoft Visual Studio 2015 Installer Projects[^] would be a good place to start with :)
[/Edit]
 
Share this answer
 
v3
Thank you Phil.o for the answer!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900