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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Read about why it is more lucrative for an IT company to participate in government projects.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

738 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