View Single Post
Old 03-12-2002, 14:52
Posts: n/a
Default Detect if VBA is installed (an answer and a question)

Something to think about

I want to know if someone who installs a script of mine has VBA for CorelDRAW 10 or CorelDRAW 11 installed. If this is so I can install a VBA solution if not I install a CorelSCRIPT solution (second choice because VBA has lot’s more possibilities). What I do now is look for the file “DRAW10VBA.HLP” or “DRAW11VBA.HLP” in the CorelDRAW directory “Programs”. I found out that this is the only file (at least that I could find) that will never be installed when during setup the VBA option is not checked or when someone installs a Try/Buy or an education license.
This seems a little bit unprofessionally to me but I really can’t find where CorelDRAW 10 stores the information that VBA is installed. In CorelDRAW 11 is a setting that shows you that VBA is installed:

VBAProgramFiles = installed

But here is the problem the “EN” part, this stands for the English version of CorelDRAW 11 but what is the key for the Dutch, the French etc. version and how to detect which version is installed?
There is a key which looks to me to be the one:

Language = EN

But is this failsafe?

If anyone has a better way of detecting if VBA for CorelDRAW 10 or CorelDRAW 11 is installed during a setup then post it here!
Reply With Quote