Click here to Skip to main content
15,892,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
hi all,
i am developing an attendance program. in that i need to copy one dll in system folder and register is necessary. windows xp i have not getting any problem. where as win 7 os it is very difficult to copy dll with administrator privileges. please guide me how to copy and register the dll in win 7 as administrator using visual studio.

thanking you
jbcs raju
Posted
Comments
PIEBALDconsult 19-Apr-15 13:57pm    
" i need to copy one dll in system folder "
I doubt that. Putting it into the GAC should be enough.

1 solution

Run regsvr32 in an elevated command prompt.

If you are facing issues with 64 bit machines, try
Open an elevated command prompt.
If the 32-bit DLL is in the %systemroot%\System32 folder, move it to the %systemroot%\SysWoW64 folder.
Run the following command
%systemroot%\SysWoW64\regsvr32 <full path="" of="" the="" dll=""></full>
 
Share this answer
 
Comments
jbcsraju 20-Apr-15 14:50pm    
hai Abhinav S,
i have done successfully register the dll using command prompt. where as using visual studio it is not possible for me. please guide me how to run the command as administrator using visual studio

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900