How to add .Net Framework for installation

I have a C # WinForms project in MS Visual Studio 2017 . I added a Visual Studio Installer Setup Wizard project to create an installer for my application. This is my first time using the installer project.

The installer correctly has the prerequisite .Net framework 4.5.1. However, I would like the installer to enable the .Net framework installation instead of asking the user to download and install it separately during the installation (some of the users' computers do not have Internet connections).

I already set the prerequisites for "Download prerequisites from the same place as my application" in the program properties page, but when I create the installation, I see 3 errors as follows:

MISTAKE. To enable “Download prerequisites from the same location as my application” in the “Prerequisites” dialog box, you must download the file “DotNetFX461 \ NDP461-KB3102436-x86-x64-AllOS-ENU.exe” for the “Microsoft” item .NET Framework 4.6.1 (x86 and x64) "on your local computer. For more information, see http://go.microsoft.com/fwlink/?LinkId=616018 .

The linked link really doesn't help, as it relates to ClickOnce settings. I have the mentioned NDP461 exe, but I don’t know where to put it. I see that some other questions relate to creating a bootstrapper package using the MS Bootstrapper package manager, but this seems to have disappeared from the Internet with the closure of MS code.msdn.microsoft, with apparently no replacement information . Also, most of the SO documents and questions I can find on this issue are from older versions of MSVS and are not correlated (at least not enough for me to find out!) Until MSVS 2017.

, exe? ( , MSDN )? bootstrapper? , ? !

PS: , ( ).Net-, ​​ ? ( , -)

. .NET 4.6, NDP46-KB3045557-x86-x64-AllOS-ENU.exe C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages\DotNetFX46. , ( , 3 ):

. "PublicKey" "Microsoft.NET Framework 4.6 (x86 x64)" "C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages\DotNetFX46\NDP46-KB3045557-x86-x64--RUS.exe".

, , ?

+10
4

NDP461-KB3102436-x86-x64-AllOS-ENU.exe

C:\Program Files (x86)\Microsoft SDK\ ClickOnce\Packages\DotNetFX461

+14

Microsoft Visual Studio 2017 bootstrapper:

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

.NET , : https://docs.microsoft.com/en-us/dotnet/framework/deployment/deployment-guide-for-developers

. NDP46-KB3045557-x86-x64-AllOS-ENU.exe "DotNetFX46" "".

, Microsoft , Visual Studio. .

, , , NDP46-KB3045557-x86-x64-AllOS-ENU.exe , . : https://connect.microsoft.com/VisualStudio/feedback/details/1584164/bootstrapper-packages-have-broken-links-and-wrong-public-keys

+2

( VS2017) ( 4.7.1) C:\Program Files (x86)\Microsoft SDK\Bootstrapper ClickOnce\Packages\DotNetFX471

,

+2

, , VS2017.

"HKLM\SOFTWARE\Wow6432Node\Microsoft\GenericBootstrapper" "Path", . :

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

, "Packages\DotNetFX461", NDP461... ENU.exe. .

0

Source: https://habr.com/ru/post/1016697/


All Articles