Biswo
Biswo

Reputation: 351

Run c# .exe file without installing it (Include DLLs)

I am using c# Desktop base application in Visual Studio 2008 which is zip maker so i want to make .exe file must run without installing it. So can anyone help me to do this?

I want to include all .dll file in that exe and want to run it without installing it.

Upvotes: 1

Views: 3155

Answers (4)

Writwick
Writwick

Reputation: 2163

Click on Build!

The Exe is created in the "\bin\Debug" Folder.

Copy the Exe From the "\bin\Debug" Folder.

If more Dll's are present use IlMerge to pack all the dll and exe to one file.

An alternative to IlMerge is .NETZ

Use the new exe without installation!

Upvotes: 0

Thomas
Thomas

Reputation: 1321

As an alternative to ILMerge, you can package you DLLs as an embedded resource and load them on demand.

See http://blogs.msdn.com/b/microsoft_press/archive/2010/02/03/jeffrey-richter-excerpt-2-from-clr-via-c-third-edition.aspx

Upvotes: 0

Patrick McCurley
Patrick McCurley

Reputation: 2054

ILMerge allows you to package your dependent DLLs into your .exe file.

http://research.microsoft.com/en-us/people/mbarnett/ilmerge.aspx

Upvotes: 2

Zaheer Ahmed
Zaheer Ahmed

Reputation: 28528

By default VS makes .exe file goto your project debug folder and use it.

Upvotes: 0

Related Questions