How can an app check which version of OIPI is installed? I'm looking for something that works for all versions of Windows, OI and OIPI. At the very least I need something that tells if it's 16-or 32-bit OIPI that's installed.
For all I know the answer is be very simple. I just haven't taken the time to think things through. But also some solutions might be more robust than others. E.g perhaps somebody has a solution that can find out about installations that have gone wrong.
But any suggestion is welcome!
- Oystein -
If Dir("OIPI32.EXE") Then Is32Bit=True$ Else Is32Bit=False$
Won't the VERSION Get_Printer message work? Here's what it is supposed to return:
Current OpenInsight Printer Interface version number
OIPI EXE build number
VSVIEW printer control version number
Professional or Standard
Not if you haven't previsouly initialised - it will return VERSION. Hence this is the simplest way, requiring one not two statements. Your method provides more useful information though.
I figured both methods have their benefits. Using the VERSION message has the additional advantage of telling the system which OIPI loaded, i.e. in case a START32 wasn't executed or somehow OIPI32 got closed.