how to install vcredit on windows nanoserver?

sitry sharf 0 Reputation points
2023-10-24T15:09:00.1866667+00:00

i am trying to create a docker image inorder to deploy micro web service using php8.2, iis,nanoserver containers.

when trying to install vcredit on the nanoserver image (part of php8.2 requirements) i am getting the following error: the command VC_redist.x64.exe returned a non-zero code: 3221225781

how do i fix this error and create the image?

Developer technologies | Visual Studio | Setup
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tianyu Sun-MSFT 34,456 Reputation points Microsoft External Staff
    2023-10-25T05:42:03.7433333+00:00

    Hello @sitry sharf ,

    Welcome to Microsoft Q&A forum.

    It seems that Windows Installer(MSI) is not supported on Nano Server, so VC_redist.x64.exe won’t run on Nano Server.

    You need to copy the binaries manually(install VS > make sure to select "Desktop Development with C++" workload and the components like MSVC v143 - VS 2022 … > go to the corresponding CRT folder, for example, for VS 2022 Community, go to C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Redist\MSVC\14.XX.XXXXX\onecore\x64\Microsoft.VC14X.CRT > copy everything under this CRT folder to C:\Windows\System32 in your nanoserver image).

    User's image

    Best Regards,

    Tianyu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.