VS 2010安装程序是否可以包括MCR作为先决条件? [英] Can VS 2010 Setup Include MCR as prerequisite?

查看:111
本文介绍了VS 2010安装程序是否可以包括MCR作为先决条件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目,我正在尝试使用Visual Studio安装项目来构建安装程序.我想知道是否有一种方法可以使MatLab编译器运行时作为前提条件.现在,我必须包含MCRSetup.exe,并让用户先运行它,然后再运行我的安装程序.不太麻烦,但我只是想知道是否有一种方法可以一步一步完成所有事情,以便以与.NET和C ++运行时库相同的方式安装MCR.

I have a project that I'm trying to build an installer for using a Visual Studio setup project. I'm wondering if there is a way to get the MatLab Compiler Runtime included as a prerequisite. Right now I have to include the MCRSetup.exe and have the user run that first and then my installer. Not too onerous but I was just wondering if there is a way to make it all happen in one step, so that the MCR stuff gets installed the same way that .NET and the C++ runtime libs get installed.

我确实尝试过先决条件"选项卡,但是没有选择"MCR"的选择(不是我所期望的).我还尝试将MCRInstaller.exe添加到我的应用程序文件夹"中.这几乎可行(令我惊讶的是). MCR安装程序将自动运行,这似乎是最后一步.但是,它在到达很远之前就失败了,因为它感觉到另一个安装程序正在运行(这是我启动它的项目),并且指示用户首先退出该安装程序.我敢肯定我的用户会感到困惑,我希望能使它更加无缝.

I did try going to the prerequisites tab but there is no choice for selecting the MCR (not that I expected one). I also tried adding the MCRInstaller.exe to my Application Folder. This almost works (much to my surprise). The MCR Installer runs automatically and appears to be the last step. However, it fails before it gets very far because it senses that another installer is running (which is my project that launched it) and the user is instructed to quit that installer first. I'm sure my users will find this confusing and I was hoping to make it a little more seamless.

推荐答案

虽然我发现我得到的信息很丰富,但它并不能真正解决问题.我将不得不将其设置为无法(或不应该)完成的答案.尝试设置第二个单选按钮虽然很有用.当您执行此操作时,安装程​​序将为.NET和C ++可再发行文件创建文件夹.很高兴知道我是否有不想在安装时上网的客户.

While I found the one reply I got informative it didn't really solve the problem. I'm going to have to set as the answer that it can't (or maybe shouldn't) be done. Trying the 2nd radio button in set up was informative though. When you do that the installer creates folders for .NET and C++ restributables. This is good to know if I have customers that don't want to be on the Internet when installing.

不幸的是,除了我在问题中提到的MCR安装程序故障之外,VC ++安装程序也存在一些问题.当我去安装新版本时,VC ++安装程序实际上要运行重新安装.我一点都不明白.我可以看到可以进行卸载.由于我将分发两个依赖于.NET,VC ++和MCR的程序,因此我不得不得出结论,我不应该将安装程序全部包含在内.卸载/重新安装太混乱且不必要地冗长. .NET在后台无缝处理的方式是完美的,但是VC ++和MCR安装程序似乎不支持相同的方法.

Unfortunately, in addition to the MCR installer failure I alluded to in my question, the VC++ installer is somewhat problematic also. When I go to install a new version, the VC++ installer actually wants to run a reinstall. I don't understand this at all. I could see it OFFERING to do an uninstall. Since I will be distributing two programs that rely on .NET, VC++ and the MCR, I have to conclude I shouldn't make the installers all inclusive. The uninstall/reinstall is just too confusing and needlessly lengthy. The way .NET is handled seamlessly behind the scenes is perfect but VC++ and the MCR installers don't appear to support the same methodology.

我将让最终用户进行三次安装,虽然不是很优雅,但是我敢肯定,当需要安装升级时,这将导致最少的问题.

I'm just going to have the final users do three installs, while not very elegant I'm pretty sure this will result in the fewest questions when the time comes to install an upgrade.

这篇关于VS 2010安装程序是否可以包括MCR作为先决条件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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