How to pull the (Default) value out of a reg key in an NSL script

  • 3928074
  • 02-Apr-2008
  • 26-Apr-2012

Environment


Novell SecureLogin 6.1
Novell SecureLogin 6.0

Situation

The GetReg command is used to pull data out of the registry to be used in an application definition. The syntax is:

GetReg "HKLM\value\value" ?reg

This works for standard registry entries, but not for the (default) value for the hive.

Resolution

To successfully extract data out of the (Default) value, use the following syntax:

GetReg "HKLM\value\\" ?reg

This will capture the (Default) value for 'value' and store it in the runtime variable ?reg