Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Rename the Registry Key


2 replies to this topic

Jayasekaran.R

Jayasekaran.R
  • Full Members
  • 6 posts

Posted 23 February 2010 - 13:05

Let me know How to rename a Registy entry.
Ex:
HKEY_LOCAL_MACHINE\SOFTWARE\Micromass
Key1--Value1
Key2--Value2
Key3--Value3
Key4--Value4

The Above should rename to::

HKEY_LOCAL_MACHINE\SOFTWARE\Micromass_Vulcan
Key1--Value1
Key2--Value2
Key3--Value3
Key4--Value4
Please any one help me to solve this.

xinjiang

xinjiang
  • Full Members
  • 30 posts

Posted 24 February 2010 - 10:23

I only know one method: use installshield script custom action.

In the script you can use RegDBDeleteKey to delete old one. Then create new one.

Edited by xinjiang, 24 February 2010 - 10:27.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 24 February 2010 - 12:14

As far as I know there's no way to rename a key. You would have to read the existing entries and re-create them under the new key. If you know the keys you can sue System Search to read them and the Registry view to write them.