@echo off
echo.
echo 请确保先进入　禁用强制驱动签名模式　安装好Drivers中的驱动！！！
echo.
echo 安装成功后，扬声器属性中会多出一个 Dolby 项，否则说明驱动安装失败。
pause>nul
reg add "HKLM\SOFTWARE\Classes\CLSID\{B34E9059-2D5F-469C-AC71-0F5B52CB4689}" /f /ve /t REG_SZ /d "Dolby Digital Plus Home Theater"
reg add "HKLM\SOFTWARE\Classes\CLSID\{B34E9059-2D5F-469C-AC71-0F5B52CB4689}" /f /v "System.ApplicationName" /t REG_SZ /d "Dolby.DHT"
reg add "HKLM\SOFTWARE\Classes\CLSID\{B34E9059-2D5F-469C-AC71-0F5B52CB4689}" /f /v "System.ControlPanel.Category" /t REG_SZ /d "2"
reg add "HKLM\SOFTWARE\Classes\CLSID\{B34E9059-2D5F-469C-AC71-0F5B52CB4689}\DefaultIcon" /f /ve /t REG_SZ /d "%CD%\ddpe.exe"
reg add "HKLM\SOFTWARE\Classes\CLSID\{B34E9059-2D5F-469C-AC71-0F5B52CB4689}\Shell\Open\Command" /f /ve /t REG_SZ /d "%CD%\ddpe.exe"
reg add "HKLM\SOFTWARE\Classes\Installer\Features\1AF8D3E72906A96459B586CFA4C276AC" /f /v "Demo" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Installer\Features\1AF8D3E72906A96459B586CFA4C276AC" /f /v "Editor" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Installer\Features\1AF8D3E72906A96459B586CFA4C276AC" /f /v "Selector" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Classes\Installer\Products\1AF8D3E72906A96459B586CFA4C276AC" /f /v "AdvertiseFlags" /t REG_DWORD /d 388
reg add "HKLM\SOFTWARE\Classes\Installer\Products\1AF8D3E72906A96459B586CFA4C276AC" /f /v "Assignment" /t REG_DWORD /d 1
reg add "HKLM\SOFTWARE\Classes\Installer\Products\1AF8D3E72906A96459B586CFA4C276AC" /f /v "AuthorizedLUAApp" /t REG_DWORD /d 0
reg add "HKLM\SOFTWARE\Classes\Installer\Products\1AF8D3E72906A96459B586CFA4C276AC" /f /v "Clients" /t REG_MULTI_SZ /d ":"
reg add "HKLM\SOFTWARE\Classes\Installer\Products\1AF8D3E72906A96459B586CFA4C276AC" /f /v "DeploymentFlags" /t REG_DWORD /d 3
reg add "HKLM\SOFTWARE\Classes\Installer\Products\1AF8D3E72906A96459B586CFA4C276AC" /f /v "InstanceType" /t REG_DWORD /d 0
reg add "HKLM\SOFTWARE\Classes\Installer\Products\1AF8D3E72906A96459B586CFA4C276AC" /f /v "Language" /t REG_DWORD /d 1033
reg add "HKLM\SOFTWARE\Classes\Installer\Products\1AF8D3E72906A96459B586CFA4C276AC" /f /v "PackageCode" /t REG_SZ /d "5F63E5BACFB626F4899CA9482CFE59AB"
reg add "HKLM\SOFTWARE\Classes\Installer\Products\1AF8D3E72906A96459B586CFA4C276AC" /f /v "ProductIcon" /t REG_SZ /d "C:\DolbyBlue.exe"
reg add "HKLM\SOFTWARE\Classes\Installer\Products\1AF8D3E72906A96459B586CFA4C276AC" /f /v "ProductName" /t REG_SZ /d "Dolby Digital Plus Home Theater"
reg add "HKLM\SOFTWARE\Classes\Installer\Products\1AF8D3E72906A96459B586CFA4C276AC" /f /v "Version" /t REG_DWORD /d 117833731
reg add "HKLM\SOFTWARE\Classes\Installer\UpgradeCodes\F2ECE888F892A78458A0E7380DDC3282" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Dolby\DolbyDigitalPlus\AppKeys" /f /v "{DD0DF94B-53A2-4a92-854E-91F42E28FD7B},500" /t REG_DWORD /d 1
reg add "HKLM\SOFTWARE\Dolby\DolbyDigitalPlus\AppKeys" /f /v "{DD0DF94B-53A2-4a92-854E-91F42E28FD7B},501" /t REG_DWORD /d 3
reg add "HKLM\SOFTWARE\Dolby\DolbyDigitalPlus\AppKeys" /f /v "{DD0DF94B-53A2-4a92-854E-91F42E28FD7B},502" /t REG_DWORD /d 6
reg add "HKLM\SOFTWARE\Dolby\DolbyDigitalPlus\AppKeys" /f /v "{DD0DF94B-53A2-4a92-854E-91F42E28FD7B},503" /t REG_DWORD /d 7
reg add "HKLM\SOFTWARE\Dolby\DolbyDigitalPlus\AppKeys" /f /v "{DD0DF94B-53A2-4a92-854E-91F42E28FD7B},504" /t REG_SZ /d "7.6.3.1"
reg add "HKLM\SOFTWARE\Dolby\DolbyDigitalPlus\AppKeys" /f /v "{DD0DF94B-53A2-4a92-854E-91F42E28FD7B},61" /t REG_SZ /d "%CD%\ddpe.exe"
reg add "HKLM\SOFTWARE\Dolby\DolbyDigitalPlus\AppKeys" /f /v "{DD0DF94B-53A2-4a92-854E-91F42E28FD7B},62" /t REG_SZ /d "%CD%\ddp.exe"
reg add "HKLM\SOFTWARE\Dolby\DolbyDigitalPlus\AppKeys" /f /v "{DD0DF94B-53A2-4a92-854E-91F42E28FD7B},63" /t REG_SZ /d "%CD%\ddpd.exe"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{B34E9059-2D5F-469C-AC71-0F5B52CB4689}" /f /ve /t REG_SZ /d "Dolby Digital Plus Home Theater"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UpgradeCodes\F2ECE888F892A78458A0E7380DDC3282" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\00B5D1FC9B7C6094D9EBFCA722F7B815" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\0255C80E8D4425B4B9CAA20522A7AA19" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d "22:\SOFTWARE\Dolby\DolbyDigitalPlus\AppKeys\{DD0DF94B-53A2-4a92-854E-91F42E28FD7B},62"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\06E1E478E71CF9946AEB2D996EF8E7EB" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d "%CD%\ddp.exe"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\0DEE4C4FB21537840B606C20AEF1F56F" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d "22:\SOFTWARE\Dolby\DolbyDigitalPlus\AppKeys\{DD0DF94B-53A2-4a92-854E-91F42E28FD7B},61"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\1E539192EFB3279469B4A736CAE00438" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d "01:\Software\Dolby\Dolby Digital Plus Home Theater\EditorShortcuts"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\20F2F6EA69B4D7A45803C21676F38D66" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d "22:\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\ControlPanel\NameSpace\{B34E9059-2D5F-469C-AC71-0F5B52CB4689}\\"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\5BD559307417CB14C97BC77E460C1D8E" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d "22:\SOFTWARE\Dolby\DolbyDigitalPlus\AppKeys\{DD0DF94B-53A2-4a92-854E-91F42E28FD7B},504"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\5C45EFCC977B9E14490E49261D7938F7" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d "%CD%\ddpd.exe"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\817C118D47099654F85762E35965C97B" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d "01:\Software\Dolby\Dolby Digital Plus Home Theater\ShortcutsMenuFolder"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\8DB34877942339F4AA8CDD70320FEEA9" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d "%CD%\ddpe.exe"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\92CE59E2FDEFE88419DEB82BCD1C6505" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\99FD840FB4932854A8AF8254B8DC56FC" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\BBCCB158E5D63F04DB95A4A54FEA9599" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\CC08A8CBB18D81A4388E305295978FF9" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\DD3F2352F8181ED41988BED04174508B" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d "22:\SOFTWARE\Dolby\DolbyDigitalPlus\AppKeys\{DD0DF94B-53A2-4a92-854E-91F42E28FD7B},63"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\E8670CBF002E0174383E26201B02D9EC" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d "%CD%\zh-CN\ddpc.resources.dll"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\E99D395E7C6A10B4897B2D712D976378" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d "%CD%\ddpl.exe"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\F01EB93B3DAAD6D4AB5FFD4EE2131AB2" /f /v "1AF8D3E72906A96459B586CFA4C276AC" /t REG_SZ /d "%CD%\ddpc.dll"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\1AF8D3E72906A96459B586CFA4C276AC\Features" /f /v "Demo" /t REG_SZ /d "ivefbbw9t@H`[WrTcv$2dZ4tj*sa39?n.cG?,V}P{Dg?18NQI=i2wmyW_ddhZv&_9PZ((9)k_[ZFAE99Z&'{1M&4L9d+1?^%%]E]fUkSs&O9rF@1?`A6N(HMFdMw}`M=C_8Lif-3f4R_W,M=To'-~N=p@Ha6B^X'.o057EVqm*AU_V.B@g5Im(9=z'@A..9p0-)(x3OIY-~lL=qD]^8pChFJ5R6?wfX=rPne$*ABR!2ZbIEu,VYddPhhZKAqcA3{uyyP*EmU^.&C2n8veW~XukJ%%S&Ts$+Cd^F9QkSBmR)i[t3A9GozC?F9$)[lKhhZ3Gk5[N'wUn5@ytHtV=WyU?y@m5A0s%%^@C%%JvR2%%C?YYtD7S$hjq@AVRVG~nrDQDw=bSG_OZ=Pt85%%-7$X@qW(v'T^!H9-i..'6@Wiz@]gZ]A0l]?xtq}+8*+vjf(06R3p-`A-3B~E!Vw,B*q[B'H!KO=.&WxLxBx&7CTfHGHDOD9O3F@uofFUJK)6s$e*zi?SpiEnN+.3o{KWuR~&=W?BN7t=2[VWKw-VmvTox*ANmb?YnEu*8J'f`hBdka@hRFASMTk_i~S$]F]VNE@s.`Hdd3_x7h)~2Awxey=?6Ce4k`x$NoV`f3qy-Z9=AG5PA5l(]Sr%%(B4L_P=RbtdNilhF9%%O4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5+RPXRWvZo8BrWF7*4'DUY2`0lzeS=A'^98qjTu*]?IYvycaMp=I54j!g+OJkHZ(&HBwUF=7lGLEHv2,xmDIJ']vT4?Sm'n).?KxkG1kMn,r=B=8Ls{7iR&$d$3u0$05p-92j{Is^4Gosh9gZe$59n?hG6u.=d6K[aaJ2q44d5@@X(jAVfLnV+OB7vuUuD=q$H7=bGs`kq60XkN8!P?zC)POQwe5B"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\1AF8D3E72906A96459B586CFA4C276AC\InstallProperties" /f /v "Contact" /t REG_SZ /d ""
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\1AF8D3E72906A96459B586CFA4C276AC\InstallProperties" /f /v "DisplayName" /t REG_SZ /d "Dolby Digital Plus Home Theater"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\1AF8D3E72906A96459B586CFA4C276AC\InstallProperties" /f /v "DisplayVersion" /t REG_SZ /d "7.6.3.1"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\1AF8D3E72906A96459B586CFA4C276AC\InstallProperties" /f /v "InstallDate" /t REG_SZ /d "20171025"
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\1AF8D3E72906A96459B586CFA4C276AC\InstallProperties" /f /v "Language" /t REG_DWORD /d 1033
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\1AF8D3E72906A96459B586CFA4C276AC\InstallProperties" /f /v "Version" /t REG_DWORD /d 117833731
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\1AF8D3E72906A96459B586CFA4C276AC\InstallProperties" /f /v "WindowsInstaller" /t REG_DWORD /d 1
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\1AF8D3E72906A96459B586CFA4C276AC\Patches" /f /v "AllPatches" /t REG_SZ /d ""
reg add "HKCU\Software\Dolby\Dolby Digital Plus Home Theater" /f /v "EditorShortcuts" /t REG_SZ /d "Shortcuts"
reg add "HKCU\Software\Dolby\Dolby Digital Plus Home Theater" /f /v "ShortcutsMenuFolder" /t REG_SZ /d "Shortcuts"
set "smpo=%ProgramData%\Microsoft\Windows\Start Menu\Programs\Dolby Digital Plus"
md "%smpo%"
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(""%smpo%"" & ""\杜比plus.lnk""):b.TargetPath=""%CD%\ddp.exe"":b.WorkingDirectory=""%~dp0"":b.Save:close")&SET E=完成!
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(""%smpo%"" & ""\杜比plus控制台.lnk""):b.TargetPath=""%CD%\ddpe.exe"":b.WorkingDirectory=""%~dp0"":b.Save:close")&SET E=完成!
start ddp.exe
