适用于Visual C ++ 2015的MSI [英] MSI for Visual C++ 2015

查看:131
本文介绍了适用于Visual C ++ 2015的MSI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在公司办公室的三百台计算机上安装可再发行的Visual C ++ 2015.有什么办法可以将EXE转换为MSI.这样可以节省大量时间.

I need to install redistributable Visual C++ 2015 on three hundred computers in a corporate office. Is there any way to convert EXE to MSI. It would save tons of time.

推荐答案

Visual Studio 2015和2017安装程序是使用 WiX构建的工具集.

The Visual Studio 2015 and 2017 installers are built with the WiX toolset.

您可以使用dark工具提取其中的内容:

You can extract the contents of these with the dark tool:

+>dir /b vc_*
vc_redist.x64.exe
vc_redist.x86.exe

+>mkdir x64-extracted

+>c:\local\WiX-3.11.1-bin\dark.exe vc_redist.x64.exe -x x64-extracted
Windows Installer XML Toolset Decompiler version 3.11.1.2318
Copyright (c) .NET Foundation and contributors. All rights reserved.

vc_redist.x64.exe

+>cd x64-extracted

+>dir /b /s
....\vcredist-2015\x64-extracted\AttachedContainer
....\vcredist-2015\x64-extracted\UX
....\vcredist-2015\x64-extracted\AttachedContainer\packages
....\vcredist-2015\x64-extracted\AttachedContainer\packages\Patch
....\vcredist-2015\x64-extracted\AttachedContainer\packages\vcRuntimeAdditional_amd64
....\vcredist-2015\x64-extracted\AttachedContainer\packages\vcRuntimeMinimum_amd64
....\vcredist-2015\x64-extracted\AttachedContainer\packages\Patch\x64
....\vcredist-2015\x64-extracted\AttachedContainer\packages\Patch\x86
....\vcredist-2015\x64-extracted\UX
...

+>

这将包含vc_runtimeMinimum_x64.msi以及包含实际数据的cab1.cab,而vc_runtimeAdditional_x64.msi以及带有MFC dll的另一个cab1.cab.

This will contain the vc_runtimeMinimum_x64.msi along with a cab1.cab that contains the actual data and the vc_runtimeAdditional_x64.msi along with another cab1.cab with the MFC dlls.

请注意,它还将 包含一堆MSU文件(在..\Patch\..下),该子目录包含最低版本的

Note that it will also contain a bunch of MSU files (under the ..\Patch\..) subdir, that contain operating system patches for a minimum version of the Universal C Runtime. The UCRT is the part of the C runtime library that is no longer VS version specific, but an OS component.

这篇关于适用于Visual C ++ 2015的MSI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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