Created
January 20, 2015 16:36
-
-
Save 02015678/3a068dca02a01bb59d7e to your computer and use it in GitHub Desktop.
在Visual Studio 2005/2008/2010下使用MSCOMM32
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: This Batch file is used to install MSCOMM32 | |
:: | |
@echo off | |
echo CLAIM: MSCOMM32 is belong to Microsoft Corporation | |
echo. | |
echo This batch file is licensed under CC-BY-SA 3.0 | |
echo and is provided on an "AS IS" basis, use it on your own risk. | |
echo. | |
if /i "%PROCESSOR_ARCHITECTURE:~-2%"=="86" (goto i386) else goto amd64 | |
:i386 | |
echo Your Windows is 32-bit | |
echo Install MSCOMM32 to your PC?? | |
pause | |
copy mscomm*.* %windir%\system32\ /y | |
%windir%\system32\Regsvr32 %windir%\system32\mscomm32.ocx /s | |
reg add "HKCR\Licenses\4250E830-6AC2-11cf-8ADB-00AA00C00905" /v "" /d "kjljvjjjoquqmjjjvpqqkqmqykypoqjquoun" /f | |
goto common | |
:amd64 | |
echo Your Windows is 64-bit | |
echo Install MSCOMM32 to your PC?? | |
pause | |
copy mscomm*.* %windir%\SysWOW64\ /y | |
%windir%\SysWOW64\Regsvr32 %windir%\SysWOW64\mscomm32.ocx /s | |
reg add "HKCR\Licenses\4250E830-6AC2-11cf-8ADB-00AA00C00905" /v "" /d "kjljvjjjoquqmjjjvpqqkqmqykypoqjquoun" /f | |
goto common | |
:common | |
echo Installation Complete! | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment