Solved

Distributing .NET Framework with Install (All in one .exe file)

Posted on 2003-12-04
8
855 Views
Last Modified: 2011-09-20
Is there a way to distribute the .NET framework (or at least a an .exe that will download it) and the installer created by Visual Studio all in one program?  

Zipping the setup.exe bootstrapper, .ini and msi files is too confusing for some people.  If there isn't an easy way to do this, what is a good solution for those so that people can download one .exe and everything installs?

I'm thinking I could just write a C++ app to check if .NET 1.1 is installed, go get it and install it if not, supressing the restart, go get my program and then install my program, and then restart.  


Are there any good websites that talk about this?
0
Comment
Question by:jjacksn
  • 4
  • 3
8 Comments
 
LVL 6

Accepted Solution

by:
townsma earned 500 total points
ID: 9878684
Because the installer files created by Visual Studio use the .Net Framework, you are quite right that the framework must be installed first.  There is a single file version of the framework that can be distributed, this can be downloaded from the Microsoft Website.

Once you have this you could create a simple batch file that checks for the exisitance of the Framework, and if not installed, install it. Then run your application installer.  But this would be pretty messy, again requiring you to distribute three files, or a zipped version of these files.

A better solution is to do what I do, which is buy a copy of Installshield, this has it's own runtime program, that can install the Framework and you application from a single file.  You can also use it to customise you installation process, as well as installing, any dependencies or runtimes, like Crystal Reports etc.

Hope this helps, good luck.
0
 
LVL 5

Author Comment

by:jjacksn
ID: 9886301
Took your advice, went and downloaded it.  Now, I can't figure out how to

1.  Exclude files that it is automatically includeing when I bulid the install.

2.  Install the .NET Framework with the installer.

Could you assist me?
0
 
LVL 6

Expert Comment

by:townsma
ID: 9893687
Sorry, can you confirm what you downloaded, the .Net Framework, of the Installshield?
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 5

Author Comment

by:jjacksn
ID: 9893761
I found the solution to both of those questions.  However, I am having the following problem

In the installShield program, I select to download the framework from a website.  (our company website).  During the install, when the dotnetfx.exe file is downloaded, the windows installer starts, and asks if you want to install .NET 1.1.  Upon clicking yes, the installer almost immediatley returns to the installer for my .NET application, which then installs.  However, the .NET framework never gets installed.  Have you ever had this problem?  I am not specifying any command line arguemnts for the dotnetfx.exe file.
0
 
LVL 6

Expert Comment

by:townsma
ID: 9908849
Sorry, haven't had this problem. I always include the framework in my build, and this has always installed ok.
0
 
LVL 5

Author Comment

by:jjacksn
ID: 9910635
townsma, no problem.

Do you deploy over the web?  that is our big problem, we don't want to have to force our users to download the extra 24 megs if they already have 1.1 installed.
0
 
LVL 6

Expert Comment

by:townsma
ID: 9927817
Deploying over the web is something we will be moving into early next year.  When we get to this stage I will certainly pass on any tips we learn.

0
 

Expert Comment

by:kkondapalli
ID: 10090036
If the users are on a local network and If you use active directory, then you can create a group policy and add .Net framework (got to extract the exe to create an MSI file) and the application to the policy to be installed on the machines that you want to. Thats the way I distribute my windows apps.
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Introduction This article series is supposed to shed some light on the use of IDisposable and objects that inherit from it. In essence, a more apt title for this article would be: using (IDisposable) {}. I’m just not sure how many people would ge…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

773 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