as soon as he write that script is working for him, that would be also my solution just for educational purposes.
how i do then same thing with delphi is another story :-)
i have just a little time atm to figure out how i correctly copy filename from the binary key (that was used in script i tested)
(...atm it show alot of UNICODE garbage but a real path\filename is also stored in there/visible to me...)
or how i reproduce that my registry show me just a foldername.
when i tell windows that it now should use this or that image, whatsever major format (bmp jpg png), it'll accept and my sample .exe's resolved me filename.
i admit, i havent got any knowings about any special used folder since for me (with virgin win10, no prior installed OS), both of my example worked well.
first one was raw registry reading.
second was api from microsoft.
lets see wich third method is needed to succeed