Results 1 to 7 of 7

Thread: Vista Elevate Process.start

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    14

    Vista Elevate Process.start

    Looking for some direction..

    I need to start a process with admin rights. I am currently playing with
    process.start, but I am unable to elevate to admin permissions

    Any Thoughts

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,423

    Re: Vista Elevate Process.start

    which version of vb.net are you using?
    its easily done in vb2008

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    14

    Re: Vista Elevate Process.start

    2005

  4. #4
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985

    Re: Vista Elevate Process.start

    I don't think it should work that way. If the program requires admin rights, then it should a manifest telling it to do so on execution. If it doesn't, then it shouldn't need to be run as an admin.

    Though I could see why someone may want to automate the process of right clicking -> run as admin.

    Not sure how. Is the other application yours? If so, you can add a manifest to it to do this.
    KrisSiegel.com - My Personal Website with my blog and portfolio
    Don't Forget to Rate Posts!

    Free Icons: FamFamFam, VBCorner, VBAccelerator
    Useful Links: System.Security.SecureString Managed DPAPI Overview Part 1 Managed DPAPI Overview Part 2 MSDN, MSDN2, Comparing the Timer Classes

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    14

    Re: Vista Elevate Process.start

    Basically I am building a launcher. The other program is not mine and has many different switches or command line arguments. To many and to complicated to type each and every time. Due to vista the other program must be run with admin otherwise it will not work properly.

  6. #6
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    26,423

    Re: Vista Elevate Process.start

    doesn't everything thats run from a program with admin privileges inherit the admin privileges? i had the same question a couple of days ago. in vb2005 i couldn't find anywhere to add a manifest, although i do remember seeing other projects with a manifest file. its really easy to do in vb2008. you should download the express version.

  7. #7

    Thread Starter
    New Member
    Join Date
    Jul 2007
    Posts
    14

    Re: Vista Elevate Process.start

    duh....

    Never thought of that.....Will have to try that. So Run launcher as admin and it should work...

    Have installed 2008 and I am playing with it now.......

    Thanks
    For the help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width