Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Publishing with Visual Studio 2008 Express gives errors when I publish with prerequisites from install location
 

Publishing with Visual Studio 2008 Express gives errors when I publish with prerequisites from install location

In the publishing options, if I select "Create setup program to install prerequisite components" and select "Download prerequisites from the same location as my application", I get the following errors.

Error 1 Cannot publish because a project failed to build. 1 1

Error 2 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\instmsia.exe' in item '.NET Framework 2.0 (x86)' can not be located on disk. See Help for more information.

Error 3 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\WindowsInstaller-KB893803-v2-x86.exe' in item '.NET Framework 2.0 (x86)' can not be located on disk. See Help for more information.

Error 4 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\dotnetfx.exe' in item '.NET Framework 2.0 (x86)' can not be located on disk. See Help for more information.

I found a number of topics dealing with this problem under VS2005 Expressthat say the required files should be put in a specific location (C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bootstrapper\Packages\DotNetFX). I put the files there, and in a similar location in the VS2008 install folder, but neither place worked.

The help says it should ask for the location of these files if they aren't found, but it doesn't, it just gives me the error.

What else can I do?

Thanks
-drew
Drew Keller  Wednesday, April 02, 2008 10:15 PM


Hej,

I also struggle with that problem, but now I can tell how to do it.

you need to copy the .Net 2.0 framework (setup files) into the

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages

sofia
Sofia Grave  Thursday, April 03, 2008 7:48 AM


Error 3 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\WindowsInstaller-KB893803-v2-x86.exe' in item '.NET Framework 2.0 (x86)' can not be located on disk. See Help for more information.

this file is in the msi31 folder ein the
\VBExpress\WCU\msi31

and copy to
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\WindowsInstaller3_1

sofia
Sofia Grave  Thursday, April 03, 2008 7:58 AM

#1: Fix your build error.

#2-4: Why not use the option to download the .Net 2.0 framework from the vendor's web site? Seems like a lot less trouble than what you are going through. We deploy our application to thousands or people, and have found that to be very effective.

RobinS.

GoldMail.com

RobinDotNet  Thursday, April 03, 2008 2:49 AM


Hej,

I also struggle with that problem, but now I can tell how to do it.

you need to copy the .Net 2.0 framework (setup files) into the

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages

sofia
Sofia Grave  Thursday, April 03, 2008 7:48 AM


C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFX35

You can get the DotNetFX35 from the installiton files, if you have the instalation setup in your computer the folder is
\VBExpress\WCU\dotNetFramework

you have to copy the 4 folders and the setup file into the C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFX35

sofia
Sofia Grave  Thursday, April 03, 2008 7:54 AM


Error 3 The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX\WindowsInstaller-KB893803-v2-x86.exe' in item '.NET Framework 2.0 (x86)' can not be located on disk. See Help for more information.

this file is in the msi31 folder ein the
\VBExpress\WCU\msi31

and copy to
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\WindowsInstaller3_1

sofia
Sofia Grave  Thursday, April 03, 2008 7:58 AM
RobinDotNet wrote:

#1: Fix your build error.



FYI for anyone else finding this thread, this error went away once the prerequisite files were placed in the correct location.

Not everyone installs on a computer that has access to the web. So requiring a download is a poor solution for that case.
Drew Keller  Thursday, April 03, 2008 1:28 PM

That's true. Good luck. Glad you found an answer.

RobinS.

RobinDotNet  Thursday, April 03, 2008 11:28 PM

You can use google to search for other answers

Custom Search

More Threads

• Unique deployment problem
• copyright
• Forced to enter an Installation URL when same as FTP publishing location
• app install to Windows NT
• How to set shortcut key for a windows application during setup and deployment project?
• No Touch Deploying From A Unix Server?
• Any experiences deploying .Net 3.5 as a prerequisite?
• bringing my program to the web
• Publishing multiple project solution file
• Signing multiple dlls of third party for deployment