Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 261
  • Last Modified:

Question about Setup Project

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
shwong2
Asked:
shwong2
  • 2
1 Solution
 
J_MakCommented:
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
 
smchanCommented:

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
 
J_MakCommented:
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!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now