0
I’m trying to create an installer for my Windows Forms C# application that should download its prerequisites from the same location of the application, ie, install offline the prerequisites.
In addition to . Net Framework 4.8 I also need the . Net Desktop Runtime 5.0.7(x64).
Following forums and recommendations, I was able to include the . Netframework successfully by inserting the . msi installer in the following locations:
"C: Program Files (x86) Microsoft Sdks Clickonce Bootstrapper Packages Dotnetfx48 ndp48-x86-x64-Allos-enu.exe"
and
"C: Program Files (x86) Microsoft Sdks Clickonce Bootstrapper Packages Dotnetfx48 en ndp48-x86-x64-Allos-ptb.exe".
From that I did the same thing for . Net Desktop Runtime 5.0.7(x64) and inserted the installer . msi in the following location:
"C: Program Files (x86) Microsoft Sdks Clickonce Bootstrapper Packages net5desktopruntime_x64 windowsdesktop-Runtime-5.0.7-win-x64.exe"
Even with the folder in that location, when trying to build the installer project I have the following error:
ERROR: To enable the option "Download prerequisites from the same location as my application" in the Prerequisites dialog box, you must download the file "net5desktopruntime_x64 windowsdesktop-Runtime-5.0.7-win-x64.exe" for the item "Runtime of . NET Desktop 5.0.7 (x64)" on your local computer. For more information, see http://go.microsoft.com/fwlink/? Linkid=616018.
ERROR: General Failure building bootstrapper
ERROR: Unrecoverable build error - 0x80004005
I had that mistake too for the. Netframework 4.8 and I decided to insert the installer in the Clickoncebootstrapper folder as indicated above, but for the Runtime of . Net Desktop doesn’t work. Am I forgetting or missing something? Can anyone help me?