[英]How to check if Visual C++ Redistributable for Visual Studio 2015 is installed on a docker container
How can I verify that my docker setup to install the Visual C++ Redistributable for Visual Studio 2015-2019 (link: https://download.visualstudio.microsoft.com/download/pr/9e04d214-5a9d-4515-9960-3d71398d98c3/1e1e62ab57bbb4bf5199e8ce88f040be/vc_redist.x64.exe ) has been successful? How can I verify that my docker setup to install the Visual C++ Redistributable for Visual Studio 2015-2019 (link: https://download.visualstudio.microsoft.com/download/pr/9e04d214-5a9d-4515-9960-3d71398d98c3/1e1e62ab57bbb4bf5199e8ce88f040be /vc_redist.x64.exe ) 成功了吗?
I used this question as the basis for my answer, however, it seems that when the redistributable is installed on a docker image/container the registry path(s) is/are different.我使用这个问题作为我回答的基础,但是,当可再发行组件安装在 docker 映像/容器上时,注册表路径似乎不同。
From Visual Studio, I selected the container from the Containers window/tree, right-clicked and clicked "Open Terminal Window" and pasted the following command:在 Visual Studio 中,我从容器窗口/树中选择容器,右键单击并单击“打开终端窗口”并粘贴以下命令:
reg query HKEY_CLASSES_ROOT\Installer\Dependencies\ /s /f {f4220b74-9edd-4ded-bc8b-0342c1e164d8}
This gave me the following output:这给了我以下 output:
HKEY_CLASSES_ROOT\Installer\Dependencies\Microsoft.VS.VC_RuntimeAdditionalVSU_amd64,v14\Dependents\{f4220b74-9edd-4ded-bc8b-0342c1e164d8}
(Default) REG_SZ {f4220b74-9edd-4ded-bc8b-0342c1e164d8}
HKEY_CLASSES_ROOT\Installer\Dependencies\Microsoft.VS.VC_RuntimeMinimumVSU_amd64
HKEY_CLASSES_ROOT\Installer\Dependencies\VC,redist.x64,amd64,14.21,bundle\Dependents\{f4220b74-9edd-4ded-bc8b-0342c1e164d8}
HKEY_CLASSES_ROOT\Installer\Dependencies\VC,redist.x64,amd64,14.21,bundle
End of search: 4 match(es) found.
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.