Click here to Skip to main content
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 21:39pm
lukeer15.1K
Edited 28-Nov-11 0:38am
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 OriginalGriff 277
1 Maciej Los 210
2 BillWoodruff 205
3 Jochen Arndt 180
4 Sergey Alexandrovich Kryukov 165
0 OriginalGriff 5,130
1 DamithSL 4,157
2 Maciej Los 3,650
3 Kornfeld Eliyahu Peter 3,460
4 Sergey Alexandrovich Kryukov 2,811


Advertise | Privacy | Mobile
Web02 | 2.8.141216.1 | Last Updated 28 Nov 2011
Copyright © CodeProject, 1999-2014
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