The thing is, UAC is just plain there in Vista and up; if you could disable it for a given executable then all malware would just disable it.
So your options are: (1) disable UAC entirely, (2) pop up a window whenever you start a process that needs Administrator privileges, (3) open an elevated CMD shell and call things from there (or do the equivalent: any process started by an elevated process will itself be elevated), or (4) write and install a service that always runs as Administrator and can do Administrator things for you.
To do #2, you can use Win32::RunAsAdmin, to do #3 you can use the Elevated Privileges Power Toy or the "elev" utility that Win32::RunAsAdmin installs, and for #4 you're on your own; I've never tried that. Can't be hard, though.
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|