Skip to content

Commit af4968d

Browse files
Update windows "ReDist" devkit creation doc (#4303)
* Update windows devkit creation doc Signed-off-by: Andrew Leonard <[email protected]> * Update windows devkit creation doc Signed-off-by: Andrew Leonard <[email protected]> * Update windows devkit creation doc Signed-off-by: Andrew Leonard <[email protected]> * Update windows devkit creation doc Signed-off-by: Andrew Leonard <[email protected]> * Update windows devkit creation doc Signed-off-by: Andrew Leonard <[email protected]> * Update windows devkit creation doc Signed-off-by: Andrew Leonard <[email protected]> * Update windows devkit creation doc Signed-off-by: Andrew Leonard <[email protected]> * Update windows devkit creation doc Signed-off-by: Andrew Leonard <[email protected]> --------- Signed-off-by: Andrew Leonard <[email protected]>
1 parent f4bcbeb commit af4968d

File tree

1 file changed

+28
-22
lines changed

1 file changed

+28
-22
lines changed

docs/CreateWindowsReDistDevKit.md

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,26 @@ release can be identically reproduced including the VS Redistributable DLLs.
88

99
To extract the required Redist DLLs, the safest and easiest way is to locally install an "all architecture" installation of Visual Studio and the Windows SDK as follows:
1010

11-
### Install required version of Visual Studio and WIndows SDK
11+
### Install required version of Visual Studio and Windows SDK
1212

1313
1. Determine the "Build Tools" version install bootstrapper required and download from here: https://learn.microsoft.com/en-us/visualstudio/releases/2022/release-history#fixed-version-bootstrappers
1414

15+
- If re-building an existing ReDist devkit, for the required VS Toolset version check the versions for the release: https://github.com/adoptium/devkit-binaries/releases
16+
- eg. "vs2022_redist_14.40.33807_10.0.26100.1742", is VS2022 version 17.10.3, containing MS Toolset version "14.40.33807"
17+
1518
2. Install locally Visual Studio on a Windows x64 VM using the following command:
1619

1720
```sh
1821
./vs_BuildTools.exe --passive --norestart --wait --arch all --add "Microsoft.VisualStudio.Workload.NativeDesktop;includeRecommended;includeOptional" --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.Tools.ARM64 --add Microsoft.VisualStudio.Component.VC.ATL.ARM64 --add Microsoft.VisualStudio.Component.VC.MFC.ARM64
1922
```
2023

21-
3. Determine the required version of the "Windows SDK" from here: https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/
24+
3. Install the required version of the "Windows SDK"
25+
26+
- If re-building an existing ReDist devkit, for the required "Windows SDK" version check the versions for the release: https://github.com/adoptium/devkit-binaries/releases
2227

23-
- Note the point version, eg."10.0.26100.1742"
28+
- eg. "vs2022_redist_14.40.33807_10.0.26100.1742", is SDK version "10.0.26100.1742".
2429

25-
- Download the Windows SDK "Installer" from this page
30+
- Download the Windows SDK "Installer" from the SDK download (https://developer.microsoft.com/en-us/windows/downloads/windows-sdk/), or archives (https://developer.microsoft.com/en-us/windows/downloads/sdk-archive/index-legacy).
2631

2732
4. Run the Windows SDK "Installer" locally to install the required Windows SDK Redist UCRT DLLs
2833

@@ -32,18 +37,18 @@ To extract the required Redist DLLs, the safest and easiest way is to locally in
3237

3338
```sh
3439
devkit.info
35-
arm64/
40+
arm64\
3641
<arm64 ReDist DLLS>
37-
x64/
42+
x64\
3843
<x64 ReDist DLLS>
39-
x86/
44+
x86\
4045
<x86 ReDist DLLS>
41-
ucrt/DLLs/
42-
arm64/
46+
ucrt\DLLs\
47+
arm64\
4348
<arm64 UCRT DLLs>
44-
x64/
49+
x64\
4550
<x64 UCRT DLLs>
46-
x86/
51+
x86\
4752
<x86 UCRT DLLs>
4853
```
4954

@@ -66,19 +71,19 @@ C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx
6671
3. Copy the following MSVC Redist DLLs for each architecture (arm64, x64, x86) from the MSVC Redist folders into the temporary directory you created:
6772

6873
```sh
69-
cp C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\arm64\Microsoft.VC143.CRT\vcruntime140.dll win_devkit/arm64
70-
cp C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\arm64\Microsoft.VC143.CRT\vcruntime140_1.dll win_devkit/arm64
71-
cp C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\arm64\Microsoft.VC143.CRT\msvcp140.dll win_devkit/arm64
74+
copy "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\arm64\Microsoft.VC143.CRT\vcruntime140.dll" win_devkit/arm64
75+
copy "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\arm64\Microsoft.VC143.CRT\vcruntime140_1.dll" win_devkit/arm64
76+
copy "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\arm64\Microsoft.VC143.CRT\msvcp140.dll" win_devkit/arm64
7277

73-
cp C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\x64\Microsoft.VC143.CRT\vcruntime140.dll win_devkit/x64
74-
cp C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\x64\Microsoft.VC143.CRT\vcruntime140_1.dll win_devkit/x64
75-
cp C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\x64\Microsoft.VC143.CRT\msvcp140.dll win_devkit/x64
78+
copy "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\x64\Microsoft.VC143.CRT\vcruntime140.dll" win_devkit/x64
79+
copy "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\x64\Microsoft.VC143.CRT\vcruntime140_1.dll" win_devkit/x64
80+
copy "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\x64\Microsoft.VC143.CRT\msvcp140.dll" win_devkit/x64
7681

77-
cp C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\x86\Microsoft.VC143.CRT\vcruntime140.dll win_devkit/x86
78-
cp C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\x86\Microsoft.VC143.CRT\msvcp140.dll win_devkit/x86
82+
copy "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\x86\Microsoft.VC143.CRT\vcruntime140.dll" win_devkit/x86
83+
copy "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Redist\MSVC\xx.yy.zzzzz\x86\Microsoft.VC143.CRT\msvcp140.dll" win_devkit/x86
7984
```
8085

81-
4. Find the correct Windows Kit UCRT folder, it should be located under folder:
86+
4. Find the correct Windows Kit UCRT Redist folder with the files installed by the SDK Installer. Note, if the SDK is installed from a specific SDK installer, then the Redist folder it installed into will likely be ".0", not necessarily the eg.".1742" SDK installer version:
8287

8388
```sh
8489
C:\Program Files (x86)\Windows Kits\10\Redist\10.0.xxxxx.0\ucrt
@@ -87,15 +92,16 @@ C:\Program Files (x86)\Windows Kits\10\Redist\10.0.xxxxx.0\ucrt
8792
5. Copy the entire "ucrt" sub-folder containing the DLLs/(arm64, x64, x86), eg.
8893

8994
```sh
90-
cp -r "Program Files (x86)/Windows Kits/10/Redist/10.0.26100.0/ucrt" win_devkit
95+
mkdir win_devkit\ucrt
96+
xcopy /s "c:\Program Files (x86)\Windows Kits\10\Redist\10.0.xxxxx.0\ucrt\*" win_devkit\ucrt
9197
```
9298

9399
6. Create the required devkit.info metadata file with the following content:
94100

95101
The ADOPTIUM_DEVKIT_RELEASE must match the desired published https://github.com/adoptium/devkit-binaries/releases tag. The chosen format for a release tag is vs2022_redist_&lt;VS version&gt;_&lt;SDK version&gt;, eg.
96102

97103
```sh
98-
ADOPTIUM_DEVKIT_RELEASE=vs2022_redist_14.40.33807_10.0.26100.0
104+
ADOPTIUM_DEVKIT_RELEASE=vs2022_redist_14.40.33807_10.0.26100.1742
99105
```
100106

101107
7. Zip the contents

0 commit comments

Comments
 (0)