@echo off
reg add "HKCU\Software\Diamond Cut Productions\DC8.1\{0EF56017-D82C-80BD-95B6-F8005D8129C9}" /f /v "_D10AD5552991470580C934F66B7E9C3B" /t REG_SZ /d "%cd%\TempFiles\\"
reg add "HKCU\Software\Diamond Cut Productions\DC8.1\{1C4DF12E-4A64-CBDC-526D-691B5A4E7D44}" /f /v "_AA7ADA239881479394B7A5E22E00EB85" /t REG_SZ /d "%cd%\DCPLaylists\\"
reg add "HKCU\Software\Diamond Cut Productions\DC8.1\{97CE2446-0CBF-94B7-D52C-0C2821A56851}" /f /v "_FD35781936D249A393A4934E158939D8" /t REG_SZ /d "%cd%\WaveFiles\\"
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "AutoCDDB" /t REG_DWORD /d 1
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "BuyBtnPath" /t REG_SZ /d "http://www.diamondcut.com"
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "DefaultColors" /t REG_DWORD /d 0
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "MP3DefBitRate" /t REG_DWORD /d 128
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "MP3EncoderPath" /t REG_SZ /d "%cd%\Lame_enc.dll"
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "MP3EncoderType" /t REG_DWORD /d 1
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "MP3UseDll" /t REG_DWORD /d 1
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "MP3UseVbr" /t REG_DWORD /d 0
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "OpenLastEdited" /t REG_DWORD /d 0
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "PresetPath" /t REG_SZ /d "%cd%\Presets"
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "Presets" /t REG_SZ /d ""
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "SingleFileMode" /t REG_DWORD /d 1
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "TempPath" /t REG_SZ /d "%cd%\TempFiles"
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "UpgradeInfo" /t REG_SZ /d "To upgrade contact:\nDiamond Cut Productions, Inc.\nPO Box 305\nHibernia, NJ 07828\nhttp://www.diamondcut.com\nPhone:  973-316-9111"
reg add "HKCU\Software\Diamond Cut Productions\DC81\DCArt" /f /v "WebURL" /t REG_SZ /d "http://www.diamondcut.com"
reg add "HKCU\Software\Diamond Cut Productions\DC81Reg" /f /v "RegCode" /t REG_SZ /d "9b2e43e04de56dd14561d40610ca0e5b"
reg add "HKCU\Software\Diamond Cut Productions\DC81Reg" /f /v "SerialNum" /t REG_SZ /d "081A-A3B3-E2FF-4803"
reg add "HKCU\Software\Diamond Cut Productions\DC81Reg" /f /v "UserName" /t REG_SZ /d "syg0512"
CLS
color 0a
:menu
cls
echo.
echo.            
echo             如果您系统没有安装过Vcredist c++ 2008,请选择"Y"安装
echo.             
echo             如果您系统已经安装过Vcredist c++ 2008,请选择"N"退出
ECHO            =====================================================
SET /p Choice= 请输入要执行的操作并回车：
if /I "%Choice%"=="Y" goto inst
if /I "%Choice%"=="N" goto exit
goto menu
:inst
Vcredist_x86.exe /q:a /c:"msiexec /i vcredist.msi /qn /l*v %temp%\vcredist_x86.log"
echo 安装完毕,按任意键启动程序... 
pause>nul
start DC8.exe
