How to add .Net framework prerequisite to setup install

后端 未结 4 1088
不思量自难忘°
不思量自难忘° 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.

提交回复
热议问题