Skip to Content
0
Former Member
Jul 19, 2012 at 05:34 PM

NwEngine.Shell.RegKeyExist returns no result

46 Views

I'm having trouble with the shell command NwEngine.Shell.RegKeyExist running at end of install/update in the 720 installation process. I've tried a lot of combinations but the command never finds any registry key. Code I'm using is below (with two variations) but neither can find the ConfigFileOnServer key. The key is definitely there - the same script sets it as the first step. Ideas?

strRegLocal = "HKLM\SOFTWARE\SAP\SAPLogon\Options\ConfigFileOnServer"

If NwEngine.Shell.RegKeyExist( strRegLocal ) Then

NwEngine.Context.Log.Write "Key exists: " & strRegLocal

Else

NwEngine.Context.Log.Write "Key does not exist: " & strRegLocal

End If

If NwEngine.Shell.RegKeyExist("HKLM\SOFTWARE\SAP\SAPLogon\Options\ConfigFileOnServer") Then

NwEngine.Context.Log.Write "Key exists: " & strRegLocal

Else

NwEngine.Context.Log.Write "Key does not exist: " & strRegLocal

End If

Kirsten