Archive: registering Xvid-codec. Decode is ok but Xvid not visible in ENCODE software


registering Xvid-codec. Decode is ok but Xvid not visible in ENCODE software
OK what am I doing wrong ?

copied xvid.dll and xvid.ax to SYSDIR and registered xvid.ax

Decoding Xvid is OK but Xvid is not visible in Encoder software.

When I install Xvid NIC's version who also uses NSIS installer. it does show in encoder software.

What am I doing wrong ?


This is not really a NSIS related question, but if you attach a script someone might be able to find something. Maybe you can also ask the person that wrote that other installer for a script.


Do you have the following line in your script ?

WriteINIStr "$WINDIR\system.ini" "drivers32" "VIDC.XVID" "XVID.dll"


That looks like an old Win9x file. I don't think that will work with new Windows versions.


;--------------------------------

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\divxdec.ax"
RegDLL "$SYSDIR\xvid.ax"

Have attached VHL 4.0.nsi

I would think this in a NSI question coz when NIc's xvid uses NSIS it does register in encoder software. When I use regdll it doesn't. Perhaps a hidden feature ? ;)


Please attach large scripts. That makes it easier to read.

You'd better use the UpgradeDLL macro to upgrade the DLL files, because they could be in use.


Using that does not solve my problem of the codec ;)


It's better to use that macro anyway. I think you have to regiter your codec somewhere, ask other Xvid developers.


That's right.

I use:
RegDLL "$SYSDIR\divxdec.ax"
RegDLL "$SYSDIR\xvid.ax"

and the dll's are registerd. I Know coz I can watch Xvid movies.

I'll ask Nic from Xvid

But thx for the info anyway


Did you try the line I posted above ?
Works for me under WinXP.