Computer Hope

Software => Computer programming => Topic started by: ultimatum on April 28, 2009, 07:02:06 PM

Title: How to code registry modifier (logic wise)?
Post by: ultimatum on April 28, 2009, 07:02:06 PM
I am about to finish my first year learning programming, so basics are covered in C#. I would like to code a registry modifying application, but I don't know how to! I'll be able to find the file but that's about it.

Can someone kind of lay out the logic steps to entering the registry file and how to modify a value?

Thanks in advance.
Title: Re: How to code registry modifier (logic wise)?
Post by: Geek-9pm on April 28, 2009, 07:16:33 PM
... registry modifying application....
... the logic steps to entering the registry...
We wish you the best. But what you have is know as a
Programming Paradox.

Common usage makes if difficult to put Logic and Registry in the same paragraph. Or page. If it follows logic, it would not be part of the Windows Registry. That is why the Registry exists, to deal with things that do not follow logic which is brother of reason.
Anyway, look here:
http://support.microsoft.com/kb/136393

Of course, I could be wrong.
That conclusion needs logic and reason.



Title: Re: How to code registry modifier (logic wise)?
Post by: ultimatum on April 28, 2009, 08:13:36 PM
Interesting, I guess it makes sense. Overall I know how to modify registry myself. Thanks for clearing this out.
Title: Re: How to code registry modifier (logic wise)?
Post by: BC_Programmer on April 28, 2009, 08:17:07 PM
Quote
Common usage makes if difficult to put Logic and Registry in the same paragraph. Or page. If it follows logic, it would not be part of the Windows Registry. That is why the Registry exists, to deal with things that do not follow logic which is brother of reason.
Anyway, look here:

???




what?


Please explain.
Title: Re: How to code registry modifier (logic wise)?
Post by: Geek-9pm on April 28, 2009, 08:41:48 PM
???
what?
Please explain.

HI BC
Can you give me a recommendation as  to what source material one would study for the Windows Registry. VISTA preferably.
Try Amazon or Barns & Noble and search Windows VISTA registry.

Let me know which is the logical, book of reason and I will get it and read.
If it is logical, reasonable and mostly complete,
I will eat my tail feathers. (With salt.)

And if nobody has yet to write such a guide, I rest my case.
Title: Re: How to code registry modifier (logic wise)?
Post by: BC_Programmer on April 28, 2009, 09:04:10 PM
the fact that there is no guide is because it's simply a heirarchal tree structure. There is nothing illogical or without reason about it- it's a central storage repository for settings.


The thing is- it really didn't matter what MS had done- if they had, for example, stayed with INI files, then everybody would be complaining about that.
Title: Re: How to code registry modifier (logic wise)?
Post by: Geek-9pm on April 28, 2009, 09:52:21 PM
Quote
There is nothing illogical or without reason about it- it's a central storage repository for settings.
I was hoping you would recommend some light reading.
Well, the TS wanted to have a simple guide. Or a step by step. As far as I know the Registry does not give you an error message if you do something dumb. Here is something anybody can try. Modify the drive letter of your boot partition. Make if , say D: or E: instead of C: because it is only a setting, not an absolute reference. -Right?
Here is a step by step:
http://www.petri.co.il/change_system_drive_letter_in_windows_xp.htm
 (http://www.petri.co.il/change_system_drive_letter_in_windows_xp.htm)
Also, notice the links he gives at the end of the article. Must read.

For some strange reason MS recommends that your make a backup of the registry.  Is that logical? If it is, why don't people do it?

Title: Re: How to code registry modifier (logic wise)?
Post by: BC_Programmer on April 28, 2009, 09:55:17 PM
Quote
For some strange reason MS recommends that your make a backup of the registry.  Is that logical? If it is, why don't people do it?

people often won't back-up their own work. Only very dutiful users back-up their computer's work.


Quote
I'll be able to find the file

does this mean you want to literally open the DAT files and try to parse their contents?