473,545 Members | 1,744 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

.NET and registry

As I am reading the .NET documentation, I get the feeling
that Microsoft is trying to get rid of the registry. My
understanding is that an application built using .NET
does not use the registry at all. So, conceivably as
applications are migrated to .NET, the registry could
disappear in a future version of Windows. Does anybody
out there agree with me?

Of course, they might keep the registry for backward
compatibility purposes.

Thanks,

-Rohit

Jul 19 '05 #1
3 2607
Rohit Santhanam <mr*******@hotm ail.com> wrote:
As I am reading the .NET documentation, I get the feeling
that Microsoft is trying to get rid of the registry. My
understanding is that an application built using .NET
does not use the registry at all.
It can do - have a look at the Microsoft.Win32 .Registry/RegistryKey
classes.
So, conceivably as
applications are migrated to .NET, the registry could
disappear in a future version of Windows. Does anybody
out there agree with me?


I think it's very unlikely that the registry will disappear altogether,
even if it becomes less widely used than it currently is.

--
Jon Skeet - <sk***@pobox.co m>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Jul 19 '05 #2
It's pretty unlikely that "the registry could disappear" very soon.

However, for some kinds of apps, there is a desire to support "xcopy
deployment" - deployment by just copying files. For those apps, having
application configuration stored in the registry would conflict with xcopy
deployment.

In addition, XML serialization of classes provides a very interesting
mechanism for doing application config. Just define a class with all of
your application settings in it, and use XML serialization to load / save
the settings. You can put off writing an editor for all of the settings,
because you can just use notepad (for a while, until your app needs to be
really polished) to change settings.

Finally, some personal speculation: The registry was invented before XML
existed. If the registry was being invented today, fresh, from nothing, XML
would probably have a huge impact on that the "registry" would look like.

--Don

--
This posting is provided "AS IS" with no warranties, and confers no rights.

"Rohit Santhanam" <mr*******@hotm ail.com> wrote in message
news:a8******** *************** *****@phx.gbl.. .
As I am reading the .NET documentation, I get the feeling
that Microsoft is trying to get rid of the registry. My
understanding is that an application built using .NET
does not use the registry at all. So, conceivably as
applications are migrated to .NET, the registry could
disappear in a future version of Windows. Does anybody
out there agree with me?

Of course, they might keep the registry for backward
compatibility purposes.

Thanks,

-Rohit

Jul 19 '05 #3
I agree with all these sentiments. Using the Registry is no longer a "Best
Practice", but it is still being taken very seriously. It is clear that a
large existing code base has taken a dependency on it and it will be an
important store for applications for many years to come. It is still a
critical component of the latest releases of Windows.

There are no plans to make it go away, and there are still new features
being developed for the .NET Registry APIs.

--------------------
From: "Don Dumitru [MSFT]" <do***@online.m icrosoft.com>
References: <a8************ *************** *@phx.gbl>
Subject: Re: .NET and registry
Date: Thu, 10 Jul 2003 11:27:52 -0700
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.0
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
Message-ID: <Om************ **@TK2MSFTNGP10 .phx.gbl>
Newsgroups: microsoft.publi c.dotnet.genera l
NNTP-Posting-Host: tide108.microso ft.com 207.46.228.16
Path: cpmsftngxa06.ph x.gbl!TK2MSFTNG P08.phx.gbl!TK2 MSFTNGP10.phx.g bl
Xref: cpmsftngxa06.ph x.gbl microsoft.publi c.dotnet.genera l:100802
X-Tomcat-NG: microsoft.publi c.dotnet.genera l

It's pretty unlikely that "the registry could disappear" very soon.

However, for some kinds of apps, there is a desire to support "xcopy
deployment" - deployment by just copying files. For those apps, having
application configuration stored in the registry would conflict with xcopy
deployment.

In addition, XML serialization of classes provides a very interesting
mechanism for doing application config. Just define a class with all of
your application settings in it, and use XML serialization to load / save
the settings. You can put off writing an editor for all of the settings,
because you can just use notepad (for a while, until your app needs to be
really polished) to change settings.

Finally, some personal speculation: The registry was invented before XML
existed. If the registry was being invented today, fresh, from nothing, XML would probably have a huge impact on that the "registry" would look like.

--Don

--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Rohit Santhanam" <mr*******@hotm ail.com> wrote in message
news:a8******** *************** *****@phx.gbl.. .
As I am reading the .NET documentation, I get the feeling
that Microsoft is trying to get rid of the registry. My
understanding is that an application built using .NET
does not use the registry at all. So, conceivably as
applications are migrated to .NET, the registry could
disappear in a future version of Windows. Does anybody
out there agree with me?

Of course, they might keep the registry for backward
compatibility purposes.

Thanks,

-Rohit


--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.

Jul 19 '05 #4

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

Similar topics

0
354
by: vincemoon | last post by:
Below is an excerpt from my Registry Log, created by Redmon, showing the process whereby TweakUI added the compressed folder option to the new sub-menu in the right click context menu for open folders and desktop. I hope someone can help me to better understand what this log excerpt means, or point me to info sources that do a good job of...
3
316
by: Rohit Santhanam | last post by:
As I am reading the .NET documentation, I get the feeling that Microsoft is trying to get rid of the registry. My understanding is that an application built using .NET does not use the registry at all. So, conceivably as applications are migrated to .NET, the registry could disappear in a future version of Windows. Does anybody out there...
1
16300
by: rdavis7408 | last post by:
I have a database that has a form that opens a report using date parameters. I have been using it for six months and last week I began to get the following Error Message: "File sharing lock count exceeded. Increase MaxLocksPerFile registry entry." I checked in the Tools - Options - Advance. I have the database shared with no locks...
8
5467
by: Al Kaufman | last post by:
I have a simple console app that uses: regSubKey = <some registry key> Dim reg As RegistryKey = Registry.ClassesRoot.OpenSubKey(regSubKey) Dim path As String path = CStr(reg.GetValue(""))
4
1375
by: Bob | last post by:
My question about how to add an assembly search path to VS.NET's IDE remains unanswered, but I'm still faced with a problem possibly associated with this: my exported registry is more than 67MB. This seems much too large to be normal, even for a developer's machine. I've read in places that "it's not recommended that you register assemblies...
3
2078
by: eSolTec, Inc. 501(c)(3) | last post by:
Thank you in advance for any and all assistance. Is there a way to create a registry key, but orphan it from the program that created it? Reason: Create a key, but not associate it with the program, so that the program can check for that key to see if the product has been installed and stop a second installation or illegal installation. ...
3
1788
by: Aussie Rules | last post by:
Hi, I want to store some data in the registry, however I have not been able to do this, and think my logic maybe flawed. Firstly I try to open the registry and read in any existing values. Dim aKey As RegistryKey aKey = Registry.CurrentUser.OpenSubKey("software\myApplication") I then attempt to read in any existing values
6
1672
by: JOSII | last post by:
Getting a string of boolean value into and out of the registry is no problem. Here's the problem: Although you can place an object into the registry and retreive it, I need to place an ArrayList object with 10 string items into the registry and retreive them later. I tried this: key.SetValue("lstNSXitems", lstNSX.Items) where...
1
7413
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7751
tracyyun
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...
0
5968
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5323
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4943
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3440
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1874
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
1
1012
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
700
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.