How to Check installation

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
juju
Posts: 3
Joined: Thu Feb 28, 2008 3:11 pm

How to Check installation

Post by juju » Wed Mar 05, 2008 11:28 pm

I was wondering if its possible And How do i make Revolution or to be SPecific A button Check Where a Certain Program Is installed via the registry or Something else.

I would need something like later in the Program to Send command lines to the program.

juju
Posts: 3
Joined: Thu Feb 28, 2008 3:11 pm

Post by juju » Sun Mar 09, 2008 9:18 am

wow its been quite a few days and noone has replyed. That just shows how well this is supported...

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Sun Mar 09, 2008 10:01 am

Juju,

Frankly, I don't understand your question.

Also, whether other Revolution users reply in this forum says nothing about how well the company supports its product.

If you could explain your question in more details, I'd be happy to give it a try.

Best,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Sun Mar 09, 2008 2:28 pm

Hi juju,

just to second what Mark said. This is a user forum. Users helping users. We who reply do it voluntarily in our "free" time. If you have urgent queries that do not get answered on this forum or the use list (which is admittedly more active), you still have the option to mail directly to support@runrev.com

All the best,

Malte

keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Post by keyless » Sun Mar 09, 2008 4:15 pm

juju,

I've found the people on this forum to be most helpful, you just need to make sure to form your request as clearly as possible, because this is all volunteer and if you explain it well enough, you can even get answers from beginners (like me) who have already stumbled upon what you are looking for.

Assuming you are trying to get the install path from the registry. The command you will want to use is likely something like this I believe:

queryRegistry("HKEY.... THIS BEING THE KEY LOCATION")

Check run rev documentation for exact syntax.

This is also of course assuming you know what key this is stored under. I know there is a place where Windows installer stores these locations, as I once had a Windows Update completely delete them, ruining regular uninstall capability of all my installed apps :( google will be your frend on this.

Programs not installed through the Windows Installer won't be there however and just checking the Programs Files directory might be a better option.

juju
Posts: 3
Joined: Thu Feb 28, 2008 3:11 pm

Post by juju » Wed Mar 19, 2008 5:46 pm

Sorry guys. Ill try that :).

keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Post by keyless » Wed Mar 19, 2008 7:24 pm

juju wrote:Sorry guys. Ill try that :).
Got this from an old Metacard document:

To find the path to an application (such as Acrobat Reader, above) on Windows 95, use the queryRegistry function. Acrobat can be found with:
put word 1 to -2 of queryRegistry("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AcroExch.Document\shell\open\command") into gAcrobatPath

Why word 1 to -2? The registry entry is stored with position of the allowable parameters at the end. Taking word 1 to -2 takes the first word up to the word second from the end, removing those parameters.
Another useful one is being able to get the default web browser on Windows systems:
put word 1 to -2 of queryRegistry("hkey_local_machine\software\classes\http\shell\open\
command") into gWebBrowserPath

Post Reply