I am using 7zsd_All.sfx and it works quite well. However, the %%S parameter only provides me with the folder name, not the file name of the archive. I include the License Number in the file name, which then drives my installer, so I need this file. As a hack, I currently search through the folder for a likely looking file.
And the reason that I do that is because these days the .exe must be signed by Authenticode, which is hard to do on my LAMP download server. So I put the licence number in the file name. If anyone has a good idea of how to include license number in the .exe file itself without invalidating the authenticode signature I would be most interested to hear it.