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

Posted on 2009-05-03
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?
Question by:krishrr
  • 2
  • 2
LVL 27

Expert Comment

ID: 24299728
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.


Author Comment

ID: 24306129
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?
LVL 27

Accepted Solution

Dabas earned 125 total points
ID: 24308956
No, you have to have admin rights to deploy to the Systems directory.


Author Closing Comment

ID: 31577435

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Cobalt Digital Marketing began using the Scrum Framework development process in summer 2009.  We hired a consultant to train the teams, observe meetings, and answer questions. He recommended that we begin using one-week sprints for several reason…
Online collaboration can help businesses be more efficient, help employees grow their skills and foster a team environment.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now