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\SOFTWAR E\Wow6432N ode\Micros oft\Window s\CurrentV ersion\Uni nstall\Rap idStudio_R apidStudio
On my 32 bit PCs the entry is as follows:
HKEY_LOCAL_MACHINE\SOFTWAR E\Microsof t\Windows\ CurrentVer sion\Unins tall\Rapid Studio_Rap idStudio
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\SOFTW ARE\Micros oft\Window s\CurrentV ersion\Uni nstall\Rap idStudio_R apidStudio ", "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
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\SOFTWAR
On my 32 bit PCs the entry is as follows:
HKEY_LOCAL_MACHINE\SOFTWAR
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\SOFTW
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks