Visual Basic

Moderators: None (Apply to moderate this forum)
Number of threads: 18011
Number of posts: 55384

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Programmatic way to register a dll as administrator in Windows 7 Posted by Minu_vb on 23 Jun 2010 at 10:13 PM
Hi

I have created a VB6 dll named 'PDFConversion.dll' and wanted to register in windows7.
But it fails with access denied error. How do I register it as administrator(ie. Run as administrator') programmatically without the user having to right-click the .dll and say Run As Administrator.

i just want to do the following steps in a double click of dll.

1. run command prompt (cmd.exe) with 'run as administrator' option
2. register the dll with regsvr32 (regsvr32 [dll path])

if the user is not an administrator, he should be prompt to enter administrator password and username. After entering the same, dll should get registered with admin privileges.

Thanks
Minu



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.