Solved

Question about Setup Project

Posted on 2004-10-13
5
241 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

830 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