yellowdog
(Starting to like KiXtart)
2015-02-24 11:26 AM
READVALUIE returning nothing on 64 bits platforms

Hello,

Could you tell me why when using the READVALUE command on any 64 bits platform the return is always empty, although the value is present in the registry ?

I tried the following:

READVALUE("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent", "DisplayName")

READVALUE("HKEY_LOCAL_MACHINE\Wow6432Node\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent", "DisplayName")


Thanks for the answer.


Glenn BarnasAdministrator
(KiX Supporter)
2015-02-24 01:17 PM
Re: READVALUIE returning nothing on 64 bits platforms

If it's a 64-bit platform, you may need to adjust the redirection setting.
$Rv = SetOption('WOW64AlternateRegView', 'on|off')

Glenn


LonkeroAdministrator
(KiX Master Guru)
2015-02-24 02:03 PM
Re: READVALUIE returning nothing on 64 bits platforms

If the value is present in wow node, that is the value returned by default to 32bit applications by windows. And if it isn't there the nothing is returned.

From your post I deduct you have a value in there but still can't read it. Is this true?


yellowdog
(Starting to like KiXtart)
2015-02-24 08:09 PM
Re: READVALUIE returning nothing on 64 bits platforms

Glenn, I copied your command at the begining of my script and set either on or off, but it doese not solve my problem, the return of READVALUE is still empty.

Lonkero, the value is not in the WOW node, I tried to get the value from either the 32 or 64 node and the result is always empty.

Any idea ?


LonkeroAdministrator
(KiX Master Guru)
2015-02-24 10:44 PM
Re: READVALUIE returning nothing on 64 bits platforms

What is the error after the readvalue?

ChristopheM
(Hey THIS is FUN)
2015-02-25 02:56 PM
Re: READVALUIE returning nothing on 64 bits platforms

for 64 bits system, try the reg key
"HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent"
instead of
"HKEY_LOCAL_MACHINE\Wow6432Node\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent"


LonkeroAdministrator
(KiX Master Guru)
2015-02-25 04:21 PM
Re: READVALUIE returning nothing on 64 bits platforms

that is an awesome point!
It does help looking at this stuff on bigger than 4 inch screen.


yellowdog
(Starting to like KiXtart)
2015-03-02 10:06 AM
Re: READVALUIE returning nothing on 64 bits platforms

Christophem, I test the presence of the fusion inventory 64 bits client on a server. And the key for this agent is located here on a 64 bits server.

READVALUE ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent","DisplayName")

And systematically the content of the READVALUE is empty.

What is the problem ?


LonkeroAdministrator
(KiX Master Guru)
2015-03-03 05:22 AM
Re: READVALUIE returning nothing on 64 bits platforms

Go back and read what has been said before. The answer has been given.

yellowdog
(Starting to like KiXtart)
2015-03-10 03:06 PM
Re: READVALUIE returning nothing on 64 bits platforms

I must be blind, but I tried Glenn's stuff in vain and any key in either the WOW or not is returning nothing.

What's the answer please ?


AllenAdministrator
(KiX Supporter)
2015-03-10 03:12 PM
Re: READVALUIE returning nothing on 64 bits platforms

Chris's post should be the answer.

for 64 bits system, try the reg key
"HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent"
instead of
"HKEY_LOCAL_MACHINE\Wow6432Node\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent"


yellowdog
(Starting to like KiXtart)
2015-03-11 11:17 AM
Re: READVALUIE returning nothing on 64 bits platforms

That is not the answer, I did a mistake copying the key indeed.

But I get nothing in return from the command if I use the following key, set for a 64 bits server.


"HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent"


Glenn BarnasAdministrator
(KiX Supporter)
2015-03-11 02:35 PM
Re: READVALUIE returning nothing on 64 bits platforms

And the result of @ERROR / @SERROR are???

AllenAdministrator
(KiX Supporter)
2015-03-11 05:53 PM
Re: READVALUIE returning nothing on 64 bits platforms

Post your results:

 Code:
? @onwow64
? @kix
?
? READVALUE ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent","DisplayName")
? @serror
?
? READVALUE ("HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent","DisplayName")
? @serror
?
$RC = SetOption('WOW64AlternateRegView', 'on')
? READVALUE ("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent","DisplayName")
? @serror
?
? READVALUE ("HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\FusionInventory-Agent","DisplayName")
? @serror
?


yellowdog
(Starting to like KiXtart)
2015-03-13 12:06 PM
Re: READVALUIE returning nothing on 64 bits platforms

The result of your script is:

 Quote:

C:\Windows\kixtart>KIX32.EXE test.kix

1
4.51


Le fichier spécifié est introuvable.


Le fichier spécifié est introuvable.


Le fichier spécifié est introuvable.


Le fichier spécifié est introuvable.

C:\Windows\kixtart>


JochenAdministrator
(KiX Supporter)
2015-03-13 03:17 PM
Re: READVALUIE returning nothing on 64 bits platforms

Hi yellowdog,

can you try it with this version: KiX2010.464.zip and repost the results?

nB. my results are

 Quote:


1
4.64


Das System kann die angegebene Datei nicht finden.


Das System kann die angegebene Datei nicht finden.

FusionInventory Agent 2.3.10.1 (x64 edition)
Der Vorgang wurde erfolgreich beendet.


Das System kann die angegebene Datei nicht finden.


yellowdog
(Starting to like KiXtart)
2015-03-13 03:53 PM
Re: READVALUIE returning nothing on 64 bits platforms

OK now it's working

 Quote:
C:\TEMP\KIX>KIX32.EXE test.kix

1
4.64


Le fichier spécifié est introuvable.


Le fichier spécifié est introuvable.

FusionInventory Agent 2.3.14 (x64 edition)
L'opération a réussi.


Le fichier spécifié est introuvable.

C:\TEMP\KIX>



Thank you for your assistance all together.