Link to home
Start Free TrialLog in
Avatar of DavidHannen
DavidHannenFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Where do I place EXE files in a VB.NET Dployment Project

Hi Experts,

I have created a VB.NET forms application with a SQL Server Express 2008 back end.

I need to add the SQL Server and Installer files to the deployment project because many users will be deploying the app where they do not have web access to download the files.

I have added the files to the project Application path, but when I build the Deployment project it errors with the message:

"The install location for prerequisites has not been set to 'component vendor's web site' and the file 'DotNetFX35SP1\dotNetFX20\aspnet.msp' in item '.NET Framework 3.5 SP1' can not be located on disk. See Help for more information."

Can anyone tell me where I have to put these files for the build to succeed?

I am also having difficulty getting the install path correct on the end users machine with an icon. I want the application to be on the programs menu under the application name with an Icon - but in test runs it just appeared at the bottom of programs.

Thank you for your help









 
Avatar of 13598
13598
Flag of United States of America image

In your solution properties click on the Publish tab.
Then click on the Prerequisites button.
Select Download prerequisites from the component vendor's website
For the other issue I am not sure I get what you want but on the solution properties
click on the Application tab, click on the Assembly Information button.
Enter your app name in the Company field
Make sure that your Publish Options product name matches your assembly info.
For the icon what .net framework are you using?
Avatar of DavidHannen

ASKER

13598. Thanks - but as I stated in the question, I cannot use the download option. Many users will not have web acccess, or it will be very unreliable and slow.

I therefore need to package all the prerequisite files with the application on the distribution media (CD)

I cannot find a way of doing this.

On the second point - I just want the set up to place the application Icon in C:\Program Files\Application name

At the moment it just dumps the icon under Rogram Files
I am using .Net Framework 3.5
This is what I found on the first issue (sorry I didn't read it through):
I got dotnetfx35.exe from http://download.microsoft.com/download/2/0/e/20e90413-712f-438c-988e-fdaa79a8ac3d/dotnetfx35.exe and followed the steps described in http://download.microsoft.com/download/A/2/8/A2807F78-C861-4B66-9B31-9205C3F22252/VS2008SP1Readme.htm#General%20Issues and everything worked fine.  One caveat to this is after you finish those steps if you have your VS open, close it and open again, since it will not pick up changes that you did.
Can you explain why installing VS2008 SP1 on my machine will help? Thanks
ASKER CERTIFIED SOLUTION
Avatar of 13598
13598
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
The readme file in the URL  you posted opens a file with the title -  "Installing Visual Studio 2008 service pack one" - this was the main evidence I used to conclude we were onto a service pack install :-)

But anyway, thank you very much for the detailed response above. I will get on with digesting it - cheers.
I can see it is the 'real' answer - but on my machine no joy - I have placed somethig wrong and despite several checks now have twice the nuimber of errors - but will go throgh and check this solution again - Thanks
Did the fix install the missing file: 'DotNetFX35SP1\dotNetFX20\aspnet.msp' ?
What other error messages do you get (or are they warning messages?)