Link to home
Start Free TrialLog in
Avatar of StevenHook
StevenHook

asked on

I am having trouble finding the right registry entry to look up.

Hi,
I am having a strange result when looking up an item in the registry.
on my 64 bit laptop I have the current entry:
 HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\RapidStudio_RapidStudio
On my 32 bit PCs the entry is as follows:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RapidStudio_RapidStudio
There is no Wow6432Node folder.
when I perform the following on my 32 or 54 bit madhines I get the right result:
 $var32 = RegRead ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RapidStudio_RapidStudio", "AppFolder")
Even tho that entry does not exist on the 64 bit machine, it still somehow returns the desired value.
Is it safe to assume that this will always be the case?

Most importantly, how can I make a statement like "FileExists" so that if the reg entry exists I do something, if not, tell them it's not installed?

Thanks
Steven

SOLUTION
Avatar of tygrus2
tygrus2
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of StevenHook
StevenHook

ASKER

Awesome awesome assistance!
Thanks