title: Selectively disabling UAC for specific programs on Windows Programatically
body: <p>There are dozens of posts questions/answers on stack and other forums about disabling/bypassing/suppressing UAC. There are solutions as well. But progmatically perhaps not. I could see only one solution <a href="https://stackoverflow.com/questions/682182/disabling-uac-programmatically">Disabling UAC programmatically</a> but perhaps there is not real programmatic solution given there.</p>
  
  <p>Can there be a programatic solution for saving user to be prompted everytime he/she runs a program like wamp and they always have to click yes, So it would be better to tell windows that their choice is always yes. I am sure there would be as</p>
  
  <p>I have found <a href="http://www.techrepublic.com/blog/window-on-windows/make-vista-launch-uac-restricted-programs-at-startup-with-task-scheduler/616" rel="nofollow noreferrer"><strong>Here</strong></a> that windows provides this facility in Task Scheduler through GUI so it must be possible through code as well.</p>
  
  <h3>Update : I have prepared a pure programmatic solution which is working. See my answer.</h3>