Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Setup / February 2004

Tip: Looking for answers? Try searching our database.

how to check if dotnet framework is installed or not ?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Senthil - 19 Feb 2004 14:15 GMT
HI all
i am creating a Setup package for my application.
i do need to check if dotnet framework is installled in thebtarget system or
not and then install the framework ....
how to do this in c# installer code???
,,,
Senthil
Torgeir Bakken (MVP) - 20 Feb 2004 16:07 GMT
> HI all
> i am creating a Setup package for my application.
> i do need to check if dotnet framework is installled in thebtarget system or
> not and then install the framework ....
> how to do this in c# installer code???

Hi

See section "Creating a Single Setup Project to Install a .NET Framework
Application and Dotnetfx.exe" here:

Redistributing the .NET Framework 1.1
http://msdn.microsoft.com/library/en-us/dnnetdep/html/redistdeploy1_1.asp

also:

NET Framework 1.1 Deployment Guide
http://msdn.microsoft.com/library/en-us/dnnetdep/html/dotnetframedepguid1_1.asp

</quote>
Setup.exe Bootstrapper Sample (includes source code)

The Setup.exe Bootstrapper sample demonstrates how to create a single setup
program that, when launched, installs the Microsoft .NET Framework version
1.1 redistributable package (Dotnetfx.exe) and any required language packs,
if necessary, and then installs a .NET Framework application with a
Microsoft Windows Installer-based setup program (.msi file).
</quote>

--
torgeir
Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of the 1328 page
Scripting Guide: http://www.microsoft.com/technet/scriptcenter
Phil Wilson - 20 Feb 2004 22:12 GMT
It's tricky to run C# code to detect whether the framework is installed because
the C# code won't run without the framework!
VS Setup projects already have some internal checks for the framework. If you
look at Launch Conditions, you should see one that lets you put the runtime
version you want in the SupportedRuntimes property. So your MSI file won't get
far without the runtime, then you just need a bootstrapper like the one Torgeir
pointed you at to get the framework etc installed before it runs your MSI file.
Here's another one: http://www.codeproject.com/managedcpp/dotnetsetup.asp
Signature

Phil Wilson [MVP Windows Installer]
----

> HI all
> i am creating a Setup package for my application.
[quoted text clipped - 3 lines]
> ,,,
> Senthil

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.