The Unreal engine bootstrapper relies on this to detect VC presence since version 5.3.
-- v5: wine.inf: Add VC runtime version key.
From: Bernhard Kölbl bkoelbl@codeweavers.com
The Unreal engine bootstrapper relies on this to detect VC presence since version 5.3.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=56695 --- loader/wine.inf.in | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+)
diff --git a/loader/wine.inf.in b/loader/wine.inf.in index cedcf16fba7..bfa1ffefb1b 100644 --- a/loader/wine.inf.in +++ b/loader/wine.inf.in @@ -636,6 +636,29 @@ HKLM,SOFTWARE\Microsoft\Active Setup\Installed Components{6BF52A52-394A-11d3-B1 HKLM,SOFTWARE\Microsoft\Active Setup\Installed Components{6BF52A52-394A-11d3-B153-00C04F79FAA6},"Locale",2,"*" HKLM,SOFTWARE\Microsoft\Active Setup\Installed Components{6BF52A52-394A-11d3-B153-00C04F79FAA6},"Version",2,"12,0,7601,18840"
+; VC Runtime +HKLM,SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Bld",0x10003,0x00008681 +HKLM,SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Installed",0x10003,0x00000001 +HKLM,SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Major",0x10003,0x0000000e +HKLM,SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Minor",0x10003,0x0000002a +HKLM,SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Rbld",0x10003,0x00000000 +HKLM,SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Version",2,"14.42.34433.0" + +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Version",2,"14.42.34433.0" +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Bld",0x10003,0x00008681 +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Installed",0x10003,0x00000001 +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Major",0x10003,0x0000000e +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Minor",0x10003,0x0000002a +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Rbld",0x10003,0x00000000 +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Version",2,"14.42.34433.0" + +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X86,"Bld",0x10003,0x00008681 +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X86,"Installed",0x10003,0x00000001 +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X86,"Major",0x10003,0x0000000e +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X86,"Minor",0x10003,0x0000002a +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X86,"Rbld",0x10003,0x00000000 +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X86,"Version",2,"14.42.34433.0" + ; URL Associations HKCU,Software\Microsoft\Windows\Shell\Associations\UrlAssociations\ftp\UserChoice,"ProgId",,"ftp" HKCU,Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice,"ProgId",,"http"
fixed a copy paste mistake
Piotr Caban (@piotr) commented about loader/wine.inf.in:
+; VC Runtime +HKLM,SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Bld",0x10003,0x00008681 +HKLM,SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Installed",0x10003,0x00000001 +HKLM,SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Major",0x10003,0x0000000e +HKLM,SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Minor",0x10003,0x0000002a +HKLM,SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Rbld",0x10003,0x00000000 +HKLM,SOFTWARE\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Version",2,"14.42.34433.0"
+HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Version",2,"14.42.34433.0" +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Bld",0x10003,0x00008681 +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Installed",0x10003,0x00000001 +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Major",0x10003,0x0000000e +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Minor",0x10003,0x0000002a +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Rbld",0x10003,0x00000000 +HKLM,SOFTWARE\Wow6432Node\Microsoft\VisualStudio\14.0\VC\Runtimes\X64,"Version",2,"14.42.34433.0"
"Version" key is added 2 times.
It will not work for arm and 32-bit only builds. The registration needs to be architecture dependent.
On Thu Feb 20 18:02:02 2025 +0000, Piotr Caban wrote:
It will not work for arm and 32-bit only builds. The registration needs to be architecture dependent.
Do we have some way to do that conditionally?
On Thu Feb 20 18:02:02 2025 +0000, Bernhard Kölbl wrote:
Do we have some way to do that conditionally?
There are examples of such entries in wine.inf.in file (look for `.ntx86`, `.ntamd64`).