如何从 .msi 设置中删除 .net Framework 启动条件?
我正在使用 Visual Studio 2010 为我的项目创建 Windows 安装程序(.MSI 包)。我想删除 .net Framework 的启动条件,因为我在自定义操作事件中手动执行相同的检查。对于我的项目,“.net Framework”启动条件的“删除”选项显示为禁用。所以,我无法删除它。
我尝试过以下解决方案:
1)我已经安装了orca3.1。我已在 ORCA 中打开 .msi 并搜索“VSDCA_VsdLaunchConditions”一词。我已删除所有相同的引用并保存了该项目的 .msi 文件。当我尝试在客户端计算机上安装相同的程序时,安装过程中出现以下错误:
错误 1001。错误 1001。 InstallUtilLib.dll:未知错误 事件 ID 11001 的描述来自 找不到源 MsiInstaller。 引发此问题的组件 您的本地未安装事件 计算机或安装是 已损坏。您可以安装或修复 本地计算机上的组件。
如果事件源自另一台计算机,则显示信息必须与事件一起保存。 该活动包含以下信息:
产品:SoundBite -- 错误 1001。 错误 1001。InstallUtilLib.dll: 未知错误。 (空) (空) (空) (空)
2) 我已打开“.vdproj”文件并尝试删除 .net 框架的启动条件和引导条件的引用。当我尝试构建设置时,它会自动添加。 谁能帮我解决这个问题?
I am creating windows installer (.MSI package) for my project using visual studio 2010. I want to remove the launch condition for .net framework as I am manually performing the same check in my custom action events. For my project the “Delete” option for “.net framework” launch condition is showing disabled. So, I am not able to delete it.
I have tried following solutions:
1) I have installed orca3.1. I have open my .msi with in the ORCA and searched for the “VSDCA_VsdLaunchConditions” word. I have deleted all the references for the same and saved the .msi file for the project. When I try to install the same on client machine it is giving following error during installation:
Error 1001. Error 1001.
InstallUtilLib.dll: Unknown error The
description for Event ID 11001 from
source MsiInstaller cannot be found.
Either the component that raises this
event is not installed on your local
computer or the installation is
corrupted. You can install or repair
the component on the local computer.
If the event originated on another computer, the display information had to be saved with the event.
The following information was included with the event:
Product: SoundBite -- Error 1001.
Error 1001. InstallUtilLib.dll:
Unknown error. (NULL) (NULL) (NULL)
(NULL)
2) I have open the “.vdproj” file and try to remove references for the launch conditions and bootstrap condition for .net framework. When I tried to build the setup, it is getting added automatically.
Can anyone help me to short out this issue?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
右键单击“安装项目”。
属性菜单。
单击先决条件按钮。
从先决条件中取消选中 .NET Framework,或通过取消选中“创建安装程序来安装必备组件”来禁用所有先决条件
Right-Click on Setup Project.
Properties Menu.
Click Prerequisites button.
Uncheck .NET Framework from Prerequisites or disable all Prerequisites with uncheck "Create setup program to install prerequisite components"
我设法通过 Orca 删除
_VsdLaunchCondition
表中的唯一行来删除启动条件。I managed to remove the launch condition with Orca dropping the unique row in the
_VsdLaunchCondition
table.您是否在 MSDN 中看到过此信息:如何禁用 .net 框架的默认启动条件?
Have you seen this information in MSDN: How to disable the default launch condition for the .net framework?