[solved] Missing "api-ms-win-core-path-l1-1-0.dll"

Having trouble installing or compiling FreeCAD? Get help here.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
jimmihenry
Posts: 238
Joined: Sat Jan 11, 2020 3:36 pm

[solved] Missing "api-ms-win-core-path-l1-1-0.dll"

Post by jimmihenry »

Hello,

just downloaded the newest weekly Conda build "FreeCAD_weekly-builds-29923-2022-08-03-conda-Windows-x86_64-py310". And got this error message right in my face :| . Downloaded the DLL. Tried to copy the api-ms-win-core-path-l1-1-0.dll direct to the FreeCAD folder, well did not expect this to work. However i have no clue how these things work, so i am just trying... Than i tired to register the dll via command line, by typing as a admin regsvr32 api-ms-win-core-path-l1-1-0.dll didn't work either.

I did register the FCStdThumbnail.dll that way, this is how i know this trick...

This is my system OS: Windows 7 SP 1 (6.1). Does this mean i am out of the FreeCAD business because of my windows version? Python 3.10 is not running on Win7!
Attachments
api-ms-win-core-path-l1-1-0.dll.png
api-ms-win-core-path-l1-1-0.dll.png (12.62 KiB) Viewed 15432 times
theleetbeagle
Posts: 5
Joined: Wed Aug 03, 2022 3:13 pm

Re: Missing "api-ms-win-core-path-l1-1-0.dll"

Post by theleetbeagle »

You need KB2533623. Google for it. It's on Microsoft's site.
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: Missing "api-ms-win-core-path-l1-1-0.dll"

Post by uwestoehr »

jimmihenry wrote: Thu Aug 04, 2022 12:50 am Does this mean i am out of the FreeCAD business because of my windows version? Python 3.10 is not running on Win7!
Not, also FreeCAD 1.0 will run with Python 3.8.x and this is the last Python version running on Win 7.

However, sooner or later you must leave Win 7, if you like it or not. At least FreeCAD is not to blame for this ;)
User avatar
jimmihenry
Posts: 238
Joined: Sat Jan 11, 2020 3:36 pm

Re: Missing "api-ms-win-core-path-l1-1-0.dll"

Post by jimmihenry »

Thank you for your help guys. I added the api-ms-win-core-path-l1-1-0.dll to my C:\Windows\System32 and C:\Windows\SysWOW64 this returned another error. Than tried to install the Windows-7-KB2533623 however it is already installed on my system. Further more the Visual C++ Redistributable Runtime from 2005 to 2022 is also installed in both flavours 64 and 32 bit.
Attachments
Windows-7-KB2533623.PNG
Windows-7-KB2533623.PNG (9.05 KiB) Viewed 15242 times
User avatar
jimmihenry
Posts: 238
Joined: Sat Jan 11, 2020 3:36 pm

Re: Missing "api-ms-win-core-path-l1-1-0.dll"

Post by jimmihenry »

I did reinstall the latest and greatest Visual-C-Runtimes-All-in-One-Jul-2022, than noticed this site here: https://github.com/nalexandru/api-ms-wi ... K/releases
it is a modified api-ms-win-core-path-l1-1-0.dll for Blender, did not work... The error is still present.

Wait it does work, a gust of stupidity hit me and i did it wrong!
The link to the modiefied DLL is the way to solve the problem. I copied the 64 bit modded api-ms-win-core-path-l1-1-0.dll into FreeCAD's bin folder and copied the modified x86 dll into C:\Windows\SysWOW64 and into C:\Windows\System32. This is what i did, maybe you will get away just pasting the 64bit dll into the FreeCAD bin folder.

Here is the original installation note: https://github.com/nalexandru/api-ms-win-core-path-HACK
Attachments
This is how she goes.PNG
This is how she goes.PNG (331.28 KiB) Viewed 15195 times
Last edited by jimmihenry on Fri Aug 05, 2022 4:16 pm, edited 2 times in total.
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Missing "api-ms-win-core-path-l1-1-0.dll"

Post by GeneFC »

jimmihenry wrote: Thu Aug 04, 2022 10:42 am Wait it does work, a gust of stupidity hit me and i did it wrong![/color][/b] The link to the modiefied DLL is the way to solve the problem. I copied the 64 bit modded api-ms-win-core-path-l1-1-0.dll into FreeCAD's bin folder and copied the modified x86 dll into C:\Windows\SysWOW64 and into C:\Windows\System32.
That is incorrect. The 32-bit version goes into SysWOW64 and the 64-bit version goes into System32. It seems you put the 32-bit version into both system folders.

I tried this fix by adding the 64-bit version into the FreeCAD bin folder, and also (separately) tried by adding into the two W7 system folders. Worked fine in all cases.

One of the Python leaders intentionally made this a requirement specifically to poison Windows 7 usage after the infamous "end of support" a while back. I read a bunch of Python developer bug reports where the reason was made clear.

(Actually, I use Windows 7, Windows 10, and Windows 11 on various computers. But it really annoys me that the Python folks are always quick to deprecate anything but the latest.)

Gene
User avatar
jimmihenry
Posts: 238
Joined: Sat Jan 11, 2020 3:36 pm

Re: Missing "api-ms-win-core-path-l1-1-0.dll"

Post by jimmihenry »

GeneFC wrote: Thu Aug 04, 2022 2:17 pm That is incorrect. The 32-bit version goes into SysWOW64 and the 64-bit version goes into System32. It seems you put the 32-bit version into both system folders....

Gene
Thank you for pointing at my mistake, i believe i read this on a website providing the dll (32bit only) and thank you for teaching me this stuff by the way!
Will do it the proper way this time, i believe it is better to add the dll's to the system than to FreeCAD.

The 32-bit version goes into SysWOW64
The 64-bit version goes into System32


Cheers :).
GeneFC
Veteran
Posts: 5373
Joined: Sat Mar 19, 2016 3:36 pm
Location: Punta Gorda, FL

Re: Missing "api-ms-win-core-path-l1-1-0.dll"

Post by GeneFC »

jimmihenry wrote: Thu Aug 04, 2022 3:08 pm The 32-bit version goes into SysWOW64
The 64-bit version goes into System32
Only Microsoft could make the naming look backward!

Gene
Post Reply