Solved

Question about Setup Project

Posted on 2004-10-13
5
247 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

752 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