Show-InstallationPrompt log location

Here I describe how to do it automatically:

Update:
user Kushpat from that post has messaged me that my solution above worked but is not perfect.