We help IT Professionals succeed at work.

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

810 Views
Last Modified: 2013-12-20
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?
Comment
Watch Question

CERTIFIED EXPERT

Commented:
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

Author

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?
CERTIFIED EXPERT
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks...
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.