Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Express ClickOnce - Can't Publish .NET 4.5 Offline Installer with application

I'm trying to publish an application with a pre-req being .NET 4.5. I have Clicked create a setup program to install prereq components and I have selected to include .NET Framework 4.5

I have Selected download pre-req from the following location: and set a link to my server. This is the error when I try Publish it:

To enable 'Download prerequisites from the same location as my application' in the Prerequisites dialog box, you must download file 'DotNetFX45\dotNetFx45_Full_x86_x64.exe' for item 'Microsoft .NET Framework 4.5 (x86 and x64)' to your local machine. For more information, see http://go.microsoft.com/fwlink/?LinkId=239883.

I've tried with .NET 4.5 and .NET 4.5.1, downloaded to local PC and Server and still have the same issue.

Anyone know what the go is? Thanks.

like image 309
AlexP2014 Avatar asked Aug 14 '14 00:08

AlexP2014


2 Answers

I usually set it to get the files from MS so this is off the top of my head but I think that if you add the redist to the solution and than Click on the "Application Files" button in the Publish tab of your project properties and make sure that the .NET 4.5 redistributable is in the list and all the properties are set properly you should be good to go...

like image 156
Dean Kuga Avatar answered Nov 08 '22 06:11

Dean Kuga


Have you followed the instructions in the link? http://msdn.microsoft.com/en-us/library/hh873130(v=vs.110).aspx

You need to download and place the installer in the appropriate directory then map it inside the XML (the instructions under heading "To add an installer package for the .NET Framework 4.5").

like image 38
AllMadHare Avatar answered Nov 08 '22 05:11

AllMadHare