Start another app as adminstrator
If you need help with a project or need to know how to do something specific in VB.NET then please ask your questions in here.
Forum rules
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
Please LOCK your topics once you have found the solution to your question so we know you no longer require help with your query.
8 posts
Page 1 of 1
So im using the application updater that CodenStuff made, but the updater needs admin permissions to complete the update.
So the question is, how do i start another app as adminstrator from my vb app?
thanks.
So the question is, how do i start another app as adminstrator from my vb app?
thanks.
Formerly known as RyggTonning.
PM me if you have any business proposals or similar.
PM me if you have any business proposals or similar.
I think that running app in-code isn't possible since it would be security brench..
CodenStuff wrote:Nope, it's just your sick and dirty mind. You sick twisted warped little pervo![]()
Try using:
Code: Select all
Dim p As New Process()
p.StartInfo.Verb = "runas"
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
Codex wrote:Try using:and i should replace runas with the path of the application i want to run as admin?
Code: Select allDim p As New Process() p.StartInfo.Verb = "runas"
Formerly known as RyggTonning.
PM me if you have any business proposals or similar.
PM me if you have any business proposals or similar.
If you open your updater project files in vs2010 then go to My Project -> Application and click on "View Windows Settings".
Then replace:
Then replace:
Code: Select all
with:
level="asInvoker"
Code: Select all
Then if you startup your Updater with process.start it should ask for an Administrator password.level="requireAdministrator"
DeveloperJacob wrote:If you open your updater project files in vs2010 then go to My Project -> Application and click on "View Windows Settings".Yeah, i've known of that for a long time, and i have done it do the updater but it still wont start as adminstrator.
Then replace:Code: Select allwith:level="asInvoker"
Code: Select allThen if you startup your Updater with process.start it should ask for an Administrator password.level="requireAdministrator"
Formerly known as RyggTonning.
PM me if you have any business proposals or similar.
PM me if you have any business proposals or similar.
You can do it through the program itself where it will start up even if you dont do that.
Livengood wrote:You can do it through the program itself where it will start up even if you dont do that.How exactly would I do that?
Formerly known as RyggTonning.
PM me if you have any business proposals or similar.
PM me if you have any business proposals or similar.
8 posts
Page 1 of 1
Copyright Information
Copyright © Codenstuff.com 2020 - 2023