dotnet / deployment-tools

This repo contains the code to build the .NET deployment tools and installers for all supported platforms, as well as the sources to .NET deployment tools.
MIT License
170 stars 51 forks source link

netcorecheck.exe is missing api-ms-win-crt-stdio-l1-1-0.dll #179

Open sinsedrix opened 2 years ago

sinsedrix commented 2 years ago

Description

image

Configuration

On windows 7, I need netcorecheck.exe in an InnoSetup installer to check if an installation of dotnet runtimes is needed. When I run it, I get an error telling that a dependency is missing: api-ms-win-crt-stdio-l1-1-0.dll

Is there a way to auto-udpate netcorecheck or should I use another tool?

NikolaMilosavljevic commented 2 years ago

[Triage] PTAL

MSLukeWest commented 2 years ago

@sinsedrix Can you confirm you're asking about Win7 SP1 here?

This seems fixable, if we statically linked some of the MS VC redist binaries. Using dumpbin /imports it looks like there's 8 from the vc redist that we use:

api-ms-win-crt-stdio-l1-1-0.dll api-ms-win-crt-time-l1-1-0.dll api-ms-win-crt-string-l1-1-0.dll api-ms-win-crt-convert-l1-1-0.dll api-ms-win-crt-runtime-l1-1-0.dll api-ms-win-crt-heap-l1-1-0.dll api-ms-win-crt-locale-l1-1-0.dll api-ms-win-crt-math-l1-1-0.dll

I'd want to see how much size this would add to NetCoreCheck.exe before committing to this.