Right now, all my VB.NET programs crash on startup if the .NET Framework
isn't installed on the target PC. Is there a graceful way to detect,
notify-in-a-friendly-way, and quit of the application if the .NET Framework
is missing?
--
Jeff S. 4 5658
No. That would require you to have the ability to run some code to figure
this out - which you can't, because the absense of the framework means you
can't run any code.
"Jeff Stewart" <ja*@micronovat ech.com> wrote in message
news:1099933011 .Drpb9QKj+CLwpP vupKfctQ@terane ws... Right now, all my VB.NET programs crash on startup if the .NET Framework isn't installed on the target PC. Is there a graceful way to detect, notify-in-a-friendly-way, and quit of the application if the .NET
Framework is missing?
-- Jeff S.
"Jeff Stewart" <ja*@micronovat ech.com> schrieb: Right now, all my VB.NET programs crash on startup if the .NET Framework isn't installed on the target PC. Is there a graceful way to detect, notify-in-a-friendly-way, and quit of the application if the .NET Framework is missing?
This cannot be done using a .NET application. You may want to develop an
application in plain C++ to check if the Framework is installed and call
your .NET application only if this is the case. Alternatively you can
install the .NET Framework during your application's setup.
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
As per Herfried suggestion just use the Installer to detect this for you. If you are installing from
the web you can check the header of the request to see if the user has dotNet installed however.
Depends on your deployment scenario.
hth
Richard
Herfried K. Wagner [MVP] wrote: "Jeff Stewart" <ja*@micronovat ech.com> schrieb:
Right now, all my VB.NET programs crash on startup if the .NET Framework isn't installed on the target PC. Is there a graceful way to detect, notify-in-a-friendly-way, and quit of the application if the .NET Framework is missing?
This cannot be done using a .NET application. You may want to develop an application in plain C++ to check if the Framework is installed and call your .NET application only if this is the case. Alternatively you can install the .NET Framework during your application's setup.
To detect and or install dotnetfx during setup: http://msdn.microsoft.com/vstudio/do.../bootstrapper/
Rinze This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: sanket gupta |
last post by:
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!
|
by: Mark Rae |
last post by:
Hi,
I'm looking for a reliable way of detecting the version of Windows that the
..NET framework is installed on, specifically the service pack. Currently,
I'm using System.Environment.OSVersion and pulling the Major, Minor, Build
and Revision properties out of that.
However, e.g. Windows XP returns exactly the same values for no initial
build, SP1 or SP2.
|
by: Vic |
last post by:
Hello, All.
Is there any way for an ASP.NET page to detect whether a client has .NET
framework installed (preferebly to also determine the version). So, the
resultant application would look something like that:
User clicks a button called "Detect .NET version" on a page1.apsx. The
result is a label that reads "you have .NET version 1.1 installed" or ".NET
framework isn't detected on your PC".
|
by: Brad Allison |
last post by:
This is another form of a question I posed last night.
I know how to detect the .NET Framework using the installer bootstrap, but
what if the user wants to not install the program, but run it from the CD?
How would the program then detect for .NET or would this be an outside
script that has to be written? If so, any suggestions?
Thanks for the information
Brad
|
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 still able to
detect the Shockwave Player and the version number when using
Firefox/Netscape, but not with IE. I have my own detection script that
I use, but I've also used the detection scripts supplied from
Macromedia, but it still won't...
| |
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 ugly uncontrollable error boxes?
Thanks
Ron
|
by: Arek |
last post by:
Hi,
How to detect Windows version and .NET version? I mean I want to know if
user is using Windows 2000, XP, Vista and which Service Pack and version (XP
Home, XP Pro, Vista Home Basic, Vista Premium, etc.). Is there any easy way
to retrive this information?
I'm wondering if all modern Windows version (2000, XP, 2003, Vista) has .NET
installed by default or do I need to implement such a feature in Win32
instead of .NET?
|
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
"Request.Browser.ClrVersion.ToString()" but result version is "2.0.50727" and
I have installed .NET version 3.5 on my machine.
Does IE can’t recognize if a .NET 3.5 is installed?
|
by: John W. |
last post by:
Hi there,
Does anyone know if there's a (simple) way to detect whether an arbitrary
"System.Type" originates from the .NET framework opposed to a user-defined
assembly. Thanks.
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |