If you are hoisting sail at anchor or on a mooring ball, this is a "piece of cake."
Simply raise the main WITH THE MAINSHEET EASED. Do not harden the mainsheet until you wish to sail. After the anchor is raised or you have cast off either fall back and raise / unfurl the genoa, or harden the mainsheet and start to sail and raise or unfurl the genoa.
At the dock a different story. In the ideal scenario you are either head to wind or the wind is blowing you off the dock. Raise the main while luffing the mainsheet. Harden the main and unfurl / raise the genoa. Sailing off a dock while being blown on is virtually impossible.
I often anchor / pick up balls with the main up. Then lower it with all hands once we are dug in / or attached.
ISPA Yachtmaster Offshore Instructor Evaluator
Sail Canada Advanced Cruising Instructor
IYT Yachtmaster Coastal Instructor
ASA 201, 203, 204, 205, 206, 214
As I sail, I praise God, and care not. (Luke Foxe)