Skip to Content
0
Former Member
Nov 23, 2012 at 05:11 AM

Problem setting the registry value for Security settings

289 Views

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