larolsen
14 years agoContributor
Can't get key from registry on Win7 Pro 64 bit
Hi
In my test I need to fetch some infomation from the registry (install path of my app)
On one machine running WinXP SP3 32 bit (TestComplete 8) it works, on another machine running Win7 Pro 64 bit (TestExecute 8), it does not...
The snippet of code that is failing is this one:
L_ProgID = "Service.MyAppServer\Clsid"
Set L_keyCLSID = Storages.Registry(L_ProgID, HKEY_CLASSES_ROOT)
L_result = L_keyCLSID.GetOption ("","").
On XP it returns the correct clsid, on Win7 it returns an empty string
I have checked the registry on both machines, and to my knowledge the relevant entries are identical.
Is there any differences in how the registry behaves on XP 32 bit and Win7 64 bit? Or does TC8 handle them differently?
Best regards
Lars Lund Olsen
In my test I need to fetch some infomation from the registry (install path of my app)
On one machine running WinXP SP3 32 bit (TestComplete 8) it works, on another machine running Win7 Pro 64 bit (TestExecute 8), it does not...
The snippet of code that is failing is this one:
L_ProgID = "Service.MyAppServer\Clsid"
Set L_keyCLSID = Storages.Registry(L_ProgID, HKEY_CLASSES_ROOT)
L_result = L_keyCLSID.GetOption ("","").
On XP it returns the correct clsid, on Win7 it returns an empty string
I have checked the registry on both machines, and to my knowledge the relevant entries are identical.
Is there any differences in how the registry behaves on XP 32 bit and Win7 64 bit? Or does TC8 handle them differently?
Best regards
Lars Lund Olsen