Need some way to test if Bartender is installed 追蹤
I am developing an app which uses your .NET SDK. So far so good,
What I'd like is some means of testing if Bartender is installed, so that my app can feedback to the user that this part of the overall functionality is unavailable. Possibilities:
1) Use Type.GetTypeFromProgID() to check for a COM class, e.g.:
Public Shared Function IsInstalled() As Boolean
Return Type.GetTypeFromProgID("BarTender.Application") IsNot Nothing
2) Look through the filesystem for installed folders/files.
I don't much like either of those options. The first relies on COM (ugh), and the second relies on Seagull keeping the filesystem consistent over future versions. I can't use an existing .NET method, because chicken/egg etc.
What's the solution? If all else fails, could we be provided with a redistributable DLL which Seagull supports and allows this test?