Locating an Application to Launch

xbury.cs at clearstream.com xbury.cs at clearstream.com
Wed Sep 28 08:50:33 EDT 2005


Hi David

> Hi,
> 
> How can I find out if an Application is available on the system, 
> especially if there is more than one version of the application 
> installed? I need something that will search all volumes on a system 
> and list all the occurances of the application?

The only reliable way i see to do this automatically is to scan the disks 
for 
the executable... 

While on windows, the registry can help, it still will not tell you if you 
have
two instances of an application installed or not... Rev doesn't even have 
a key!
So searching seems the best solution.

Assuming the user doesn't change the folders' each day, one scan should be 
enough
an maybe need some updates every x month if a change happens...

> For instance if I am looking for (say) Photoshop and there are three 
> versions on two volumes, I would like to present this to the user and 
> allow them to select the one they wish to launch. If there is only 
> one version, then just launch it.

Versions can be seen in some registry keys. On the Mac, i think you can
ask the finder for the file's information and find the version there. Now, 
on
windows, this only works if the file is installed and has a version 
registry key
but depeding on the manufacturer, this key can be anywhere... 
HKLM/software/abobo/arcobat/6.0
or HKLM\software\vereetas\nethackups\ which contains a key named 
version...

The easiest thing would be to ask the user what application he wants to 
run... This will
save you and the user lots of waiting or scripting... Let the user find 
where he installed
the application or what version he wants maybe deemed more flexible than 
the automatic
script that gets the wrong version - 

Example: runrev doesn't have any registry information in the registry so 
it doesn't know what 
version is running or where is the currently installed application to help 
the installer/updater...


cheers
Xavier


-----------------------------------------
Visit us at http://www.clearstream.com
                                                          
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents of
this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you are
not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically
states them to be the views of Clearstream International or of any of
its affiliates or subsidiaries.

END OF DISCLAIMER



More information about the use-livecode mailing list