本帖最后由 gucong 于 2010-2-21 14:48 编辑
AU3实现:#NoTrayIcon
$Process=Run("BaoFeng.exe /quickasso /skipcheck /2052 /S /D=" & @ProgramFilesDir & "\Storm Codec")
ProgressOn("暴风影音2007全功能完美版", "正在静默安装,请稍候...","GuCong Studio 全自动安装系列")
While 1
For $i = 1 to 100
If ProcessExists($Process) Then
sleep(200)
ProgressSet($i)
Else
ExitLoop 2
EndIf
Next
WEnd
ProgressSet(100,"GuCong Studio 感谢您的使用","安装完成,正卸载多余插件")
opt("RunErrorsFatal",0)
RegDelete("HKLM\Software\Microsoft\Windows\CurrentVersion\Run","StormCodec_Helper")
FileMove(@ProgramsCommonDir & "\暴风影音\暴风影音.lnk",@ProgramsCommonDir & "\暴风影音\Media Player Classic.lnk"
RunWait(RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2318C2B1-4965-11d4-9B18-009027A5CD4F}","UninstallString"))
RunWait("MsiExec.exe /qb REBOOT=SUPPRESS /x{DBEA1034-5882-4A88-8033-81C4EF0CFA29}")
FileInstall("mplayerc.exe",RegRead("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Storm Codec 5","InstallLocation"))
BAT实现:@echo off
title 暴风影音2007全功能完美版
for /f "tokens=2*" %%a in ('reg query "HKLM\SOFTWARE\Storm Codec" /v Path^|findstr /i "Path"') do set "pth=%%b"
if not exist "%pth%" set "pth=%PROGRAMFILES%\Storm Codec"
if exist BaoFeng.exe (echo 正在静默安装,请稍候...&&BaoFeng.exe /quickasso /skipcheck /2052 /S /D=%pth%)
echo 正在移除广告和插件...
reg delete HKLM\Software\Microsoft\Windows\CurrentVersion\Run /v StormCodec_Helper /f >nul 2>nul
move /y %MyFiles%\mplayerc.exe "%pth%"
echo [Settings]>"%pth%\mplayerc.ini"
echo LogoID2=206>>"%pth%\mplayerc.ini"
reg delete "HKEY_CURRENT_USER\Software\Gabest\Media Player Classic" /f >nul 2>nul
del "%ALLUSERSPROFILE%\桌面\暴风影音.lnk"
ren "%ALLUSERSPROFILE%\「开始」菜单\程序\暴风影音\暴风影音.lnk" "Media Player Classic.lnk" >nul 2>nul
regsvr32 /u /s "%windir%\system32\googletoolbar1.dll"
regsvr32 /u /s "%PROGRAMFILES%\google\googletoolbar1.dll"
MsiExec.exe /qn REBOOT=SUPPRESS /x{DBEA1034-5882-4A88-8033-81C4EF0CFA29}
for /f "tokens=2*" %%a in ('reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2318C2B1-4965-11d4-9B18-009027A5CD4F}" /v UninstallString^|findstr /i "UninstallString"') do %%b
rd /s /q "%PROGRAMFILES%\google" >nul 2>nul
点击这里下载编译好的
压缩包中有暴风2007了,不用去另下载
删除附带的Google工具栏插件
将Media Player Classic升级为6.4.9.1版并修正暴风影音的无耻盗名行为
(以前的较早版本中mplayerc.exe被标为原名,后来直接写"暴风影音"了,无耻) |