james_lohr's picture

Detect if OpenAL is installed

Hello,

Is it possible to detect whether OpenAL is installed?

I would like to run oalinst.exe when my application starts up, but only if it has not already been installed. Annoyingly it will pop up with a "Do you want to allow this application to make changes to your computer" dialogue, so I only want this to happen once when the application is first run.

I have to say that it is an immense frustration that OpenAL doesn't just come as a few dlls I can include in the application directory.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
james_lohr's picture

On second thought, I guess that also means I then need to make my application restart itself. What a hack. :(

I HATE installers, but it looks like I'll just have to give in and use NSIS.

Inertia's picture

You can distribute with this dll OpenAL Soft.

It may be possible to rip the openal32.dll and wrap_oal.dll from the creative labs install, but you should check their license before shipping that.

james_lohr's picture

In the end I went with creating an NSIS installer, and installing OpenAL silently from oalinst.exe during the installation. It turned out to be surprisingly clean.