|
|
|||||||
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. |
||||||||
|
|
|||||||
If it's a 64-bit platform, you may need to adjust the redirection setting. $Rv = SetOption('WOW64AlternateRegView', 'on|off') Glenn |
||||||||
|
|
|||||||
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? |
||||||||
|
|
|||||||
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 ? |
||||||||
|
|
|||||||
What is the error after the readvalue? |
||||||||
|
|
|||||||
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" |
||||||||
|
|
|||||||
that is an awesome point! It does help looking at this stuff on bigger than 4 inch screen. |
||||||||
|
|
|||||||
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 ? |
||||||||
|
|
|||||||
Go back and read what has been said before. The answer has been given. |
||||||||
|
|
|||||||
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 ? |
||||||||
|
|
|||||||
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" |
||||||||
|
|
|||||||
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" |
||||||||
|
|
|||||||
And the result of @ERROR / @SERROR are??? |
||||||||
|
|
|||||||
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 ? |
||||||||
|
|
|||||||
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> |
||||||||
|
|
|||||||
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. |
||||||||
|
|
|||||||
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. |