Check Craig Boyd's 5 part blogs
PE Files, UAC, Reg-Free COM, and Other Crazy Stuff at
http://www.sweetpotatosoftware.com/SPSBlog/PermaLink,guid,e7782545-c3cc-4b78-9005-ce769669e78f.aspx>The RUN command not work under Vista Os. If I use RUN without "/N" - all works perfect - if I try to use RUN /N4.. or another combinatin - it call an error.
>The main problem in RUN without /N.. Each time cmd window appears on screen.
>
>- I can't use WinExec - because current user is not administrator and UserAccountControl block WinExec (function returns 0)
>- I can't use CreateProcessWithLogonW because - no users in the system have a rights to install driver, but in Vista - if rightclick and start exe in Admin mode - its allowed. Then Windows User Account control ask about "Proceed with running or not".
>
--sb--