Thanks Tuan,
Tried it and it works like described. Found only a minor issue which I have fixed via editing the order confirmation mail. DMS send already the license key when user has chosed to use offline payment within order confirmation mail as it is part of the order details.
As said I fixed it by editing the oder confirmation mail but you should fix it within the order details as I´m sure it´s not your intention to send out a valid license key as long as it isn´t paid.
However this point opens another potential issue. I think it would be better to activate the license key together with the activation of the download for offline payments. If you already add a license to the order when it isn´t paid but confirmed a potential attack could make usage of that by generating hundreds/thousands of offline orders and this way all your license keys could be compromised. That would be some serious damage as mostlikely the license keys are part of the installer scripts for what they are used.
Another minor issue is that I can´t delete a license key from the backend. It tells me always I have to make a selection from the list...