Solved

Combine/Merge VB.Net Application & Resources into Single EXE

Posted on 2014-12-17
1
558 Views
Last Modified: 2014-12-19
I have a VB.NET application, written in visual studio 2012 and targetted to .NET 3.5. I've set it up to detect multiple languages (English, French, Italian, Spanish & German), using the resource file method. The app works, and I've published it. But I end up with 1 application.exe (200kb), plus 4 directories with an application.resources.dll file (100kb) in. I'd like to deploy this as a small standalone app. Is it possible to combine/merge all files into 1 application.exe? I've tried using MS's ILMERGE.exe and it creates a single 600kb merged-application.exe but when I run on a foreign language system, it only runs in English not with the localization that the non merged application does.

Files I have are:
application.exe
\FR\application.resources.dll
\IT\application.resources.dll
\DE\application.resources.dll
\ES\application.resources.dll

I tried ILMERGE.exe with the following command line:
ilmerge.exe c:\temp\application.exe c:\temp\fr\application.resources.dll c:\temp\es\application.resources.dll c:\temp\de\application.resources.dll c:\temp\it\application.resources.dll /out:c:\temp\NewApp.exe
NewApp.exe is created, but resource language don't seem to work now.

How can I get a single EXE with all the language resources working?
0
Comment
Question by:bjblackmore
1 Comment
 
LVL 80

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 40504479
Simple answer is you can't but in your installer you can choose not to install the other unneeded languages
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

830 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