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?
LVL 2
krishrrAsked:
Who is Participating?
 
DabasConnect With a Mentor Commented:
No, you have to have admin rights to deploy to the Systems directory.

Dabas
0
 
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
 
krishrrAuthor Commented:
Thanks...
0
All Courses

From novice to tech pro — start learning today.