Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling Download prerequisites from the same location as my application

I currently have a winforms app that is deployed via clickonce deployment. When I try to deploy it from 1 machine it throws the following error:

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

The applicacion I'm trying to deploy has Spanish as its Publish Language, therefore it tries to download the language pack (dotNetFx40LP_Full_x86_x64es.exe)

I did download the files necessary as the link in the error suggest but the problem persists. I added the files as suggested in the error link to the folder %ProgramFiles%\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages (for Visual Studio 2010). I also tried to add them to %ProgramFiles%\Microsoft SDKs\Windows\v8.0A\Bootstrapper\Packages (for Visual Studio 2012)

This problem started when I installed Visual Studio 2012 on my machine. I now have Visual Studio 2010 and 2012 installed side by side on Windows 7 Professional (64-bit). It was working fine before. It's also working fine on another machine that doesn't have Visual Studio 2012 installed.

I tried to publish the app with Visual Studio 2010 and 2012 and none work. Also, if I change the language to English, it publishes fine.

Uninstalling Visual Studio 2012 and publishing in English are not valid options.

Any insights are welcome.

like image 725
lopezbertoni Avatar asked May 31 '13 19:05

lopezbertoni


People also ask

How do I add prerequisites in setup project?

To access the dialog box, select a project node in Solution Explorer, and then select Project > Properties. When the Project Designer appears, select the Publish tab, and then select Prerequisites. For Setup projects, on the Project menu, click Properties.

How do I install prerequisites in Windows Installer deployment?

With a project selected in Solution Explorer, on the Project menu click Properties. Select the Publish pane. Click the Prerequisites button to open the Prerequisites dialog box. In the Prerequisites dialog box, make sure that the Create setup program to install prerequisite components check box is selected.


3 Answers

Vs 2013 targetting Dot net 4.5 64 bit will have here

the path in registry is HKLM\Software\Wow6432Node\Microsoft\GenericBootstrapper\11.0 for Vs 2013 targeting dot net 4.5

value will be Program Files\Microsoft SDKs\Windows\v8.0A\Bootstrapper\Packages

like image 144
Sundara Prabu Avatar answered Oct 19 '22 16:10

Sundara Prabu


Correct paths are these,

C:\Program Files\Microsoft Visual Studio 14.0\SDK\Bootstrapper\Packages on a 32-bit system

C:\Program Files (x86)\Microsoft Visual Studio 14.0\SDK\Bootstrapper\Packages on a 64-bit system.

Other suggested ones didn't work for me.

like image 38
BCE Avatar answered Oct 19 '22 18:10

BCE


After some digging I found this thread in which some similar problem is attacked. It doesn't have anything to do with VS 2010 and 2012 side by side installation. I had to add the language file installer to the appropriate language folder, NOT the root folder as other links suggest.

like image 2
lopezbertoni Avatar answered Oct 19 '22 17:10

lopezbertoni