ginglese
25th February 2009 13:14 UTC
install xvid codec with inf and dll
Hello,
i would like to install the xvid codec.
i have this 3 files:
xvid.inf
xvidcore.dll
xvidvfw.dll
but i don't know how to do it thanks to nsis. By hand i do a right click on the inf file and run install entry.
Is someone already did it ?
Guillaume
ginglese
25th February 2009 14:43 UTC
i found a first way :
rundll32.exe advpack.dll,LaunchINFSectionEx .\<file>.inf,,,4
now i have to found how to unsinstall it ... and how to use nsis system call.
ginglese
25th February 2009 17:42 UTC
ok here is my solution :
to install codec :
ExecWait 'rundll32.exe advpack.dll,LaunchINFSectionEx .\xvid.inf,,,4'
to uninstall :
ExecWait 'rundll32.exe setupapi,InstallHinfSection Remove_XviD 132 C:\WINDOWS\INF\xvid.inf'