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

查看:36
本文介绍了在我的安装项目中包含另一个 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

您可以在此处获取 redist http://www.microsoft.com/downloads/details.aspx?FamilyID=51D4A154-8E23-47D2-A033-764259CFB53B&displaylang=en

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 安装创作,但如果您可以在 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天全站免登陆