<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Request UAC Elevation for .net Application (Managed Code)</title>
	<atom:link href="http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/</link>
	<description>Do it in .Net way &#124; Blogging about C#,ASP.Net, LINQ,WPF and .Net Technologies</description>
	<lastBuildDate>Sat, 05 Nov 2011 07:42:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Guido</title>
		<link>http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/comment-page-1/#comment-819</link>
		<dc:creator>Guido</dc:creator>
		<pubDate>Wed, 26 Oct 2011 14:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/#comment-819</guid>
		<description>Excellent!!! Thanks!</description>
		<content:encoded><![CDATA[<p>Excellent!!! Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jitterjames</title>
		<link>http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/comment-page-1/#comment-818</link>
		<dc:creator>Jitterjames</dc:creator>
		<pubDate>Fri, 07 Oct 2011 22:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/#comment-818</guid>
		<description>this is very nice, thanks!  I have a bit of a variation that I&#039;m not sure how to deal with.  I have a portable application.  It runs fine most of the time, but if the user decides to install it to c:program filessomesubfolder it will require UAC, because it writes to folders that are subfolders of the application.  I would like to require UAC elevation only if it is needed.

The very first block of code that you showed on your tutorial using System.Security.Principal;  is great in that it allows me to at least check if there will be an issue when the user launches.  Hopefully I can check the application path, and if they are considered administrator.  If they are not admin and they are running in program files, then at least I can offer a warning before the program crashes.

Of course the ideal would be to only ask for UAC only if they are running in a restricted area.  If I make UAC a requirement for everyone, people will complain and ask &quot;why?&quot;... and &quot;can you make it run without elevation?&quot;  I suppose I could create a launcher app that calls different .exes depending on the folder but that seems much less elegant, and a bit of a pita for everyone.</description>
		<content:encoded><![CDATA[<p>this is very nice, thanks!  I have a bit of a variation that I&#8217;m not sure how to deal with.  I have a portable application.  It runs fine most of the time, but if the user decides to install it to c:program filessomesubfolder it will require UAC, because it writes to folders that are subfolders of the application.  I would like to require UAC elevation only if it is needed.</p>
<p>The very first block of code that you showed on your tutorial using System.Security.Principal;  is great in that it allows me to at least check if there will be an issue when the user launches.  Hopefully I can check the application path, and if they are considered administrator.  If they are not admin and they are running in program files, then at least I can offer a warning before the program crashes.</p>
<p>Of course the ideal would be to only ask for UAC only if they are running in a restricted area.  If I make UAC a requirement for everyone, people will complain and ask &#8220;why?&#8221;&#8230; and &#8220;can you make it run without elevation?&#8221;  I suppose I could create a launcher app that calls different .exes depending on the folder but that seems much less elegant, and a bit of a pita for everyone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Error report after user closes Revit &#171; robolife</title>
		<link>http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/comment-page-1/#comment-814</link>
		<dc:creator>Error report after user closes Revit &#171; robolife</dc:creator>
		<pubDate>Mon, 09 May 2011 14:49:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/#comment-814</guid>
		<description>[...] If for some reason you wan to keep your file in these directories, you can try with UAC elevation. [...]</description>
		<content:encoded><![CDATA[<p>[...] If for some reason you wan to keep your file in these directories, you can try with UAC elevation. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vasista84</title>
		<link>http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/comment-page-1/#comment-805</link>
		<dc:creator>Vasista84</dc:creator>
		<pubDate>Thu, 11 Nov 2010 06:39:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/#comment-805</guid>
		<description>sooooper...</description>
		<content:encoded><![CDATA[<p>sooooper&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Craig</title>
		<link>http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/comment-page-1/#comment-796</link>
		<dc:creator>Craig</dc:creator>
		<pubDate>Thu, 14 Oct 2010 09:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/#comment-796</guid>
		<description>This is even easier in Visual Studio 2010. go to Project-&gt;Add New Item. Select &quot;Application Manifest File&quot;. When the new file opens, there&#039;s already comments in it as to how to ask for admin elevation, and it automatically gets embedded when tou build too.</description>
		<content:encoded><![CDATA[<p>This is even easier in Visual Studio 2010. go to Project-&gt;Add New Item. Select &#8220;Application Manifest File&#8221;. When the new file opens, there&#8217;s already comments in it as to how to ask for admin elevation, and it automatically gets embedded when tou build too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nico Pretorius</title>
		<link>http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/comment-page-1/#comment-445</link>
		<dc:creator>Nico Pretorius</dc:creator>
		<pubDate>Wed, 25 Aug 2010 17:20:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/#comment-445</guid>
		<description>Thank you so much. Really helpful. Very easy tutorial on making application UAC  compliant. &lt;br&gt;&lt;br&gt;Regards,</description>
		<content:encoded><![CDATA[<p>Thank you so much. Really helpful. Very easy tutorial on making application UAC  compliant. </p>
<p>Regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marius Filip</title>
		<link>http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/comment-page-1/#comment-443</link>
		<dc:creator>Marius Filip</dc:creator>
		<pubDate>Sat, 26 Jun 2010 18:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/#comment-443</guid>
		<description>Good to know. Is there a way to do this directly from within Visual Studio (but not via the mt.exe utility and a post-build event)?</description>
		<content:encoded><![CDATA[<p>Good to know. Is there a way to do this directly from within Visual Studio (but not via the mt.exe utility and a post-build event)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catox</title>
		<link>http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/comment-page-1/#comment-412</link>
		<dc:creator>Catox</dc:creator>
		<pubDate>Sat, 06 Feb 2010 19:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/#comment-412</guid>
		<description>thanks a lot, this solved the problem for me</description>
		<content:encoded><![CDATA[<p>thanks a lot, this solved the problem for me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aneef</title>
		<link>http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/comment-page-1/#comment-251</link>
		<dc:creator>Aneef</dc:creator>
		<pubDate>Mon, 12 Oct 2009 08:22:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/#comment-251</guid>
		<description>Hi Ravikumar,

you need to embed the manifest to get the UAC work. you cant do with app.config i guess.

If you disable UAC in control panel,it wouldn&#039;t prompt for UAC. that&#039;s how all applications work, for example when you access your registry when UAC disabled, you don&#039;t get the UAC prompt right ?

hope it helps</description>
		<content:encoded><![CDATA[<p>Hi Ravikumar,</p>
<p>you need to embed the manifest to get the UAC work. you cant do with app.config i guess.</p>
<p>If you disable UAC in control panel,it wouldn&#8217;t prompt for UAC. that&#8217;s how all applications work, for example when you access your registry when UAC disabled, you don&#8217;t get the UAC prompt right ?</p>
<p>hope it helps</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aneef</title>
		<link>http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/comment-page-1/#comment-542</link>
		<dc:creator>Aneef</dc:creator>
		<pubDate>Mon, 12 Oct 2009 08:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/2009/06/29/request-uac-elevation-for-net-application-managed-code/#comment-542</guid>
		<description>Hi Ravikumar,

you need to embed the manifest to get the UAC work. you cant do with app.config i guess.

If you disable UAC in control panel,it wouldn&#039;t prompt for UAC. that&#039;s how all applications work, for example when you access your registry when UAC disabled, you don&#039;t get the UAC prompt right ?

hope it helps</description>
		<content:encoded><![CDATA[<p>Hi Ravikumar,</p>
<p>you need to embed the manifest to get the UAC work. you cant do with app.config i guess.</p>
<p>If you disable UAC in control panel,it wouldn&#8217;t prompt for UAC. that&#8217;s how all applications work, for example when you access your registry when UAC disabled, you don&#8217;t get the UAC prompt right ?</p>
<p>hope it helps</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Served from: www.aneef.net @ 2012-02-04 23:56:21 by W3 Total Cache -->
