A basic question. How to output a project for Windows so that it can be put on a CD and sold?

you must cook & package your content, ayer that you will have a folder with all the files to run your game as a standalone.

use a package software like “install simple” (http://installsimple.com/) to package your game into a installer file, burn the installation into a CD, market and sell it.