Name "RegSearch"
OutFile "RegSearch.exe"
!macro RegSearch _ROOTKEY
!define _ROOT ${_ROOTKEY}
Call RegSearch
!macroend
Function RegSearch
EnumRegKey $0 ${_ROOT} "" 1
FunctionEnd
Section
!insertmacro RegSearch HKLM
MessageBox MB_OK "$0"
SectionEnd
Problem with !define
Is there any way to pass this code?