注册、卸载DLL

注册、卸载DLL,一般命令写在bat文件中,下面以注册、卸载SWFToImage.DLL为例。

  1、注册文件(Install.bat)内容:

REM copying files to the system folder

COPY SWFToImage.dll %windir%\system32

REM registering ActiveX/COM server
regsvr32 %windir%\system32\SWFToImage.dll
View Code

  2、卸载文件(UnInstall.bat)内容:

@ECHO OFF

REM Unregistering ActiveX/COM server

regsvr32 /u %windir%\system32\SWFToImage.dll

ECHO IMPORTANT: 
ECHO Now please delete SWFToImage.dll from \Windows\system32\ folder manually
ECHO 
pause
View Code

 

posted @ 2016-06-28 10:00  慧由心生  阅读(2871)  评论(0编辑  收藏  举报