手动需要run as admin,

也可以用下边的脚本自动注册

 

@echo off setlocal enableextensions set REGSVR= if defined PROCESSOR_ARCHITEW6432 ( set REGSVR=%SystemRoot%\system32\regsvr32.exe ) else ( set REGSVR=%SystemRoot%\SysWOW64\regsvr32.exe ) %REGSVR% /s "C:\Path\my dll file.dll"

 

http://stackoverflow.com/questions/15622545/how-create-a-batch-file-that-opens-a-32bit-cmd-prompt-as-admin-to-run-another-ba

posted on 2014-01-02 17:37  懒懒的呐喊  阅读(368)  评论(0编辑  收藏  举报