3
I can run the following reg query command in Windows 7 and get the following results:
command-
Reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s /f "EMC Avamar for Windows"
output-
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{1693DDE2-4577-46E9-AEE2-0EAFE1F2A00E}
DisplayName REG_SZ EMC Avamar for Windows
Now when I run the same command in Windows XP, I get the following error:
error-
Error: Too many command-line parameters
Now I've found that with Window XP, you have to tweak the command and run it as follows:
command-
reg query HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall /s | FIND "EMC Avamar for Windows"
The command works but I only get the following output minus the actual regkey:
output-
DisplayName REG_SZ EMC Avamar for Windows
Like the Windows 7 command, is there a way to run the query in XP to get the key name as well?
+1, nice idea, but unfortunately doesn't work :( – Endoro – 2013-06-18T15:22:04.490
Doesn't work how? What is the error message? Note that you must have "EMC Avamar for Windows" installed to see any results or change that string to something you do have installed. Works just fine for me. – David Ruhmann – 2013-06-18T15:28:52.427
Are you on
XP
? translated error message: "too much command line parameters" (XP SP3 x86). – Endoro – 2013-06-18T15:40:37.890@David Ruhmann - I can run the command in Windows 7 and works to perfection. When I run it in Windows XP, I get the following message: Error: Too many command-line parameters %a – None – 2013-06-18T15:47:19.860
the keys may vary as you can see here :).
– Endoro – 2013-06-18T15:50:58.203@Endoro yes, which is why I need to query for the key name where "EMC Avamar for Windows" is found. If it was the same key name, I would've been done a long time ago :) – None – 2013-06-18T15:54:34.083
OMG, who moved this question?? I can't understand that! but I can give you once more +1 – Endoro – 2013-06-18T16:11:13.890
??? nothing has been moved to my knowledge. – dlemley – 2013-06-18T16:15:39.640
we are on superuser now = downvoted :( – Endoro – 2013-06-18T16:16:55.227
I fixed the script :) – David Ruhmann – 2013-06-18T16:18:41.977
2Indeed it seems like an odd move from SO to SU for this question. – David Ruhmann – 2013-06-18T16:25:27.827
@DavidRuhmann btw. your script is still not working. No error message, crash of the command line :( – Endoro – 2013-06-18T17:01:06.830
It works fine for me on Win XP SP3 x86. Crash how? Closes the command line? – David Ruhmann – 2013-06-18T17:31:42.760
Not close, it hangs endless. – Endoro – 2013-06-18T18:13:34.130
Are you sure it is hanging and not just really slow. To check remove the
> nul
from the script and you can watch its progress. It is slow due to poor handling of echo piping by Windows XP. – David Ruhmann – 2013-06-18T18:22:58.590@Endoro it was moved because the question is about using a command line utility, it's irrelevant that the answer(s) involve batch scripting. – Stijn – 2013-06-19T08:32:01.023
@Stijn thanks for your comment. this is clear a programming issue, everybody can see. Some compilers are also CLIs. but whatsoever, it does't really bother me :-) .. – Endoro – 2013-06-19T08:39:33.930