Solved

Question about Setup Project

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

863 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

23 Experts available now in Live!

Get 1:1 Help Now