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









 
DavidHannenAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

13598Commented:
In your solution properties click on the Publish tab.
Then click on the Prerequisites button.
Select Download prerequisites from the component vendor's website
0
13598Commented:
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
0
13598Commented:
Make sure that your Publish Options product name matches your assembly info.
For the icon what .net framework are you using?
0
Cloud Class® Course: Microsoft Office 2010

This course will introduce you to the interfaces and features of Microsoft Office 2010 Word, Excel, PowerPoint, Outlook, and Access. You will learn about the features that are shared between all products in the Office suite, as well as the new features that are product specific.

DavidHannenAuthor Commented:
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
0
DavidHannenAuthor Commented:
I am using .Net Framework 3.5
0
13598Commented:
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.
0
DavidHannenAuthor Commented:
Can you explain why installing VS2008 SP1 on my machine will help? Thanks
0
13598Commented:
Where does it say to install VS2008 SP1?????
Install a fix for .net 3.5 not vs2008 sp1: Start reading at 2.3.1.1
and the download link is for dotnerfx35.exe not vs2008 sp1

2.3.1.1 Enable Samesite for the .NET Framework 3.5 SP1 bootstrapper package
If the .NET Framework 3.5 SP1 bootstrapper package is selected in the Prerequisite dialog box for a Setup project or in ClickOnce publishing, and also the "Download prerequisites from the same location as my application" option is selected, the following build error is shown:  

The install location for prerequisites has not been set to 'component vendor's web site' and the file 'dotNetFx35setup.exe' in item 'Microsoft.Net.Framework.3.5.SP1' cannot be located on disk:


To resolve this issue:

Update the Package Data

Open the [Program Files]\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFx35SP1 folder or %ProgramFiles(x86)%\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\DotNetFx35SP1 on x64 operating systems
Edit the Product.xml file in Notepad.
Paste the following into the < PackageFiles > element:
<PackageFile Name="TOOLS\clwireg.exe"/>
<PackageFile Name="TOOLS\clwireg_x64.exe"/>
<PackageFile Name="TOOLS\clwireg_ia64.exe"/>
Find the element for < PackageFile Name="dotNetFX30\XPSEPSC-x86-en-US.exe" and change the PublicKey value to: 3082010A0282010100A2DB0A8DCFC2C1499BCDAA3A34AD23596BDB6CBE2122B794C8EAAEBFC6D526C232118BBCDA5D2CFB36561E152BAE8F0DDD14A36E284C7F163F41AC8D40B146880DD98194AD9706D05744765CEAF1FC0EE27F74A333CB74E5EFE361A17E03B745FFD53E12D5B0CA5E0DD07BF2B7130DFC606A2885758CB7ADBC85E817B490BEF516B6625DED11DF3AEE215B8BAF8073C345E3958977609BE7AD77C1378D33142F13DB62C9AE1AA94F9867ADD420393071E08D6746E2C61CF40D5074412FE805246A216B49B092C4B239C742A56D5C184AAB8FD78E833E780A47D8A4B28423C3E2F27B66B14A74BD26414B9C6114604E30C882F3D00B707CEE554D77D2085576810203010001
Find the element for < PackageFile Name="dotNetFX30\XPSEPSC-amd64-en-US.exe" and change the PublicKey value to the same as in step 4 above
Save the product.xml file
 

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
DavidHannenAuthor Commented:
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.
0
DavidHannenAuthor Commented:
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
0
13598Commented:
Did the fix install the missing file: 'DotNetFX35SP1\dotNetFX20\aspnet.msp' ?
What other error messages do you get (or are they warning messages?)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.