如何从引导程序包创建可运行的设置?
我想在不满足某些先决条件的用户计算机上安装 .NET 4.0 应用程序。
我需要能够在安装程序中定义这些先决条件的安装顺序,因为它们相互依赖(.NET 4.0、Windows Installer 4.5、SQL Server 2008 R2 等)。
据我所知,这可以通过以下方式实现:
创建自定义引导程序并将其作为先决条件包含在我的 Visual Studio 安装项目中:我正在进行静默安装,因此无法通过这种方式向用户提供适当的反馈。我不想这样做。
使用 dotNetInstaller 等工具。
创建自定义安装程序,以正确的顺序安装所有先决条件,最后安装应用程序本身。
创建自定义安装程序,
但是,我想使用通常在以下路径下找到的默认引导程序包中定义的安装条件: c:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\
所以我的问题是:我怎样才能使引导程序包中的单个可执行文件使用 XML 文件中定义的安装条件(重新创建它们会很麻烦)?我想将这个单一可执行文件与 dotNetInstaller 或我的自定义安装程序一起使用。
或者,我如何告诉 dotNetInstaller 使用这些软件包,而不必手动重新创建所有安装条件?
I would like to install a .NET 4.0 application on the user's machine that does not meet certain prerequisites.
I need to be able to define the installation order of these prerequisites in my installer, because they depend on each other (.NET 4.0, Windows Installer 4.5, SQL Server 2008 R2 and others).
AFAIK this is doable via the following ways:
Creating a custom bootstrapper and include it as a prerequisite in my Visual Studio Setup Project: I'm doing silent installations so I can't provide appropriate feedback to the user this way. I don't want to do this.
Using tools like dotNetInstaller.
Creating a custom installer, that installs all the prerequisites in the correct order and finally the application itself.
However I would like to use the install conditions defined in the default bootstrapper packages found usually under the following path: c:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\
So my question is: how can I make a single executable out of a bootstrapper package that uses the installation conditions (recreating them would be bothersome) defined in the XML files? I would like to use this single executable with dotNetInstaller or my custom installer.
Alternatively how can I tell dotNetInstaller to use these packages instead of having to recreate all the install conditions manually?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以做的是创建一个带有 UI 的本机应用程序,以便您可以向用户传达正在发生的事情。将 .Net 4.0 和安装文件嵌入到本机应用程序中,并在系统满足先决条件时运行它们。我在 http://blog.foldertrack.com/?p=45 上写了一篇关于执行此操作的博客文章
What you could do is create a native app with a UI so that you can communicate to the user what is going on. Embed your .Net 4.0 and your setup files into the native app and run them when the system meets the prerequisites. I wrote a blog post on doing this at http://blog.foldertrack.com/?p=45