Page 1 of 1 1
Topic Options
#209997 - 2015-02-24 11:26 AM READVALUIE returning nothing on 64 bits platforms
yellowdog Offline
Starting to like KiXtart

Registered: 2005-06-14
Posts: 102
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.

Top
#209998 - 2015-02-24 01:17 PM Re: READVALUIE returning nothing on 64 bits platforms [Re: yellowdog]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
If it's a 64-bit platform, you may need to adjust the redirection setting.
$Rv = SetOption('WOW64AlternateRegView', 'on|off')

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#209999 - 2015-02-24 02:03 PM Re: READVALUIE returning nothing on 64 bits platforms [Re: Glenn Barnas]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
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?
_________________________
!

download KiXnet

Top
#210004 - 2015-02-24 08:09 PM Re: READVALUIE returning nothing on 64 bits platforms [Re: Lonkero]
yellowdog Offline
Starting to like KiXtart

Registered: 2005-06-14
Posts: 102
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 ?

Top
#210005 - 2015-02-24 10:44 PM Re: READVALUIE returning nothing on 64 bits platforms [Re: yellowdog]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
What is the error after the readvalue?
_________________________
!

download KiXnet

Top
#210008 - 2015-02-25 02:56 PM Re: READVALUIE returning nothing on 64 bits platforms [Re: yellowdog]
ChristopheM Offline
Hey THIS is FUN
*****

Registered: 2002-05-13
Posts: 309
Loc: STRASBOURG, France
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"
_________________________
Christophe

Top
#210010 - 2015-02-25 04:21 PM Re: READVALUIE returning nothing on 64 bits platforms [Re: ChristopheM]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
that is an awesome point!
It does help looking at this stuff on bigger than 4 inch screen.
_________________________
!

download KiXnet

Top
#210023 - 2015-03-02 10:06 AM Re: READVALUIE returning nothing on 64 bits platforms [Re: Lonkero]
yellowdog Offline
Starting to like KiXtart

Registered: 2005-06-14
Posts: 102
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 ?

Top
#210027 - 2015-03-03 05:22 AM Re: READVALUIE returning nothing on 64 bits platforms [Re: yellowdog]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Go back and read what has been said before. The answer has been given.
_________________________
!

download KiXnet

Top
#210073 - 2015-03-10 03:06 PM Re: READVALUIE returning nothing on 64 bits platforms [Re: Lonkero]
yellowdog Offline
Starting to like KiXtart

Registered: 2005-06-14
Posts: 102
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 ?


Edited by yellowdog (2015-03-10 03:07 PM)

Top
#210074 - 2015-03-10 03:12 PM Re: READVALUIE returning nothing on 64 bits platforms [Re: yellowdog]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
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"

Top
#210089 - 2015-03-11 11:17 AM Re: READVALUIE returning nothing on 64 bits platforms [Re: Allen]
yellowdog Offline
Starting to like KiXtart

Registered: 2005-06-14
Posts: 102
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"

Top
#210099 - 2015-03-11 02:35 PM Re: READVALUIE returning nothing on 64 bits platforms [Re: yellowdog]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4396
Loc: New Jersey
And the result of @ERROR / @SERROR are???
_________________________
Actually I am a Rocket Scientist! \:D

Top
#210101 - 2015-03-11 05:53 PM Re: READVALUIE returning nothing on 64 bits platforms [Re: Glenn Barnas]
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4545
Loc: USA
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
?

Top
#210105 - 2015-03-13 12:06 PM Re: READVALUIE returning nothing on 64 bits platforms [Re: Allen]
yellowdog Offline
Starting to like KiXtart

Registered: 2005-06-14
Posts: 102
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>

Top
#210106 - 2015-03-13 03:17 PM Re: READVALUIE returning nothing on 64 bits platforms [Re: yellowdog]
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
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.


Edited by Jochen (2015-03-13 03:30 PM)
Edit Reason: we use FI agent ;)
_________________________



Top
#210107 - 2015-03-13 03:53 PM Re: READVALUIE returning nothing on 64 bits platforms [Re: Jochen]
yellowdog Offline
Starting to like KiXtart

Registered: 2005-06-14
Posts: 102
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.

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 515 anonymous users online.
Newest Members
gespanntleuchten, DaveatAdvanced, Paulo_Alves, UsTaaa, xxJJxx
17864 Registered Users

Generated in 0.069 seconds in which 0.025 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org