Solved

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

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
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…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

932 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

14 Experts available now in Live!

Get 1:1 Help Now