Visual Studio 2017 Installer Project - include VC++ 2015 Redistributable

前端 未结 2 2069
情书的邮戳
情书的邮戳 2020-11-29 14:03

I am creating the installer for my application using a \"Visual Studio Installer\" project type in Visual Studio 2017.

I want my installer to install visual c++ redi

2条回答
  •  借酒劲吻你
    2020-11-29 14:40

    You can't run that redistributable as a custom action because it's an MSI-based install, and you cannot run recursive MSI installs (yours calling the VC redist one).

    In Visual Studio setup projects you're supposed to use the Prerequisites feature. Right-click the setup project in Solution Explorer, choose Properties, then Prerequisites. This will build a setup.exe to install prerequisites followed by your MSI file. As far as I can tell, the Microsoft Visual C++ 14 is the Visual Studio 2015 runtimes.

提交回复
热议问题