?
Solved

Installing .NET framework through MSI

Posted on 2005-05-01
7
Medium Priority
?
1,166 Views
Last Modified: 2008-02-01
Hi all,
How do I wrap the .NET framework installation into my app installation process (msi) but not as a link (InstallURL).
I wan't to be able to install the framework on a machine that is not connected to network.
Thanks!
Udi.
0
Comment
Question by:udibs
  • 3
4 Comments
 
LVL 21

Expert Comment

by:Yurich
ID: 13905694
try the following:

right-click your setup project, select view, select custom action.

right-click install, then browse to your dotnetfx.exe file

it will start installation of dotnet framework support. keep in mind, it will increase the size of your deployment file by 20+ MB

also you can try to check this linke:
http://www.codeguru.com/Csharp/.NET/net_vs_addins/visualstudioadd-ins/article.php/c7245/

a good article for deployments

regards
0
 

Author Comment

by:udibs
ID: 13907375
Thanks Yuri,
I still don't understand. I've installed the Visual Studio 2003 bootstrapper plug in (from gotdotnet).
When I build the setup project I can see the dotnetfx.exe in the setup project output directory, along with my msi,
but how do I refere to it from the custom action view?
I mean in the custom action view | Install I can see the target dir (application folder) and under it only
the primary output of my C# project. I don't see the dotnetfx.exe there. I don't see it in the file view either.
The plug in just put it in the output directory for me when I build the setup project.
Is it supposed to be launched automatically, or should I instruct the user to launch it manually if necessary?
What it the framework is already installed? does the dotnetfx.exe just exits quietly or does it install the framework anyway?

The reason I can't check the answer for that is that when I try to install my msi I get an error code 2705.
Any idea?

I guess I can do this whole process manually, meaning - adding the dotnetfx.exe to my Files view, and then execute it from the
custom actions view (Is that what you meant in the first place?), if so - How do I check if the framework is already installed on the target machine, since I wouldn't want to install the dotnetfx.exe in this case.

Here is extra 50 points.
Thanks again!
Udi.
0
 
LVL 21

Accepted Solution

by:
Yurich earned 400 total points
ID: 13913277
actually i did mean to have it installed manually, sorry wasn't clear enough. using bootstrap is better than manual of course, bootstrapper should do everything automatically, that's what it does:

Checks to see if a specified version of the .NET Framework is installed on the target computer.
If the specified version is not installed, it launches a silent installation of Dotnetfx.exe and, if necessary, upgrades to Windows Installer 2.0. A computer reboot might be required.
Installs the host .NET Framework application. If a computer reboot is required, it is suppressed until the host application is finished installing.

and I'm sure you have been on that link already:
http://www.microsoft.com/downloads/details.aspx?FamilyId=BF253CFD-1EFC-4FC5-BA7E-6A6F21403495&displaylang=en

regards

0
 
LVL 21

Expert Comment

by:Yurich
ID: 14101095
unless it's stated that the way I suggested didn't work (which should have worked), I'd say, the answer was given.
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

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…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month15 days, 2 hours left to enroll

840 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