Search code examples
visual-studio-2010deploymentvisual-studio-2012clickonceprerequisites

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.


Solution

  • 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.