473,407 Members | 2,306 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,407 software developers and data experts.

How do apps usually id the version of the cyrrently installed framework?

Good day group!

My problem is this:
I have an old legacy application, which must be installed using an
unmanaged installer. This unmanaged installer complains that .NETfx 1.1
is not installed, EVEN THOUGH 1.0, 1.1 AND 2.0 are installed, and thus
refuses to install.

The problem seems to be that the installer checks the latest version of
the framework, and sees if it is either 1.0 or 1.1. In the installation
log I can see that 2.0 apparently is an "unknown version".

This leads me to my question:
How do applications usually (in unmanaged code) check which version is
installed?

I know about the %WinDir%\Microsoft.NET\Framework folder, where the
subfolders identify the installed versions. So one way is to check
which folders are present in here.

But are there other ways? There must be some (possibly nasty) ways of
checking this in the registry...

I am looking for a way to temporarily "downgrade" (without uninstalling
the entire .NET 2.0 framework)?

I tried renaming the v2.0.????? folder, but this (of course) fails due
to some conflict (containing files currently open/running/whatever).

I hope someone has some valuable input!

Thanks in advance,
Mogens Heller Jensen

Nov 6 '06 #1
2 1139

Vadym Stetsyak skrev:
Hello, mookid!

Have a look at
( http://support.microsoft.com/default...5BLN%5D;315291 )
It seems that the existance of the keys v?.?
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramewor k\policy\
were checked by the installer to identify the version number. This
means that renaming "v2.0" to "foo_v2.0" makes the installer believe
that 1.1 is the newest version, and thus everything works!

Thanks for the input! It really solved my problem!

The best,
Mogens

Nov 7 '06 #2
I the namespace System.Entironment call under that there alot of static fun
one of them will tell you your .net verion
"mookid" <mo********@gmail.com>
??????:11**********************@m73g2000cwd.google groups.com...
Good day group!

My problem is this:
I have an old legacy application, which must be installed using an
unmanaged installer. This unmanaged installer complains that .NETfx 1.1
is not installed, EVEN THOUGH 1.0, 1.1 AND 2.0 are installed, and thus
refuses to install.

The problem seems to be that the installer checks the latest version of
the framework, and sees if it is either 1.0 or 1.1. In the installation
log I can see that 2.0 apparently is an "unknown version".

This leads me to my question:
How do applications usually (in unmanaged code) check which version is
installed?

I know about the %WinDir%\Microsoft.NET\Framework folder, where the
subfolders identify the installed versions. So one way is to check
which folders are present in here.

But are there other ways? There must be some (possibly nasty) ways of
checking this in the registry...

I am looking for a way to temporarily "downgrade" (without uninstalling
the entire .NET 2.0 framework)?

I tried renaming the v2.0.????? folder, but this (of course) fails due
to some conflict (containing files currently open/running/whatever).

I hope someone has some valuable input!

Thanks in advance,
Mogens Heller Jensen

Nov 8 '06 #3

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

Similar topics

9
by: deko | last post by:
I'm confused about what I can use C# and VS.NET for. I have both Visual Studio 6.0 and Visual Studio .NET - which one do I use? If I want to build a basic VB app, I assume I can use the VB 6...
4
by: BBFrost | last post by:
Ok, We have a number of c# >> WinForms << apps deployed to our field offices. The apps are installed on individual Win 2000 workstations. The offices have broadband internet connections. ...
5
by: Danny Tuppeny | last post by:
I've been playing around with ClickOnce today, and it's all good stuff. Except, that if I change my application to NOT be full trust (which seems to make very little difference to the user prompt,...
2
by: Max | last post by:
I'm fairly new to distributing .NET applications, and so far no one is able to use the apps I create. They do run on all 3 of my machines. I include the dotnetfxredist with the setup files. One...
2
by: Kent Briggs | last post by:
I'm a Delphi programmer with a need to create a Pocket PC app. Since full support for the .NET Compact Framework won't be added to Delphi for another year, I'm looking at learning VB. Apparently I...
12
by: Greg | last post by:
For all new desktop apps is managed/CLR recommended? I.e. Native MFC/Win32 not recommended in general for new desktop apps? Speaking in general, not referring to exceptions (e.g. drivers) -- Greg...
7
by: Ludwig | last post by:
Hi, Current situation: a number of C++ applications installed on multiple computers, some of them are dependent of each other. Updates are installed manually. Question: automate these...
9
by: Frank Rizzo | last post by:
I have a set of apps that require .net 1.1 framework. I've installed them on Windows 2003 Server (x64) with the .net 2.0 (x64) framework. I can't seem to find the x64 1.1 framework and the x86...
3
by: james | last post by:
WATYF <WATYF1@gmail.comwrote in news:eb43eb6a-afaa-4e39-ac0b-850afdb6d1e4@r66g2000hsg.googlegroups.com: It gets complicated. First, a reference:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
0
Oralloy
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,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
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...

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.