注册、卸载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%system32SWFToImage.dll
2、卸载文件(UnInstall.bat)内容:
@ECHO OFF REM Unregistering ActiveX/COM server regsvr32 /u %windir%system32SWFToImage.dll ECHO IMPORTANT: ECHO Now please delete SWFToImage.dll from Windowssystem32 folder manually ECHO pause