国际化德国.NET设置 [英] Internationalize german .NET setup

查看:76
本文介绍了国际化德国.NET设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,专家,

我创建了一个需要.NET 2.0的应用程序.我在应用程序之前添加了一个安装项目,以检查并安装.NET Framework 2.0.由于最终用户很可能会在无处可去的情况下在建筑工地的便携式计算机上安装应用程序,因此我将框架设置源设置为与应用程序设置相同",这是可移动设备(CD,USB等). >
setup.exe确实安装了.NET框架.我可以在添加/删除程序"中看到它,.NET应用程序可以正常工作.

正如我在添加/删除程序"中看到的那样,还将安装德语包(我在德国工作和生活).我的客户希望在世界各地分发该软件,因此不希望在任何地方都安装德语包.他更喜欢文化中立的装置,但是英语也可以.

在安装之前简单地从.NET的安装包中删除"langpack.exe"会破坏安装包(错误:找不到文件").
用虚拟可执行文件替换"langpack.exe"会导致某些验证错误:自最初发布以来,langpack.exe已更改".显然,langpack.exe必须经过签名.否则,WinVerifyTrust返回-2146762496(从安装日志中获取).

如何停止安装德语包的.NET安装程序?

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?

推荐答案

一种非常简单的方法是在名称中创建一个虚拟exe文件(不执行任何操作)并分发给非德国用户.
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.


这篇关于国际化德国.NET设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆