For several months, I had been looking around for a program to invoke from AMS that would detect whether or not a codec was installed on a user's system and offer to install it if it were not. Queries to many forums and software vendors produced no results and so, lacking any knowledge of how, I was left to write my own. I did so as a 3 screen AMS project, and the attached ZIP (1 Mb, AVI included) contains my project files. I'm looking for some help with its testing, as I've only been able to test it on a single Windows Me computer thus far.
As configured, this project tests for the presence of the DivX 5 codec by "DoesKeyExist" on the Registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\MediaResources\icm\vidc.DIVX, but it can easily be reconfigured to test for any other installed codec simply by changing the fourCC code ("DIVX") that terminates the key. In fact, I simply changed this value to test for both installed and uninstalled codecs. The project ZIP contains additional documentation in a ReadMe file which also appears as the third (and final) screen of the three. Note that if you have the DivX 5 codec installed, you will not even see the first screen (options), as those options would then not be relevant.
If you find this routine to be an effective solution to this problem, you're certainly welcome to use it in your own projects. I would simply ask that you e-mail me (my address is in the ReadMe) with a brief description of your product and its intended audience (resume credits), and most definitely if you encounter any problems in testing the routine.
13383-Codec Test.zip
As configured, this project tests for the presence of the DivX 5 codec by "DoesKeyExist" on the Registry key HKEY_LOCAL_MACHINE\System\CurrentControlSet\Contro l\MediaResources\icm\vidc.DIVX, but it can easily be reconfigured to test for any other installed codec simply by changing the fourCC code ("DIVX") that terminates the key. In fact, I simply changed this value to test for both installed and uninstalled codecs. The project ZIP contains additional documentation in a ReadMe file which also appears as the third (and final) screen of the three. Note that if you have the DivX 5 codec installed, you will not even see the first screen (options), as those options would then not be relevant.
If you find this routine to be an effective solution to this problem, you're certainly welcome to use it in your own projects. I would simply ask that you e-mail me (my address is in the ReadMe) with a brief description of your product and its intended audience (resume credits), and most definitely if you encounter any problems in testing the routine.
13383-Codec Test.zip
Comment