; VHL-codecpack.nsi ; ; Een scriptje gemaakt door Ronald Loggen (Idioteque) wat alle benodigde codec's installeert. ; Versie 4.0 ;-------------------------------- Function .onInit # the plugins dir is automatically deleted when the installer exits InitPluginsDir File /oname=$PLUGINSDIR\splash.bmp "logo.bmp" #optional File /oname=$PLUGINSDIR\splash.wav "splash.wav" splash::show 3000 $PLUGINSDIR\splash Pop $0 ; $0 has '1' if the user closed the splash screen early,'0' if everything closed normal, and '-1' if some error occured. FunctionEnd ;-------------------------------- ; The name of the installer Name "VHL-Codecpack" ;-------------------------------- ; The file to write OutFile "VHL-Codecpack v0.55.exe" ;-------------------------------- ; The default installation directory InstallDir $PROGRAMFILES\VHL-Codecpack ;-------------------------------- Function .onInstSuccess ExecShell open "$SMPROGRAMS\VHL-Codecpack" Exec "$INSTDIR\mplayerc.exe" FunctionEnd ;-------------------------------- ; The text to prompt the user to enter a directory componentText "Selecteer welke onderdelen je wilt instaleren." ;-------------------------------- Icon "icon.ico" UninstallIcon "icon.ico" ;-------------------------------- CRCCheck on AllowRootDirInstall "false" BrandingText " By Idioteque" Caption "VHL-Codecpack" DirShow "show" InstallColors FFD600 010162 InstProgressFlags "smooth" ShowInstDetails "show" XPStyle on ;-------------------------------- SubCaption 0 ": Belangrijke Informatie" SubCaption 1 ": Stap 1 Welke onderdelen" SubCaption 2 ": Step 2 Instalatie map." SubCaption 3 ": Stap 3 Bezig met instaleren." SubCaption 4 ": Stap 4 Klaar, en veel kijkplezier." ;-------------------------------- LicenseText "Lees dit goed door, om latere problemen te voorkomen." "Continue" LicenseData "readme.txt" AutoCloseWindow "false" ;-------------------------------- !macro BIMAGE IMAGE PARMS Push $0 GetTempFileName $0 File /oname=$0 "${IMAGE}" SetBrandingImage ${PARMS} $0 Delete $0 Pop $0 !macroend ;-------------------------------- AddBrandingImage left 100 ;-------------------------------- ; Pages Page license licenseImage Page components compImage Page directory dirImage Page custom customPage Page instfiles instImage ;-------------------------------- ; The text to prompt the user to enter a directory DirText "Choose a directory to install in to:" ;-------------------------------- Section "VHL-Codecpack (required)" ;-------------------------------- SectionIn RO ;-------------------------------- ; Set output path to the installation directory. SetOutPath $INSTDIR ;-------------------------------- UnRegDLL "$SYSDIR\ac3filter.cpl" UnRegDLL "$SYSDIR\ac3filter.ax" UnRegDLL "$SYSDIR\divxg400.ax" UnRegDLL "$SYSDIR\divxdec.ax" UnRegDLL "$SYSDIR\ffdshow.ax" UnRegDLL "$SYSDIR\l3codecx.ax" UnRegDLL "$SYSDIR\mpgdec.ax" UnRegDLL "$SYSDIR\mpeg2dmx.ax" UnRegDLL "$SYSDIR\oggDS.dll" UnRegDLL "$SYSDIR\xvid.ax" UnRegDLL "$SYSDIR\pim2null.ax" ;-------------------------------- UnRegDLL "$INSTDIR\ac3filter.cpl" UnRegDLL "$INSTDIR\ac3filter.ax" UnRegDLL "$INSTDIR\divxg400.ax" UnRegDLL "$INSTDIR\divxdec.ax" UnRegDLL "$INSTDIR\ffdshow.ax" UnRegDLL "$INSTDIR\l3codecx.ax" UnRegDLL "$INSTDIR\mpgdec.ax" UnRegDLL "$INSTDIR\mpeg2dmx.ax" UnRegDLL "$INSTDIR\oggDS.dll" UnRegDLL "$INSTDIR\xvid.ax" UnRegDLL "$INSTDIR\pim2null.ax" ;-------------------------------- ;Copy Files File ac3filter.ax File ac3filter.cpl File ac3filter.ico File divx.dll File divxdec.ax File divXg400.ax File ffdshow.ax File l3codecx.ax File libavcodec.dll File libmpeg2_ff.dll File libmplayer.dll File mpeg2dmx.ax File mpgdec.ax File msvcr70.dll File ogg.dll File Oggds.dll File tomsmocomp_ff.dll File vorbis.dll File vorbisenc.dll File xvid.ax File xvid.dll FIle DivX5.1config.exe File mplayerc.exe File mplayerc.ini File codec_remover.exe File logo.bmp File Divfix.exe File divfix.ini File divfixreadme.txt File divFixlicense.txt File gspot.exe File gspot221.dat File msdmo.dll File license.txt File pim2null.ax File matrix_mixer.ax ;-------------------------------- CopyFiles /SILENT "$INSTDIR\ac3filter.ax" "$SYSDIR\ac3filter.cpl" CopyFiles /SILENT "$INSTDIR\libavcodec.dll" "$SYSDIR\libavcodec.dll" CopyFiles /SILENT "$INSTDIR\msvcr70.dll" "$SYSDIR\msvcr70.dll" CopyFiles /SILENT "$INSTDIR\ogg.dll" "$SYSDIR\ogg.dll" CopyFiles /SILENT "$INSTDIR\OggDS.dll" "$SYSDIR\OggDS.dll" CopyFiles /SILENT "$INSTDIR\TomsMoComp_ff.dll" "$SYSDIR\TomsMoComp_ff.dll" CopyFiles /SILENT "$INSTDIR\vorbis.dll" "$SYSDIR\vorbis.dll" CopyFiles /SILENT "$INSTDIR\vorbisenc.dll" "$SYSDIR\vorbisenc.dll" CopyFiles /SILENT "$INSTDIR\xvid.dll" "$SYSDIR\xvid.dll" CopyFiles /SILENT "$INSTDIR\xvid.ax" "$SYSDIR\xvid.ax" CopyFiles /SILENT "$INSTDIR\divxdec.ax" "$SYSDIR\divxdec.ax" CopyFiles /SILENT "$INSTDIR\divx.dll" "$SYSDIR\divx.dll" ;-------------------------------- ;Write the installation path into the registry WriteRegStr HKLM SOFTWARE\VHL-Codecpack "Install_Dir" "$INSTDIR" ;-------------------------------- ;; Register filters RegDLL "$SYSDIR\ac3filter.cpl" RegDLL "$INSTDIR\ac3filter.ax" RegDLL "$INSTDIR\divxg400.ax" RegDLL "$SYSDIR\divxdec.ax" RegDLL "$INSTDIR\ffdshow.ax" RegDLL "$INSTDIR\l3codecx.ax" RegDLL "$INSTDIR\matrix_mixer.ax" RegDLL "$INSTDIR\mpgdec.ax" RegDLL "$INSTDIR\mpeg2dmx.ax" RegDLL "$INSTDIR\oggDS.dll" RegDLL "$INSTDIR\pim2null.ax" RegDLL "$SYSDIR\xvid.ax" ;-------------------------------- ; Write the uninstall keys for Windows WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\VHL-Codecpack" "DisplayName" "VHL-Codecpack" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\VHL-Codecpack" "UninstallString" "$INSTDIR\uninstall.exe" WriteUninstaller "uninstall.exe" ;-------------------------------- SectionEnd SubSection "Presets" Section "Presets DivX 5.1" WriteRegStr HKEY_CURRENT_USER "Software\DivXNetworks" "" "" WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Bitrate" 0xbe6e0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "VBV Channel Bitrate" 0x6a1120 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "VBV Buffer Size" 0x300000 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "VBV Occupancy" 0x240000 WriteRegStr HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Complexity Modulation" "0.000000" WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Max Keyframe Interval" 0x12c WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Quality" 0x5 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "VBR Mode" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "VBR Quality v5" 0x28 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Frame Dropping" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Deinterlace" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Postprocessing" 0x3c WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "CPU Limit" 0x64 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Use CPU Limit" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Data Partitioning" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Bidirectional Encoding" 0x1 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Scene change threshold" 0x32 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "do_add" 0x1 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "do_mc" 0x1 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "do_mc_b" 0x1 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "show_gmc" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "no_vbr_rc" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "use_mvfile" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "do_writeyuv" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "do_writeyuvmul" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Psychovisual Enhancement" 0x1 WriteRegStr HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Psychovisual Strength - Frame Level" "0.200000" WriteRegStr HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Psychovisual Strength - Macroblock level" "0.200000" WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Write MP4 file" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Use GMC" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Quarter-pel" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Crop" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Resize" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Crop left" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Crop right" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Crop top" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Crop bottom" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Resize width" 0x280 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Resize height" 0x1e0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Resize mode" 0x0 WriteRegStr HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Bicubic spline B" "0.000000" WriteRegStr HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Bicubic spline C" "0.500000" WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Temporal enable" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Spatial passes" 0x0 WriteRegStr HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Temporal level" "0.000000" WriteRegStr HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Spatial level" "0.000000" WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Interlace mode" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Use dialogs" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Disable feedback" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Write log file" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "5.0 Psychovisual Mode" 0x2 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "5.0 Preprocessing Mode" 0xffffffff WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "5.0 Resize Mode" 0x1 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Write nth pass logfile" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Disable Profile Page" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Active Profile" 0x2 WriteRegStr HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Nth Pass debug file name" "c:\newrc.txt" WriteRegStr HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Log File Name" "c:\divx.log" WriteRegStr HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "MP4 File Name" "c:\test.divx" WriteRegStr HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "YUV Dir Name" "c:\yuv" WriteRegStr HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "MV File Name" "c:\mvinfo.bin" WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Auto PP" 0x1 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Disable PP" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Dering PP Level" 0x30 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Deblock PP Level" 0xf WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Warmth Strength" 0x2 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Warmth Filter" 0x1 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Brightness" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Contrast" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Saturation" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "AspectRatio_X" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "AspectRatio_Y" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Smooth Playback" 0x1 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Extended Yuv Mode" 0x1 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Double Buffering" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Extended Overlay Mode" 0x0 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "Disable Logo" 0x1 WriteRegDWORD HKEY_CURRENT_USER "Software\DivXNetworks\DivX4Windows" "ATI Disable" 0x0 SectionEnd ;Install presets for ffdshow Section "Presets FFDshow" WriteRegStr HKLM "SOFTWARE\GNU" "" "" WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "xvid" 0x0 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "div3" 0x0 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "divx" 0x0 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "dx50" 0x0 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "mp43" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "mp42" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "mp41" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "h263" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "wmv1" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "wmv2" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "rawv" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "mpg1" 0x0 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "mpg2" 0x0 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "mjpg" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "dvsd" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "hfyu" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "dontRegisterUnused" 0x0 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "outI420" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "outYV12" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "outYUY2" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "outYVYU" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "outUYVY" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "outRGB32" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "outRGB24" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "outRGB555" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "outRGB565" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "hwOverlay" 0x1 WriteRegStr HKLM "SOFTWARE\GNU\ffdshow" "Lang" "1033" WriteRegStr HKLM "SOFTWARE\GNU\ffdshow" "pth" "C:\Program Files\VHL-Codecpack" WriteRegStr HKLM "SOFTWARE\GNU\ffdshow" "Installer Language" "1033" WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "mpegAVI" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "cyuv" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "theo" 0x0 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "fvfw" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "asv1" 0x1 WriteRegDWORD HKLM "SOFTWARE\GNU\ffdshow" "needCodecFix" 0x0 ;-------------------------------- SectionEnd ;-------------------------------- ; Install presets for AC3 ;optional section (can be disabled by the user) Section "Presets AC3 Filter" WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\standard" "dynrng" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\standard" "auto_gain" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\standard" "normalize" 0 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\standard" "auto_matrix" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\standard" "normalize_matrix" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\standard" "expand_stereo" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\standard" "voice_control" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\standard" "clev_lock" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\standard" "slev_lock" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\standard" "lfelev_lock" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\standard" "bass_redir" 1 ;-------------------------------- WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\standard" "clev" "1.000000" WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\standard" "slev" "1.000000" WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\standard" "lfelev" "1.000000" WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\standard" "master" "1.000000" WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\standard" "dynrng_power" "1.000000" ;-------------------------------- ;; 'LFE boost' preset WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "dynrng" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "auto_gain" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "normalize" 0 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "auto_matrix" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "normalize_matrix" 0 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "expand_stereo" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "voice_control" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "clev_lock" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "slev_lock" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "lfelev_lock" 0 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "bass_redir" 1 ;-------------------------------- WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "clev" "1.000000" WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "slev" "1.000000" WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "lfelev" "3.162278" WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "master" "0.707946" WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\LFE boost" "dynrng_power" "1.000000" ;-------------------------------- ;; 'loud' preset WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\loud" "dynrng" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\loud" "auto_gain" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\loud" "normalize" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\loud" "auto_matrix" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\loud" "normalize_matrix" 0 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\loud" "expand_stereo" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\loud" "voice_control" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\loud" "clev_lock" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\loud" "slev_lock" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\loud" "lfelev_lock" 1 WriteRegDWORD HKCU "SOFTWARE\AC3Filter\preset\loud" "bass_redir" 1 ;-------------------------------- WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\loud" "clev" "1.000000" WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\loud" "slev" "1.000000" WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\loud" "lfelev" "1.000000" WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\loud" "master" "10.000000" WriteRegStr HKCU "SOFTWARE\AC3Filter\preset\loud" "dynrng_power" "1.000000" ;-------------------------------- ;; Delete shit from old versions of AC3 filter DeleteRegValue HKLM "Software\Microsoft\Windows\CurrentVersion\Control Panel\Cpls" "AC3Filter" ;-------------------------------- SectionEnd SubSectionEnd Subsection Shortcuts ;optional section (can be disabled by the user) Section "Desktop Shortcuts" ;-------------------------------- CreateShortCut "$DESKTOP\Mediaplayer Classic.lnk" "$INSTDIR\mplayerc.exe" CreateShortCut "$QUICKLAUNCH\Mediaplayer Classic.lnk" "$INSTDIR\mplayerc.exe" CreateShortCut "$DESKTOP\Test hier de geinstalleerde codecs.lnk" "\\grummy\film\-= HOT! =-\--==Test Samples==--" ;-------------------------------- SectionEnd ;-------------------------------- ; optional section (can be disabled by the user) Section "Start Menu Shortcuts" CreateDirectory "$SMPROGRAMS\VHL-Codecpack" CreateShortCut "$SMPROGRAMS\VHL-Codecpack\Test hier de geinstalleerde codecs.lnk" "\\grummy\film\-= HOT! =-\--==Test Samples==--" CreateShortCut "$SMPROGRAMS\VHL-Codecpack\Mediaplayer Classic.lnk" "$INSTDIR\mplayerc.exe" CreateShortCut "$SMPROGRAMS\VHL-Codecpack\Settings DivX 5.1.lnk" "$INSTDIR\DivX5.1Config.exe" CreateShortCut "$SMPROGRAMS\VHL-Codecpack\Settings FFdshow.lnk" "rundll32.exe" "ffdshow.ax,configure" "regedit.exe" 0 CreateShortCut "$SMPROGRAMS\VHL-Codecpack\Settings AC3 .lnk" "$INSTDIR\ac3filter.cpl" "" "$INSTDIR\ac3filter.ico" 0 "SW_SHOWNORMAL" CreateShortCut "$SMPROGRAMS\VHL-Codecpack\Uninstall VHL-Codecpack.lnk" "$INSTDIR\uninstall.exe" CreateShortCut "$SMPROGRAMS\VHL-Codecpack\Codec Remover.lnk" "$INSTDIR\codec_remover.exe" CreateDirectory "$SMPROGRAMS\VHL-Codecpack\Help, de film doet het nog steeds niet" CreateShortCut "$SMPROGRAMS\VHL-Codecpack\Help, de film doet het nog steeds niet\DivX Fix.lnk" "$INSTDIR\divfix.exe" CreateShortCut "$SMPROGRAMS\VHL-Codecpack\Help, de film doet het nog steeds niet\Gspot Codec Information Appliance.lnk" "$INSTDIR\Gspot.exe" SectionEnd SubsectionEnd ;-------------------------------- Function licenseImage !insertmacro BIMAGE "sidebar.bmp" "" FunctionEnd Function customPage !insertmacro BIMAGE "sidebar.bmp" "" FunctionEnd Function dirImage !insertmacro BIMAGE "sidebar.bmp" "" FunctionEnd Function instImage !insertmacro BIMAGE "sidebar.bmp" "" FunctionEnd Function compImage !insertmacro BIMAGE "sidebar.bmp" "" FunctionEnd ;-------------------------------- Section "Remove previous Presets" ;DELETING OLD SHIT DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\VHL-Codecpack" DeleteRegKey HKLM "Software\GNU" DeleteRegKey HKLM "Software\PRR" DeleteRegKey HKCU "Software\AC3Filter" DeleteRegKey HKCU "Software\GNU" DeleteRegKey HKCU "Software\Elecard" DeleteRegKey HKCU "Software\DivXNetworks" DeleteRegKey HKCU "Software\Spot Appliance Corp" DeleteRegKey HKU ".DEFAULT\Software\GNU" DeleteRegKey HKU ".DEFAULT\Software\Elecard" DeleteRegKey HKU ".DEFAULT\Software\DivXNetworks" DeleteRegKey HKU ".DEFAULT\Software\GSpot Appliance Corp" ;-------------------------------- SectionEnd ; Uninstaller Section "Uninstall" !insertmacro BIMAGE "sidebar.bmp" "" ;-------------------------------- DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\VHL-Codecpack" DeleteRegKey HKLM "Software\GNU" DeleteRegKey HKLM "Software\PRR" DeleteRegKey HKCU "Software\AC3Filter" DeleteRegKey HKCU "Software\GNU" DeleteRegKey HKCU "Software\Elecard" DeleteRegKey HKCU "Software\DivXNetworks" DeleteRegKey HKCU "Software\Spot Appliance Corp" DeleteRegKey HKU ".DEFAULT\Software\GNU" DeleteRegKey HKU ".DEFAULT\Software\Elecard" DeleteRegKey HKU ".DEFAULT\Software\DivXNetworks" DeleteRegKey HKU ".DEFAULT\Software\GSpot Appliance Corp" ;-------------------------------- UnRegDLL "$INSTDIR\ac3filter.cpl" UnRegDLL "$INSTDIR\ac3filter.ax" UnRegDLL "$INSTDIR\divxg400.ax" UnRegDLL "$INSTDIR\divxdec.ax" UnRegDLL "$INSTDIR\ffdshow.ax" UnRegDLL "$INSTDIR\l3codecx.ax" UnRegDLL "$INSTDIR\mpgdec.ax" UnRegDLL "$INSTDIR\mpeg2dmx.ax" UnRegDLL "$INSTDIR\oggDS.dll" UnRegDLL "$INSTDIR\xvid.ax" UnRegDLL "$INSTDIR\pim2null.ax" UnregDLL "$INSTDIR\matrix_mixer.ax" ;-------------------------------- Delete "$SMPROGRAMS\VHL-Codecpack\Help, de film doet het nog steeds niet\*.*" RMDir "$SMPROGRAMS\VHL-Codecpack\Help, de film doet het nog steeds niet" Delete "$SMPROGRAMS\VHL-Codecpack\*.*" RMDir "$SMPROGRAMS\VHL-Codecpack" ;-------------------------------- Delete "$DESKTOP\Mediaplayer Classic.lnk" Delete "$QUICKLAUNCH\Mediaplayer Classic.lnk" Delete "$DESKTOP\Test hier de geinstalleerde codecs.lnk" ;-------------------------------- Delete "$INSTDIR\*.*" Delete "$SYSDIR\ac3filter.cpl" Delete "$SYSDIR\libavcodec.dll" Delete "$SYSDIR\msvcr70.dll" Delete "$SYSDIR\ogg.dll" Delete "$SYSDIR\OggDS.dll" Delete "$SYSDIR\TomsMoComp_ff.dll" Delete "$SYSDIR\vorbis.dll" Delete "$SYSDIR\vorbisenc.dll" Delete "$SYSDIR\vorbis.dll" SectionEnd