Автор: Victor_VG
Дата сообщения: 28.06.2006 02:27
Onyx - классический скин от 6-ки, из её стандартной поставки. В ней он ставился по умолчанию. Мне лично и моим знакомым он не нравится, и мы его всегда меняли. Новый Mercury гораздо симпатичней. Хотя на вкус и цвет товарищей нет. Что касается "фокуса" с подменой страницы, то я просто выкладываю исправленню *.inf:
[version]
signature = $Windows NT$
Provider = %mfgname%
DriverVer = 21/04/2006, 6.0.2.2806
AdvancedINF = 2.5, %WRONG_ADVPACK_VERSION%
[DefaultInstall]
RequiredEngine = Setupapi, %BAD_SETUP_VER%
MediaType = SOFTWARE
CopyFiles = File.Copy, INF.Copy
AddReg = Add.Reg, Un.Reg, Common.Reg
RegisterOCXs = Filter.Reg
[NonAdminInstall]
IgnoreErrors = UpdateInis, AddReg, RegisterOCXs
[UnInstall]
RequiredEngine = Setupapi, %BAD_SETUP_VER%
UnRegisterOCXs = Filter.Reg
DelReg = Un.Reg
DelFiles = File.Copy, INF.Copy
BeginPrompt = Uninstall.BeginPrompt
EndPrompt = Uninstall.EndPrompt
[DestinationDirs]
DefaultDestDir = 11
File.Copy = 11
INF.Copy = 17
IExpressCopy.System = 11
[SourceDisksNames]
1 = "MPEG-2-Install",,1
[File.Copy]
CLDemuxer.ax,,,4
CLLine21.ax,,,4
CLNavX.ax,,,4
CLQTSrc.ax,,,4
CLSubTitle.ax,,,4
CLVSD.ax,,,4
PowerDVD.sim,,,4
[INF.Copy]
cyberlnv.inf,,,4
[Filter.Reg]
"%11%\CLVSD.ax"
"%11%\CLLine21.ax"
"%11%\CLNavX.ax"
"%11%\CLQTSrc.ax"
"%11%\CLDemuxer.ax"
"%11%\CLSubTitle.ax"
[Add.Reg]
HKLM,"SOFTWARE\CyberLink\PowerDVD","Header",0,"Deluxe"
HKLM,"SOFTWARE\CyberLink\PowerDVD","HasCDKEY",65537,1
HKLM,"SOFTWARE\CyberLink\PowerDVD","InstalledPacks",0,"CPRM Pack, DivX Pack, DTS Pack, DTS 96/24 Pack, DVD-Audio Pack, Express Pack, Interactual Pack, Mobility Pack, MPEG4 AVC Pack"
HKLM,"SOFTWARE\CyberLink\PowerDVD","UI_PMK",0,"A3U22-R2GYY-2F7HG-8PU49-MPZYR-HYXEA"
HKLM,"SOFTWARE\CyberLink\PowerDVD","UI_RMK",0,"BBJXJ-TN2UB-XF3Q2-G3XZY-7EVD6-L8G7V"
HKLM,"SOFTWARE\CyberLink\PowerDVD","TEST",65537,0
HKLM,"SOFTWARE\CyberLink\PowerDVD","KeyUpdate",65537,2
HKLM,"SOFTWARE\CyberLink\PowerDVD","CPNav",65537,2
HKLM,"SOFTWARE\CyberLink\PowerDVD","MustUpdateKey",65537,2
HKLM,"SOFTWARE\CyberLink\PowerDVD","CLH264",65537,1
HKLM,"SOFTWARE\CyberLink\PowerDVD","CompanyName",0,"CyberLink"
HKLM,"SOFTWARE\CyberLink\PowerDVD","CustomerID",0,"CYBERLINK"
HKLM,"SOFTWARE\CyberLink\Common\CLVSD","UIUseHVA",65537,1
HKLM,"SOFTWARE\CyberLink\Common\CLVSD","EnableVMR",65537,1
HKLM,"SOFTWARE\CyberLink\Common\CLVSD","EnableVMR9",65537,1
HKLM,"SOFTWARE\CyberLink\Common\CLVSD","PV_FOR_MCE",65537,1
HKLM,"SOFTWARE\CyberLink\Common\CLVSD","TwinViewDXVA",65537,1
HKLM,"SOFTWARE\CyberLink\Common\CLVSD\dxvadecodertest","EnableVMR",65537,0
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Service\Video","PreferredMPEG2VideoDecoder",0,"{8ACD52ED-9C2D-4008-9129-DCE955D86065}"
[Un.Reg]
HKLM,"%UnInstallPath%\cyberlnv","DisplayName",,%DeviceDesc%
HKLM,"%UnInstallPath%\cyberlnv","UninstallString",,"RunDLL32.exe advpack.dll,LaunchINFSection cyberlnv.inf, UnInstall"
[Common.Reg]
HKCR,"ocxfile\shell\RegOCX",,,"Re&gister control"
HKCR,"ocxfile\shell\RegOCX\command",,,"regsvr32 ""%1"""
HKCR,"ocxfile\shell\UnRegOCX",,,"&Unregister control"
HKCR,"ocxfile\shell\UnRegOCX\command",,,"regsvr32 /u ""%1"""
HKCR,"dllfile\shell\RegDLL",,,"Re&gister library"
HKCR,"dllfile\shell\RegDLL\command",,,"regsvr32 ""%1"""
HKCR,"dllfile\shell\UnRegDLL",,,"&Unregister library"
HKCR,"dllfile\shell\UnRegDLL\command",,,"regsvr32 /u ""%1"""
HKLM,"SOFTWARE\Classes\.ax",,,"axfile"
HKCR,"axfile\shell\RegAX",,,"Re&gister ActiveX"
HKCR,"axfile\shell\RegAX\command",,,"regsvr32 ""%1"""
HKCR,"axfile\shell\UnRegAX",,,"&Unregister ActiveX"
HKCR,"axfile\shell\UnRegAX\command",,,"regsvr32 /u ""%1"""
HKCR,"exefile\shell\UnRegEXE",,,"&Unregister Application"
HKCR,"exefile\shell\UnRegEXE\command",,,"regsvr32 /u ""%1"""
HKCR,"inffile\shell\APInst",,,"Active I&nstall"
HKCR,"inffile\shell\APInst\command",,,"rundll32.exe advpack.dll,LaunchINFSection ""%1"", DefaultInstall"
HKCR,"inffile\shell\Uninstall\command",,,"rundll32.exe advpack.dll,LaunchINFSection ""%1"", UnInstall"
HKCU,"Software\Microsoft\MediaPlayer\Player\Settings",EnableDVDUI,,yes
HKCR,".mov",,,avifile
HKCR,".m2v",,,mpegfile
HKCR,".m2p",,,mpegfile
HKCR,".m2t",,,mpegfile
HKCR,".vob",,,mpegfile
HKCR,".mpv",,,mpegfile
[SourceDisksFiles]
clvsd.ax = 1
cldxva.ax = 1
[Uninstall.BeginPrompt]
Prompt = "%UNINSTALL_BEGIN_PROMPT%"
Title = "%DISPLAY_NAME%"
ButtonType = YESNO
[Uninstall.EndPrompt]
Prompt = "%UNINSTALL_END_PROMPT%"
[Strings]
WRONG_ADVPACK_VERSION = "You need a newer version of ADVPACK.DLL"
BAD_SETUP_VER = "Your system is missing the required setup engine."
MediaRes = "SYSTEM\CurrentControlSet\Control\MediaResources"
CurVerNT = "SOFTWARE\Microsoft\Windows NT\CurrentVersion"
UnInstallPath = "Software\Microsoft\Windows\CurrentVersion\Uninstall"
IEMain = "Software\Microsoft\Internet Explorer\Main"
DISPLAY_NAME = "CyberLink PowerDVD 7 MPEG-2 decoder uninstall"
UNINSTALL_BEGIN_PROMPT = "Are you sure you wish to uninstall the CyberLink PowerDVD 7 MPEG-2 decoder?"
UNINSTALL_END_PROMPT = "CyberLink PowerDVD 7 MPEG-2 decoder uninstall is now complete."
DeviceDesc = "CyberLink PowerDVD 7 MPEG-2 decoder 6.0.2.2806"
MediaClassName = "Media Devices"
mfgname = CyberLink Corp.
Support = "http://www.gocyberlink.com/"
"Вина" лежала в параметре "Support" секции [Un.Reg]
Командная строка для обновлённой установки:
rundll32.exe advpack.dll,LaunchINFSection cyberlnv.inf, DefaultInstall
Файлы:
CLDemuxer.ax, CLLine21.ax, CLNavX.ax, CLQTSrc.ax, CLSubTitle.ax, CLVSD.ax, PowerDVD.sim, cyberlnv.inf
Сценарий для WinRAR 3.51:
Setup=rundll32.exe advpack.dll,LaunchINFSection cyberlnv.inf, DefaultInstall
TempMode
Silent=1
Overwrite=1
P.S. Свой пакет постараюсь выложить в ближайшие дни. Сейчас проблемы с каналом.