Seadeep:

I have also purchased licenses for out of town guests in advance. As everyone above has stated, you'll need to provide the dealer with his name, address, SSN, physical description, and driver's license no.

When you order the 2-day license, you can specify the dates in which the license is to be active, and so you can purchase a 2-day license days (if not weeks) in advance.