473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Detecting Whether dot net runtime is installed



Hi ,
When installing my application , i want to check whether the dot net
runtime is available on the users computer and if its not , then i would
like to provide him with a download location.
What is the easiest way to do it?
Thanks/Regards
Sanket Gupta

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #1
10 2334
>When installing my application , i want to check whether the dot net
runtime is available on the users computer and if its not , then i would
like to provide him with a download location.
What is the easiest way to do it?


Check for the presence of mscoree.dll in your %system32% directory. If
it's there, you most likely have the .NET framework installed - if
it's missing, then you don't have the .NET framework.

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Nov 15 '05 #2
Well, if its not there, you're app wont get far would it.

"Marc Scheuner [MVP ADSI]" <m.********@inova.SPAMBEGONE.ch> wrote in message
news:96********************************@4ax.com...
When installing my application , i want to check whether the dot net
runtime is available on the users computer and if its not , then i would
like to provide him with a download location.
What is the easiest way to do it?


Check for the presence of mscoree.dll in your %system32% directory. If
it's there, you most likely have the .NET framework installed - if
it's missing, then you don't have the .NET framework.

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch

Nov 15 '05 #3
>Well, if its not there, you're app wont get far would it.

Well, you'd have to have a NON-.NET app to test it, of course!

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Nov 15 '05 #4
Its something strange.
So to run a Dot net application , we actually need to runa native
application.
Could not microsoft just put in a small piece of code in the exe to
check for and then help in downloading the code.
Microsoft are usually smart people.I dont know how they got confused in
this one.
So what do u all say?
should i use a small vc++ exe to check for the runtime and then take the
user to the download location if required?

would this be the best solution or can we do better?

Thanks for all your help
Regards
Sanket Gupta

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #5
Not always, I can name a huge list of "not so smart" people at microsoft. In
theyre satallite offices which will go unnamed:D

MIBU :D
--

Jack Mayhoff
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

"sanket gupta" <sa****@tsucorp.net> wrote in message
news:ej*************@TK2MSFTNGP10.phx.gbl...
Its something strange.
So to run a Dot net application , we actually need to runa native
application.
Could not microsoft just put in a small piece of code in the exe to
check for and then help in downloading the code.
Microsoft are usually smart people.I dont know how they got confused in
this one.
So what do u all say?
should i use a small vc++ exe to check for the runtime and then take the
user to the download location if required?

would this be the best solution or can we do better?

Thanks for all your help
Regards
Sanket Gupta

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 15 '05 #6
>So to run a Dot net application , we actually need to runa native
application.
No, you don't need to do that - you might need to resort to a native
app to determine whether or not the .NET framework is installed. To
actually RUN the .NET app, you don't need this - the .NET app will run
just fine (or crash, if the framework is missing).
Could not microsoft just put in a small piece of code in the exe to
check for and then help in downloading the code.


Yes, they could - but that would be good ONLY in the very RARE case
where you don't have the .NET framework installed - once it's
installed, and everything's good to go, you would keep on checking for
a condition that's already fulfilled - pretty pointless IMHO.

It comes down to a matter of installation / deployment - in order to
properly run .NET apps, you need to make sure the .NET framework is
there and ready - for now, that's a bit of a pain, since most likely,
it's not there yet. In a couple of years, the .NET framework will be
delivered with all new WIndows versions, and you won't even have to
think about that anymore.

So for now - just make sure YOUR installation checks for the presence
of .NET, and if it is missing, offers to install it. This is
definitely a good feature for any installers out there - check for the
..NET framework and install if needed. But I really don't think it
should be part of all your .NET apps, and their app loader.

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Nov 15 '05 #7
You have a runtime for C installed, and probably VB, and WSH, so why do
people make a big deal out of the CLR?

They already have runtimes installed yet they say the DONT WANT ANY?
Ignorance at its best. If they dont want the .NET CLR they can use other
CLRs that are out there or roll theyre own, since they are whining pussies

"Marc Scheuner [MVP ADSI]" <m.********@inova.SPAMBEGONE.ch> wrote in message
news:md********************************@4ax.com...
So to run a Dot net application , we actually need to runa native
application.


No, you don't need to do that - you might need to resort to a native
app to determine whether or not the .NET framework is installed. To
actually RUN the .NET app, you don't need this - the .NET app will run
just fine (or crash, if the framework is missing).
Could not microsoft just put in a small piece of code in the exe to
check for and then help in downloading the code.


Yes, they could - but that would be good ONLY in the very RARE case
where you don't have the .NET framework installed - once it's
installed, and everything's good to go, you would keep on checking for
a condition that's already fulfilled - pretty pointless IMHO.

It comes down to a matter of installation / deployment - in order to
properly run .NET apps, you need to make sure the .NET framework is
there and ready - for now, that's a bit of a pain, since most likely,
it's not there yet. In a couple of years, the .NET framework will be
delivered with all new WIndows versions, and you won't even have to
think about that anymore.

So for now - just make sure YOUR installation checks for the presence
of .NET, and if it is missing, offers to install it. This is
definitely a good feature for any installers out there - check for the
.NET framework and install if needed. But I really don't think it
should be part of all your .NET apps, and their app loader.

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch

Nov 15 '05 #8
>You have a runtime for C installed, and probably VB, and WSH, so why do
people make a big deal out of the CLR?


True enough.... plus they keep installing patches and service packs
left, right and centre - but not the .NET runtime........ odd........

Marc
================================================== ==============
Marc Scheuner May The Source Be With You!
Bern, Switzerland m.scheuner(at)inova.ch
Nov 15 '05 #9
Hi
I agree with all of you.
But the question is how do i make it work on the pc of an innocent
customers who knows nothing about what the .net runtime is and what is
it for.
I want to be sure that they just dont dump my software because they get
an error like ->Cannot find abc.dll

Whats the best solution to encounter the problem?
Thanks/Regards
Sanket Gupta
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 15 '05 #10
Check out:
http://msdn.microsoft.com/library/de...distdeploy.asp

for how to have your install program automatically install the
framework. Look about halfway down the page at the "Bootstrapping"
section.

Austin Ehlers

On Wed, 29 Oct 2003 10:03:14 -0800, sanket gupta <sa****@tsucorp.net>
wrote:
Hi
I agree with all of you.
But the question is how do i make it work on the pc of an innocent
customers who knows nothing about what the .net runtime is and what is
it for.
I want to be sure that they just dont dump my software because they get
an error like ->Cannot find abc.dll

Whats the best solution to encounter the problem?
Thanks/Regards
Sanket Gupta
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 15 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Astra | last post by:
Hi All I have a Javascript to detect whether a client's browser has flash installed, but as so many people are putting me off relying on Javascript, could you please let me know if you know how...
7
by: Emil Frank | last post by:
Hi all, Via client side JavaScript I need to detect whether Outlook 2002 or 2003 is installed on a client machine. How can I do that using JavaScript? Thanks, Emil
7
by: Aarti | last post by:
I have written a windows service that needs to perform certain functions only if a User is logged in. The problem I am running into is that I get an error if the computer is in the process of being...
1
by: JB | last post by:
All, I am currently working on a project in which I need to detect whether or not NetBEUI is installed on a particular machine. From what I have seen I can find NETBUEI under...
3
by: regtrashcan | last post by:
I have a webpage that detects whether Shockwave Player is installed and the version number. The javascript/vbscript that I use has worked fine until the latest release of the Shockwave Player. I am...
79
by: VK | last post by:
I wandering about the common proctice of some UA's producers to spoof the UA string to pretend to be another browser (most often IE). Shouldn't it be considered as a trademark violation of the...
4
by: Ron M. Newman | last post by:
Hi, You install a .NET 2.0 winforms application on a machine that doesn't have the 2.0 redistributables and then run it. How do you elegantly detect that and warn your users? Any way to avoid...
3
by: =?Utf-8?B?QXNhZg==?= | last post by:
Hello, I would like to detect .NET CLR on user computer to notice him if he will need to install .NET 3.5 runtime from IE. I have tried to detect using the code...
5
by: Greg Smith | last post by:
I have a series of applications that assume other applications are installed. Is there a way to detect the installation of a specific application? Any help is greatly appreciated.
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.