EXE在Visual Studio安装项目输出中做什么 [英] What does the EXE do in the Visual Studio setup project output

查看:107
本文介绍了EXE在Visual Studio安装项目输出中做什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们正在Visual Studio 2005中开发一个winforms应用程序,并且我们创建的安装项目会同时输出MSI和EXE.我们不确定EXE文件的用途,因为我们可以在没有EXE的情况下进行安装.

We are working on a winforms app in Visual Studio 2005 and the setup project we created output both an MSI and an EXE. We aren't sure what the EXE file is used for because we are able to install without the EXE.

推荐答案

这是一个引导程序,在启动MSI之前会检查以确保已安装.NET Framework.非常方便.

It's a bootstrapper that checks to make sure that the .NET Framework is installed, before launching the MSI. It's pretty handy.

我建议使用SFX编译器之类的东西将两者打包成一个自解压的.exe,然后启动提取的setup.exe.这样,您可以保留引导程序的好处,但是您的用户仅下载单个内容.

I suggest using something like SFX Compiler to package the two together into one self-extracting .exe and then launch the extracted setup.exe. This way you retain the benefits of the bootstrapper, but your users only download a single thing.

修改:另请参见

  • The official line: MSDN documentation
  • Some bootstrapper customization: some guy's blog post about what he did

这篇关于EXE在Visual Studio安装项目输出中做什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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