• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 790
  • Last Modified:

How to copy files to System directory without admin rights in VB?

I have written VB code to copy the OCX/DLL files to system directory and register them with 'Regsvr32' via code. It works fine with admin rights (on admin login). If i execute the same program in user login, i got 'Path/File Access Error' because of restricted permission to System directory.
Can anyone help me to run the program (to copy the files to system directory) without logging in as administrator and without asking admin password on execution?
0
krishrr
Asked:
krishrr
  • 2
  • 2
1 Solution
 
DabasCommented:
The answer is that it cannot be done, and for a good reason too!

If what you want to do would be possible, then it would be very easy for a virus or a trojan to be introduced into our system.

Dabas
0
 
krishrrAuthor Commented:
I want to deploy my VB project,in which the project used third party DLLs, which should be placed in Systems directory. Any other method to implement this?
0
 
DabasCommented:
No, you have to have admin rights to deploy to the Systems directory.

Dabas
0
 
krishrrAuthor Commented:
Thanks...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now