I recently tried to use components to write asp. Some of my experiences are as follows. Please correct me if I am wrong. I often need to restart IIS, so I need a batch file. Save the following two lines of code as xxx.bat.
net stop w3svc
net start w3svc
It is often necessary to register and uninstall dlls, so you need to add two lines of registration and unregistration DLL items in the right-click menu, save the following lines of code as xxx.reg, and inject them into the registry
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTdllfileshell]
[ HKEY_CLASSES_ROOTdllfileshellregistration]
[HKEY_CLASSES_ROOTdllfileshellregistrationcommand]
@="regsvr32 %1"
[HKEY_CLASSES_ROOTdllfileshellunregistration]
"Command"="regsvr32 %1 /u"
[HKEY_CLASSES_ROOT dllfileshellanti-registrationcommand]
@="regsvr32 %1 /u"