<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem setting the registry value for Security settings in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-setting-the-registry-value-for-security-settings/m-p/9113053#M1707075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to change the security configuration for Default Action(Ask/Allow/Deny) to Ask.&lt;/P&gt;&lt;P&gt;I know this can be changed by setting the registry value to 0 for Allow.&lt;/P&gt;&lt;P&gt;this was possible for 32-bit OS by using the below command:&lt;/P&gt;&lt;P&gt;NwEngine.Shell.SetRegValue "HKEY_LOCAL_MACHINE\Software\SAP\SAPGUI Front\SAP Frontend&lt;/P&gt;&lt;P&gt;Server\Security\DefaultAction", "REG_DWORD", "0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the below command for 64-bit OS:&lt;/P&gt;&lt;P&gt;NwEngine.Shell.SetRegValue "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP\SAPGUI Front\SAP&lt;/P&gt;&lt;P&gt;Frontend Server\Security\DefaultAction", "REG_DWORD", "0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This did not work.&lt;/P&gt;&lt;P&gt;I tried both the scenarios in different GUI packages.&lt;/P&gt;&lt;P&gt;But i need to use in a single package .&lt;/P&gt;&lt;P&gt;How can i identify 32 bit or 64 bit OS and apply the registry change?&lt;/P&gt;&lt;P&gt;Also for 64-bit is the above command correct?&lt;/P&gt;&lt;P&gt;I am new to this thing ,Please provide some advice.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Urgently required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Nov 2012 05:11:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-11-23T05:11:34Z</dc:date>
    <item>
      <title>Problem setting the registry value for Security settings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-setting-the-registry-value-for-security-settings/m-p/9113053#M1707075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to change the security configuration for Default Action(Ask/Allow/Deny) to Ask.&lt;/P&gt;&lt;P&gt;I know this can be changed by setting the registry value to 0 for Allow.&lt;/P&gt;&lt;P&gt;this was possible for 32-bit OS by using the below command:&lt;/P&gt;&lt;P&gt;NwEngine.Shell.SetRegValue "HKEY_LOCAL_MACHINE\Software\SAP\SAPGUI Front\SAP Frontend&lt;/P&gt;&lt;P&gt;Server\Security\DefaultAction", "REG_DWORD", "0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the below command for 64-bit OS:&lt;/P&gt;&lt;P&gt;NwEngine.Shell.SetRegValue "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\SAP\SAPGUI Front\SAP&lt;/P&gt;&lt;P&gt;Frontend Server\Security\DefaultAction", "REG_DWORD", "0"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This did not work.&lt;/P&gt;&lt;P&gt;I tried both the scenarios in different GUI packages.&lt;/P&gt;&lt;P&gt;But i need to use in a single package .&lt;/P&gt;&lt;P&gt;How can i identify 32 bit or 64 bit OS and apply the registry change?&lt;/P&gt;&lt;P&gt;Also for 64-bit is the above command correct?&lt;/P&gt;&lt;P&gt;I am new to this thing ,Please provide some advice.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Urgently required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deep&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 05:11:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-setting-the-registry-value-for-security-settings/m-p/9113053#M1707075</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-23T05:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem setting the registry value for Security settings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-setting-the-registry-value-for-security-settings/m-p/9113054#M1707076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check the OS system like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If "%WOW64MODE%" = "true" Then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .... do your stuff for 64bit OS&lt;/P&gt;&lt;P&gt;Else&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; .... do your stuff for 32bit Os&lt;/P&gt;&lt;P&gt;End If&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And instead of full registry branch name :&lt;/P&gt;&lt;P&gt;"HKEY_LOCAL_MACHINE\..."&lt;/P&gt;&lt;P&gt;you can shorten it just to:&lt;/P&gt;&lt;P&gt;"HKLM\..."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 07:48:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-setting-the-registry-value-for-security-settings/m-p/9113054#M1707076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-23T07:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem setting the registry value for Security settings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-setting-the-registry-value-for-security-settings/m-p/9113055#M1707077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks O.&lt;/P&gt;&lt;P&gt;Actually the setting of registry is not working .&lt;/P&gt;&lt;P&gt;Can you help on that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 10:00:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-setting-the-registry-value-for-security-settings/m-p/9113055#M1707077</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-23T10:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem setting the registry value for Security settings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-setting-the-registry-value-for-security-settings/m-p/9113056#M1707078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Deep, &lt;/P&gt;&lt;P&gt;Did you also create the registry key SecurityLevel REG_DWORD=0?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Nov 2012 14:04:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-setting-the-registry-value-for-security-settings/m-p/9113056#M1707078</guid>
      <dc:creator>jude_bradley</dc:creator>
      <dc:date>2012-11-23T14:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem setting the registry value for Security settings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-setting-the-registry-value-for-security-settings/m-p/9113057#M1707079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Jude,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes , I did create the registry key SecurityLevel.&lt;/P&gt;&lt;P&gt;In fact,I put the script in the SAP GUI self installer in the End Install section with &lt;/P&gt;&lt;P&gt;NwEngine.Shell.SetRegValue "HKEY_LOCAL_MACHINE\Software\SAP\SAPGUI Front\SAP Frontend&lt;/P&gt;&lt;P&gt;Server\Security\SecurityLevel", "REG_DWORD", "0"&lt;/P&gt;&lt;P&gt;NwEngine.Shell.SetRegValue "HKEY_LOCAL_MACHINE\Software\SAP\SAPGUI Front\SAP Frontend&lt;/P&gt;&lt;P&gt;Server\Security\DefaultAction", "REG_DWORD", "0"&lt;/P&gt;&lt;P&gt;But it has no effect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 03:18:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-setting-the-registry-value-for-security-settings/m-p/9113057#M1707079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-26T03:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem setting the registry value for Security settings</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-setting-the-registry-value-for-security-settings/m-p/9113058#M1707080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It finally worked.&lt;/P&gt;&lt;P&gt;I was using HKEY_CURRENT_USER previously.&lt;/P&gt;&lt;P&gt;Instead i used HCUK and it worked.&lt;/P&gt;&lt;P&gt;Thanks for your help guys&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 06:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-setting-the-registry-value-for-security-settings/m-p/9113058#M1707080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-11-26T06:58:09Z</dc:date>
    </item>
  </channel>
</rss>

