i have been trying to avoid posting this for a few days now..
i've gone through the usual cycle of Google, trial & error, reading, searching the forums, more reading.. etc..
GOAL:
Search the registry using a wildcard (*).
I would like the keys found as a result, not just a 1 or 0.
CURRENT:
Im using REG QUERY with a few other AfrowUK macros 🙂 .. but it's painfully slow.. it takes almost 1 minute~! :cry
;=== Search for .vlf*
ExpandEnvStrings $1 %COMSPEC%
nsExec::Exec `"$1" /c REG QUERY "HKEY_LOCAL_MACHINE\Software\Classes" /s | FINDSTR ".vlfteg*" > %TEMP%.\TEMP.TXT`
Push 1 ;line number to read from
Push "$TEMP\TEMP.TXT" ;text file to read
Call ReadFileLine
Pop $0 ;output string (read from file.txt)
StrCmp $0 "" cleanTEMP
${Trim} $2 $0
StrCpy $keytodelete $2
${registry::deleteKey} `$keytodelete` $R0
Im an NSIS noobie, i thought it might just be because of my coding. But after researching.. REG QUERY is known to be dreadfully slow.
Anyone have any suggestions, alternative or tip?
Thank you in advance.