Make your Visual Basic application run as administrator

Hey there.

I know that many of you are programming applications which need administrator permission to write on Operation System disk or do whatever that needs admin access.

So lets start to show how can you do it in Visual Basic?

1. Open your Visual Basic Project.  Right click on your Project name and select properties from right side menu.

image

2. In application tab click on “View Windows Settings” button.

image

3. replace “asInvoker” with “requireAdministrator”.

image

image

Incoming search terms:

  • vb run as administrator
  • vb6 run as administrator
  • visual basic run as administrator
  • run as administrator vb6
  • vb runas
  • runas vb6
  • vb6 runas
  • visual basic administrator
  • run as administrator visual basic
  • run as administrator vb

Join the Conversation

3 Comments

Leave a comment

Leave a Reply