?
Solved

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

Posted on 2009-05-03
4
Medium Priority
?
786 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?
0
Comment
Question by:krishrr
[X]
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
4 Comments
 
LVL 27

Expert Comment

by:Dabas
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.

Dabas
0
 
LVL 2

Author Comment

by:krishrr
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?
0
 
LVL 27

Accepted Solution

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

Dabas
0
 
LVL 2

Author Closing Comment

by:krishrr
ID: 31577435
Thanks...
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Agile and Scrum have almost become synonymous. Have you wondered what's the difference? Scrum is just one way to be Agile. It is the most popular which leads to the common confusion. Agile actually refers to a philosophy shared by group of developme…
In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
Simple Linear Regression
Progress
Suggested Courses

770 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