<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>b b b &#187; UAC</title>
	<atom:link href="http://smnuman.wordpress.com/tag/uac/feed/" rel="self" type="application/rss+xml" />
	<link>http://smnuman.wordpress.com</link>
	<description>...browsing broosing boosing... or blah blah blah ;)</description>
	<lastBuildDate>Thu, 10 Jun 2010 12:32:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='smnuman.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>b b b &#187; UAC</title>
		<link>http://smnuman.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://smnuman.wordpress.com/osd.xml" title="b b b" />
	<atom:link rel='hub' href='http://smnuman.wordpress.com/?pushpress=hub'/>
		<item>
		<title>How NOT to elevate an installer application in Vista</title>
		<link>http://smnuman.wordpress.com/2009/11/09/drive-vista-not-elevate-installer-application/</link>
		<comments>http://smnuman.wordpress.com/2009/11/09/drive-vista-not-elevate-installer-application/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 22:16:43 +0000</pubDate>
		<dc:creator>Syed Muhammad Numan</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[UAC]]></category>
		<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://smnuman.wordpress.com/?p=3</guid>
		<description><![CDATA[Like many others I had problems installing softwares in my Vista(Business) laptop since long as it always forces me to install it with Admin authority, which I didn&#8217;t want! I just wanted to install a software or a program for a testing purpose some of which didn&#8217;t even need to register in the windows registry. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smnuman.wordpress.com&#038;blog=5207224&#038;post=3&#038;subd=smnuman&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Like many others I had problems installing softwares in my <em>Vista</em>(Business) laptop since long as it always forces me to install it with Admin authority, which I didn&#8217;t want! I just wanted to install a software or a program for a testing purpose some of which  didn&#8217;t even need to register in the windows registry.</p>
<p>Vista has a way to force the setup programs to elevate the current user if the user is not the administrator. That way Vista ensures the security of the system, at least that&#8217;s what there defenses are.</p>
<p>But in order to install my programs without elevating my user credentials, I searched the web with the help of Google Search and landed on a <a href="http://blogs.msdn.com/andrewarnottms/archive/2008/10/15/how-to-force-vista-to-not-elevate-an-application.aspx">helpful msdn blog</a> of <a href="http://blogs.msdn.com/andrewarnottms/default.aspx">Andrew Arnott</a></p>
<p>The important bit of code that helped me at the moment was the following:</p>
<blockquote><p>There is a way to coerce Vista to not elevate a process that it otherwise would.</p>
<p><code>REM The next command MUST be run from an elevated command window.<br />
REM It launches regedit.exe WITHOUT elevated privileges.<br />
runas /trustlevel:0x20000 regedit.exe</code></p></blockquote>
<p>I have modified it to take a parameter that would help you run this for any program from an elevated command prompt</p>
<p>Here is what is done to do the job:</p>
<pre>
@ECHO OFF
REM =====================================
REM source: <a href="http://blogs.msdn.com/andrewarnottms/archive/2008/10/15/how-to-force-vista-to-not-elevate-an-application.aspx" rel="nofollow">http://blogs.msdn.com/andrewarnottms/archive/2008/10/15/how-to-force-vista-to-not-elevate-an-application.aspx</a>
REM =====================================
REM The next command MUST be run from an elevated command window.
REM It launches regedit.exe WITHOUT elevated privileges.
REM runas /trustlevel:0x20000 regedit.exe
REM =====================================
setlocal
if {%1}=={} set _empty=Syntax: UnUAC "[-e{xit current window}] [path\]file to run" &amp;goto :message
if EXIST %~$PATH:1 (set _File=%~$PATH:1) ELSE (set _File=%~f1)
if NOT EXIST %_File% ( set _empty=File NOT found in the path or in local directory. &amp;goto :message )
goto :runthis
:message
echo %_empty%
endlocal&amp;set _empty=%_empty%
:runthis
if exist %_File% runas /trustlevel:0x20000 %_File%
</pre>
<p>I have saved it as <code>UnUAC.cmd</code> in the folder <code>c:\Windows\System32\</code>. That way it remains available at all levels and under any directory path. That&#8217;s how I&#8217;d be able to run any application without the admin elevation of the user <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/smnuman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/smnuman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/smnuman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/smnuman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/smnuman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/smnuman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/smnuman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/smnuman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/smnuman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/smnuman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/smnuman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/smnuman.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/smnuman.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/smnuman.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=smnuman.wordpress.com&#038;blog=5207224&#038;post=3&#038;subd=smnuman&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://smnuman.wordpress.com/2009/11/09/drive-vista-not-elevate-installer-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">FunLover AllOver</media:title>
		</media:content>
	</item>
	</channel>
</rss>
