I've tried a few tips but I still have a problem.
My code looks like this:
I am asking for help because I can not deal with it.Function findDirectory
ClearErrors
ReadRegStr $0 HKLM \
"Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 409720" "InstallLocation"
${IF} ${Errors}
MessageBox MB_OK "Not exist"
${ELSE}
${IF} $0 == ""
MessageBox MB_OK "Exist and is empty"
${ELSE}
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Steam App 409720" "InstallLocation" ""
${ENDIF}
${ENDIF}
FunctionEnd



