Click here to Skip to main content
11,647,600 members (63,041 online)
Rate this: bad
good
Please Sign up or sign in to vote.
Hi experts,

I have created an application that requires .NET 2.0. I added a setup project to check for and install the .NET framework 2.0 prior to the application. Since end users will most likely install the application on laptops on construction sites in the middle of nowhere, I set the framework setup source to "same as application setup", which is a removable device (CD, USB, whatever).

The setup.exe indeed installs the .NET framework. I can see it in "Add/Remove programs" and .NET applications work like they should.

As I can see in "Add/Remove programs", a german language pack is being installed as well (I live and work in germany). My customer wants to distribute the software all over the world and therefore does not want a german language pack to be installed everywhere. He prefers a culture-neutral installation, but english would be OK.

Simply deleting "langpack.exe" from .NET's installation package prior to the installation breaks the installation package ("Error: File not found").
Replacing "langpack.exe" with a dummy executable results in some verification error:"langpack.exe has changed since it was initially published". Obviously langpack.exe has to be signed. Otherwise WinVerifyTrust returns -2146762496 (taken from the setup log).

How can I stop the .NET setup from installing the german language pack?
Posted 24-Nov-11 20:39pm
lukeer15.7K
Edited 27-Nov-11 23:38pm
v4

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

A very simple way is to create a dummy exe (does nothing) file in the name of LANGPACK.EXE and distribute that to the non German users.
  Permalink  
Comments
lukeer at 25-Nov-11 3:17am
   
I tried that, but .NET setup notices that "langpack.exe has changed since it was initially published".

langpack.exe has to be signed. Otherwise WinVerifyTrust returns -2146762496.

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

  Print Answers RSS
0 jyo.net 500
1 F-ES Sitecore 370
2 DamithSL 335
3 OriginalGriff 322
4 CPallini 290
0 OriginalGriff 1,277
1 jyo.net 994
2 DamithSL 946
3 Sergey Alexandrovich Kryukov 853
4 CPallini 760


Advertise | Privacy | Mobile
Web01 | 2.8.150804.2 | Last Updated 28 Nov 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100