How to add .Net framework prerequisite to setup install

后端 未结 4 1025
不思量自难忘°
不思量自难忘° 2021-02-04 05:43

I have a C# WinForms project in MS Visual Studio 2017. I have added a Visual Studio Installer Setup Wizard Project to create an installer for my application. Th

相关标签:
4条回答
  • 2021-02-04 05:45

    A few years late, but I did find an answer that worked for me on VS2017.

    Registry key "HKLM\SOFTWARE\Wow6432Node\Microsoft\GenericBootstrapper" contains a "Path" key that shows the path to the bootstrapper files. For me, it was the following:

    C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\

    I checked that path, and there was indeed a "Packages\DotNetFX461" directory there, but it didn't contain the NDP461...ENU.exe file. I just copied the file there and everything worked.

    0 讨论(0)
  • 2021-02-04 05:47

    Just download NDP461-KB3102436-x86-x64-AllOS-ENU.exe file from This Link

    and copy to C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages\DotNetFX461

    0 讨论(0)
  • 2021-02-04 05:58

    For me (VS2017 enterprise) the correct path is (for 4.7.1) C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages\DotNetFX471

    hope this will help

    Benoist LUGNIER

    0 讨论(0)
  • 2021-02-04 06:12

    For Microsoft Visual Studio 2017 the correct folder to add the bootstrapper packages is:

    C:\Program Files (x86)\Microsoft Visual Studio 14.0\SDK\Bootstrapper\Packages\
    

    Links for the various redistributable .NET packages can be found here along with info on different deployment options: https://docs.microsoft.com/en-us/dotnet/framework/deployment/deployment-guide-for-developers

    The error messages give you the correct folders to add to the packages folder. So the file NDP46-KB3045557-x86-x64-AllOS-ENU.exe should be added to a folder "DotNetFX46" under Packages.

    I really do not understand why Microsoft has not taken the steps to make this an automated process or at least provide a step by step guide on how to add the bootstrap packages to different versions on Visual Studio. The procedure and folders have changed several times over the years.

    The public key mismach is most likely due to the fact that there have been at least two versions of the NDP46-KB3045557-x86-x64-AllOS-ENU.exe file distributed with the same filename, but different public keys. Check this link: https://connect.microsoft.com/VisualStudio/feedback/details/1584164/bootstrapper-packages-have-broken-links-and-wrong-public-keys

    0 讨论(0)
提交回复
热议问题