在我的安装项目中包含另一个MSI文件 [英] Include another MSI file in my setup project

查看:154
本文介绍了在我的安装项目中包含另一个MSI文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为ASP.NET网站做一个安装程序。我需要确保目标机器已经安装了sqlxml。

I'm trying to make a setup program for an ASP.NET web site. I need to make sure the target machine has sqlxml installed.

我必须验证目标机器是否已经安装了软件,如果没有安装,则在以前或之前启动一个.msi文件在主要安装后。

I must verify the target machine has the software installed, and if not, launch a .msi file either before or after the main installation.

我是一个完整的新手与安装项目,所以也许这是显而易见的,但经过几个小时浏览网页我还没有找到令人满意的解。我一直在阅读关于 WiX 等的信息,但我正在寻找(如果可能的话)一个简单的解决方案。

I'm a complete newbie with setup projects, so maybe this is obvious, but after several hours browsing the web I haven't found a satisfactory solution. I've been reading about WiX, etc. but I'm looking (if possible) for a simple solution.

谢谢你们两个!

了解安装程序无法运行另一个安装程序。我正在考虑类似于先决条件(在项目属性中)的功能。在那里我可以检查一个组件,如果没有,它将被自动安装。我不需要做任何其他事情。但是,对我来说最重要的是安装不会运行,如果不需要。

I understand an installer can't run another one. I was thinking in a functionality similar to Prerequisites (in project properties). There I can check a component and it will be automatically installed if it isn't. I don't need to do anything else. But, the most important thing for me is that the installation won't run if it's not needed.

我也尝试过.msm解决方案,但是找不到任何。也许我可以自己做一个我还没有尝试过。

I also tried the .msm solution, but I couldn't find any. Maybe I can make one myself? I haven't tried it yet though.

推荐答案

看起来你需要连接安装 http://objectmix.com/xml-soap/84668-installing-sqlxml-net- app.html

Looks like you need to 'chain' the installs http://objectmix.com/xml-soap/84668-installing-sqlxml-net-app.html

您可以在这里重新点击 http://www.microsoft.com/downloads/details.aspx?FamilyID=51D4A154-8E23-47D2-A033-764259CFB53B& displaylang = zh-CN

You can get the redist here http://www.microsoft.com/downloads/details.aspx?FamilyID=51D4A154-8E23-47D2-A033-764259CFB53B&displaylang=en

您可以将其添加为安装的预先要求?
您用什么来构建安装?

CAn you add this as a pre-req for your install? What are you using to build the create the install?

编辑:

我看看可以查看如何检查SQLXML已安装并遇到此问题:

http://www.tech-archive.net/Archive/SQL-Server/microsoft.public.sqlserver.xml/2005-04/msg00110.html

我刚刚拥有的系统具有以下密钥HKEY_CLASSES_ROOT \ SQLXMLX(请注意X结尾),因此您可能需要进行更多的调查实际的关键是什么。

The system I am on just now has the following key HKEY_CLASSES_ROOT \ SQLXMLX (note the X at the end), so you might need to do a bit more investigation in to what the actual key is.

我不是Visual Studio安装创作的familer,但如果您可以添加一个条目到AppSearch和RegLocator表,您应该可以检查在安装启动时存在注册表项。请参阅这里

http:// msdn.microsoft.com/en-us/library/aa371564(VS.85).aspx

I'm not familer with Visual Studio install authoring but if you can add an entry to the AppSearch and RegLocator tables you should be able to check for the existance of the registry key when the install starts. See here
http://msdn.microsoft.com/en-us/library/aa371564(VS.85).aspx

Reglocator表给您设置属性的选项如果发现注册表中的值。然后,您可以在自定义操作的条件下使用它。

The Reglocator table gives you the option to set a property with a value from the registry if found. You can then use this in the condition on a custom action.

很多要放在一起,但我希望它能够向正确的方向移动。

A lot to put together, but I hope it move you in the right direction.

这篇关于在我的安装项目中包含另一个MSI文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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