Solved

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

Posted on 2014-12-17
1
521 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 78

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

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

759 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now