Re: Modify registry Key name



Mike,

after taking a closer look at the code you so kindly e-mailed me, it seems
that after all the only way to rename a registry key is to actually create a
new key, copy all subkeys and values and delete the original key.

Since RegEdit offers a simple Key Rename function, I'm just wondering if
that's achieved in such way.
Or is there a hidden RegRenameKeyEx API???


--
Andy,

andreaATdstudio32DOTit


"Mike D Sutton" <EDais@xxxxxxxx> ha scritto nel messaggio
news:eC2IRZCbFHA.3684@xxxxxxxxxxxxxxxxxxxxxxx
>> Is there a way to modify the name of a registry key?
>>
>> Ex: from
>> HKEY_LOCAL_MACHINE\SOFTWARE\Company\Software_ver_1
>> to
>> HKEY_LOCAL_MACHINE\SOFTWARE\Company\Software_ver_2
>>
>> I'm trying to avoid having to retrieve all of the subkeys name and
>> values.
>
> If you want, I wrote some additional functionality to the registry library
> on vbaccelerator.com including the ability to rename registry keys or
> values. Unfortunately I've been unable to contact Steve about publishing
> it online, so if you want a copy then I'll have to e-mail it to you.
> Hope this helps,
>
> Mike
>
>
> - Microsoft Visual Basic MVP -
> E-Mail: EDais@xxxxxxxx
> WWW: Http://EDais.mvps.org/
>


.



Relevant Pages

  • RE: KB928365 Err 663, on production SQL2K5 serve CANNOT uninstall
    ... the "hexa" name for it to be able to rename it. ... but I have no Idea what "hexa" name it should have on SQL machine. ... copy it to your affected server ... and rename it to whatever that registry key shows on ...
    (microsoft.public.windowsupdate)
  • RE: it take a long time to display the contents of the File pulldo
    ... Renaming will be the best option so that you will have copy of data ... You can rename it by adding any number or character with the existing ... "nowwhatzup" wrote: ... Open the following registry key that is for your version of Word: ...
    (microsoft.public.word.docmanagement)
  • RE: Outlook wont connect to Exchange
    ... >please backup then rename the current registry key: ... >Rename the profiles key to profiles.old ... >Then reboot the computer and recreate a new outlook ...
    (microsoft.public.windows.server.sbs)
  • Re: Media Player 11 Wont Install on XP
    ... disk check using Disk Manager. ... That didn't work, Windows wouldn't let me rename, delete or even change permissions on the registry key. ... I did manage to delete the key outside of Windows, however, using a utility called Offline NT Password & Registry Editor which boots from a CD and allowed me to delete the offending registry key and install WMP 11. ...
    (microsoft.public.windowsmedia.player)
  • RE: SBS 2003 SB1 To Do List
    ... If you check the following Registry key you should have a total of 11 Task ... Export the key along with all the subkeys under: ... Select Reinstall next to Server Tools. ... Microsoft Online Support: http://support.microsoft.com ...
    (microsoft.public.windows.server.sbs)