11-23-2012 5:11 AM
Hi,
I need to change the security configuration for Default Action(Ask/Allow/Deny) to Ask.
I know this can be changed by setting the registry value to 0 for Allow.
this was possible for 32-bit OS by using the below command:
NwEngine.Shell.SetRegValue "HKEY_LOCAL_MACHINE\Software\SAP\SAPGUI Front\SAP Frontend
Server\Security\DefaultAction", "REG_DWORD", "0"
I used the below command for 64-bit OS:
NwEngine.Shell.SetRegValue "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP\SAPGUI Front\SAP
Frontend Server\Security\DefaultAction", "REG_DWORD", "0"
This did not work.
I tried both the scenarios in different GUI packages.
But i need to use in a single package .
How can i identify 32 bit or 64 bit OS and apply the registry change?
Also for 64-bit is the above command correct?
I am new to this thing ,Please provide some advice.
I need to distribute the GUI package among end users and i am setting the registry value so as the end users do not face the security popups while working on GUI.
Urgently required.
Thanks,
Deep
11-23-2012 7:48 AM
Hi!
You can check the OS system like this:
If "%WOW64MODE%" = "true" Then
.... do your stuff for 64bit OS
Else
.... do your stuff for 32bit Os
End If
And instead of full registry branch name :
"HKEY_LOCAL_MACHINE\..."
you can shorten it just to:
"HKLM\..."
11-23-2012 7:48 AM
Hi!
You can check the OS system like this:
If "%WOW64MODE%" = "true" Then
.... do your stuff for 64bit OS
Else
.... do your stuff for 32bit Os
End If
And instead of full registry branch name :
"HKEY_LOCAL_MACHINE\..."
you can shorten it just to:
"HKLM\..."
11-23-2012 10:00 AM
Thanks O.
Actually the setting of registry is not working .
Can you help on that?
11-23-2012 2:04 PM
Hello Deep,
Did you also create the registry key SecurityLevel REG_DWORD=0?
11-26-2012 3:18 AM
HI Jude,
Yes , I did create the registry key SecurityLevel.
In fact,I put the script in the SAP GUI self installer in the End Install section with
NwEngine.Shell.SetRegValue "HKEY_LOCAL_MACHINE\Software\SAP\SAPGUI Front\SAP Frontend
Server\Security\SecurityLevel", "REG_DWORD", "0"
NwEngine.Shell.SetRegValue "HKEY_LOCAL_MACHINE\Software\SAP\SAPGUI Front\SAP Frontend
Server\Security\DefaultAction", "REG_DWORD", "0"
But it has no effect.
Also i created a separate cmd file that did change the registry values but it happens for HCUK and not for HKLM.For HKLM it says access is denied.
11-26-2012 6:58 AM
It finally worked.
I was using HKEY_CURRENT_USER previously.
Instead i used HCUK and it worked.
Thanks for your help guys