﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Database Deployment Toolkit » Database Deployment Toolkit (How do I?)  » App with security requieres execute as administrator in Vista</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Wed, 10 Jun 2026 22:24:56 GMT</lastBuildDate><ttl>20</ttl><item><title>App with security requieres execute as administrator in Vista</title><link>http://forum.strataframe.net/FindPost17220.aspx</link><description>Hi&lt;/P&gt;&lt;P&gt;I was creatin an app with security integrated, I test only inside VS that runs with administrator privileges in Windows Vista and all time tha app works fine.&lt;/P&gt;&lt;P&gt;Then I go to Bin folder and run the app, tested and when I try to close the security window, the app gives me an error regarding the Regisry. If I run the application as admiistrator works fine.&lt;/P&gt;&lt;P&gt;My problem is that must users with Vista does not run the applications as administrators, and certainly I don't want my application requieres to run as administrator.&lt;/P&gt;&lt;P&gt;Is there a way to override the write/read from registry in the security. I think that is all I need.&lt;/P&gt;&lt;P&gt;I have not deployed the app, just testing since my computer.&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Mon, 23 Jun 2008 15:52:55 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: App with security requieres execute as administrator in Vista</title><link>http://forum.strataframe.net/FindPost17259.aspx</link><description>Thanks Trent&lt;/P&gt;&lt;P&gt;I will use this new property today.&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Mon, 23 Jun 2008 15:52:55 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: App with security requieres execute as administrator in Vista</title><link>http://forum.strataframe.net/FindPost17248.aspx</link><description>There is a new ForceCurrentUserOnRegistrySettings property on the SecurityBasics class that will be included in the next SF beta update.&amp;nbsp; I will try and get this built and posted today so that you can test this.&amp;nbsp; You will just need to set this in the InitApplication or prior to the LoginForm appearing.&lt;/P&gt;&lt;P&gt;[codesnippet]SecurityBasics.ForceCurrentUserOnRegistrySettings[/codesnippet]</description><pubDate>Mon, 23 Jun 2008 13:14:44 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: App with security requieres execute as administrator in Vista</title><link>http://forum.strataframe.net/FindPost17242.aspx</link><description>Hi Trent&lt;/P&gt;&lt;P&gt;Thanks for your answer, please apologize me for put this comment here in DDT, if you can change it to the correct forum or delete this. I can create a new one in the correct section.&lt;/P&gt;&lt;P&gt;I believe I found the problem. After a little digging , I noticed that you put in the Registry values to: &lt;/P&gt;&lt;P&gt;HKEY_LOCAL_MACHINE\Software\MicroFour\StrataFrame\Security\LoginForm&lt;/P&gt;&lt;P&gt;I open the source of the security project and found this values for registry too.&lt;/P&gt;&lt;P&gt;For Vista Microsoft not allows that an application creates values to HKEY_LOCAL_MACHINE if not running as administrator, I get the "Windows Vista Application Development Requirements for User Account Control Compatibility" and found this:&lt;/P&gt;&lt;H4 style="MARGIN: 18pt 0cm 3pt"&gt;&lt;A name=_Toc159649242&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Arial color=#000000&gt;Registry Virtualization:&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;/H4&gt;&lt;P class=BulletedList1 style="MARGIN: 3pt 0cm 3pt 18pt; mso-list: none; tab-stops: 18.0pt"&gt;&lt;FONT color=#000000&gt;&lt;SPAN lang=EN-US style="FONT-FAMILY: Symbol"&gt;·&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Arial&gt;Virtualize (HKEY_LOCAL_MACHINE\SOFTWARE)&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=BulletedList1 style="MARGIN: 3pt 0cm 3pt 18pt; mso-list: none; tab-stops: 18.0pt"&gt;&lt;FONT color=#000000&gt;&lt;SPAN lang=EN-US style="FONT-FAMILY: Symbol"&gt;·&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Arial&gt;Redirect to: HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\&amp;lt;Application Registry Keys&amp;gt; &lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=BulletedList1 style="MARGIN: 3pt 0cm 3pt 18pt; mso-list: none; tab-stops: 18.0pt"&gt;&lt;FONT color=#000000&gt;&lt;SPAN lang=EN-US style="FONT-FAMILY: Symbol"&gt;·&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Arial&gt;Keys excluded from virtualization&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=BulletedList1 style="MARGIN: 3pt 0cm 3pt 18pt; mso-list: none; tab-stops: 18.0pt"&gt;&lt;FONT color=#000000&gt;&lt;SPAN lang=EN-US style="FONT-FAMILY: Symbol"&gt;·&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Arial&gt;HKEY_LOCAL_MACHINE\Software\Classes&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=BulletedList1 style="MARGIN: 3pt 0cm 3pt 18pt; mso-list: none; tab-stops: 18.0pt"&gt;&lt;FONT color=#000000&gt;&lt;SPAN lang=EN-US style="FONT-FAMILY: Symbol"&gt;·&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Arial&gt;HKEY_LOCAL_MACHINE \Software\Microsoft\Windows&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P class=BulletedList1 style="MARGIN: 3pt 0cm 3pt 18pt; mso-list: none; tab-stops: 18.0pt"&gt;&lt;FONT color=#000000&gt;&lt;SPAN lang=EN-US style="FONT-FAMILY: Symbol"&gt;·&lt;SPAN style="mso-tab-count: 1"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN lang=EN-US&gt;&lt;FONT face=Arial&gt;HKEY_LOCAL_MACHINE \Software\Microsoft\Windows NT&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;P&gt;In my application I change the Registry entry for the login form to this:&lt;/P&gt;&lt;P&gt;HKEY_CURRENT_USER\Software\Classes\VirtualStore\MACHINE\SOFTWARE\Datafox\Operaciones\Security\LoginForm&lt;/P&gt;&lt;P&gt;and running the application without problems. But if I launch the security the again teh registry problem apper.&lt;/P&gt;&lt;/P&gt;&lt;P&gt;As I noticed if I recreate the security DLL, using HKEY_CURRENT_USER and not HKEY_LOCAL_MACHINE the application will run without administrator permission.&lt;/P&gt;&lt;P&gt;Waiting for your comments.&lt;/P&gt;&lt;P&gt;Regards</description><pubDate>Mon, 23 Jun 2008 10:44:49 GMT</pubDate><dc:creator>Juan Carlos Pazos</dc:creator></item><item><title>RE: App with security requieres execute as administrator in Vista</title><link>http://forum.strataframe.net/FindPost17232.aspx</link><description>You can run in as tight a permissions environment as you like.&amp;nbsp; More than likely this doesn't have anything to do with the RBS but rather the connection string paths.&amp;nbsp; In the SetDataSources method in the AppMain.vb or program.cs file, set the Connection Data Folder prior to calling the SetConnections method:&lt;/P&gt;&lt;P&gt;[quote]ConnectionManager.ConnectionDataFolder = "C:\MyPath\"[/quote]&lt;/P&gt;&lt;P&gt;This allows you to direct the connection files to any path that you like to prevent any type of security issues.&amp;nbsp;</description><pubDate>Mon, 23 Jun 2008 08:10:19 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item></channel></rss>