PDA

View Full Version : Registry: How to serach and extract key name



__hg__
08-03-2006, 07:39 AM
I need to search the registry for the last key in a series of 1..N,
and then add a key with index N+1.

Registry before installation:
HKEY_LOCAL_MACHINE\SOFTWARE\...\Locations\Location1\KeyAbc
HKEY_LOCAL_MACHINE\SOFTWARE\...\Locations\Location2\KeyAbc
...
HKEY_LOCAL_MACHINE\SOFTWARE\...\Locations\LocationN\KeyAbc

Registry after installation:
...
HKEY_LOCAL_MACHINE\SOFTWARE\...\Locations\LocationN\KeyAbc
HKEY_LOCAL_MACHINE\SOFTWARE\...\Locations\LocationN+1\KeyAbc

Can it be done from within InstallShield Express?

TsungH
08-03-2006, 07:58 PM
You will most likely have to rely on custom action to do that.

__hg__
08-04-2006, 02:01 AM
Thank's for the reply.

I have decided to skip this idea, since it seems to be
too complex to implement in Express.

BRG
hg

TsungH
08-04-2006, 10:34 PM
Windows Installer does not provide an easy to do that in Registry table. Even in a Basic MSI project created with Professional Edition or Premier Edition, a custom action is needed to enumerate registry keys.