Solved

Question about Setup Project

Posted on 2004-10-13
5
212 Views
Last Modified: 2010-04-24
I have create a setup project xxx.msi in visual studio, it contains two windows application. I have no problem when setup in computers with vs.net. However, when I setup the msi file in a win xp without vs.net, it prompt me to download the .NET framework.

Can I include those dll inside the setup file such that no addition download is needed in client computer?
Thx all
0
Comment
Question by:shwong2
  • 2
5 Comments
 
LVL 7

Accepted Solution

by:
J_Mak earned 500 total points
ID: 12305190
The bottom line is, if the client computer does not have .NET Framework installed, they must install it first before installing your MSI application. However,

There are two ways to solve your problem:

1. Create a deployment program which lets the user know that the .NET Framework distributable will be downloaded from the Microsoft website,

or

2. Create a CD which contains your application as well as the .NET Distributable.

Basically, both options will effectively check whether the .NET Framework has been installed. If it hasn't, it will respond according to which option you have chosen above. I would suggest to opt for the second solution. This is more convenient for the user because no one wants to download a 20Mb file during installation (they want the installation to be quick).

This link will provide you with the apprpriate instructions:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetdep/html/vsredistdeploy1_1.asp

If you scroll down to the section, 'Installing the .NET Framework with the Setup.exe Bootstrapper Sample', all the relevant steps are explained well. It isn't difficult at all. I'm assuming you've tried the bootstrapper way but I also think that you forgot to include a 'settings.ini' file. This is required because it lets the sample bootstrapper know where the .NET Framework distributable is (on the CD or somewhere on your hard disk), and where your application is also (on the CD as well).

Basically, on the CD, you will need the following:

1. your application (.msi)
2. the .NET Framework distributable (dotnetfx.exe - can be found on your pre-requisites CD, or can be downloaded and burnt onto your CD)
3. Setup.exe Bootstrapper sample (found at http://go.microsoft.com/fwlink/?linkid=16426)
4. settings.ini

Here is my settings.ini example:

[Bootstrap]
Msi=Setup.msi
ProductName="Name of your software"

FxInstallerPath=.

So 'Msi' indicates the name of your application found on the CD, 'FxInstallerPath' indicates where dotnetfx.exe is found (CD --> '.' means current directory).

If I have missed any steps, the link that I gave you should have them. I hope that helps!
0
 

Expert Comment

by:smchan
ID: 12305586

Summary: This article describes how to use Microsoft Visual Studio .NET 2003 to deploy Microsoft .NET Framework applications with Dotnetfx.exe, the .NET Framework redistributable package. (8 printed pages)

{{unattributed linkable content removed - ee_ai_construct, cs admin}}
0
 
LVL 7

Expert Comment

by:J_Mak
ID: 12342940
Thankyou AnnieMod and ee_ai_construct for your help.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

This tutorial demonstrates one way to create an application that runs without any Forms but still has a GUI presence via an Icon in the System Tray. The magic lies in Inheriting from the ApplicationContext Class and passing that to Application.Ru…
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now