Re: Deploying with no Setup
Just compile with static linkages to the CRT (and MFC if applicable).
Go to Project->Properties and drill down to:
Configuration Properties -> C/C++ -> Code Generation -> Runtime Library
and select "Multi-threaded (/MT)"
If you're using MFC:
Configuration Properties -> General -> Use of MFC
and select "Use MFC in a Static Library"
You're exe will be considerably bigger, but it should run on any platform from Win2K (possibly even Win98 depending on the features) and later without any extras--just run the EXE in-place.
Re: Deploying with no Setup
What will work also depends what you do in your program.
Note that access to the registry under HKEY_LOCAL_MACHINE requires admin privileges.
With Windows Vista and UAC, you can't even assume an obvious directory like Program Files will be accessible for writing.
The best thing you can expect is if your program can be run directtly from a (write protected) floppy disk or CD/DVD. Any kind of storage you use could be protected. But even this isn't foolproof. With UAC, you can set up your pc to ONLY allow execution of known exe's, or exe's that come from a trusted source.
Re: Deploying with no Setup
@OReubens
@hoxsiew
Thanks for those very useful answers. I'll check back in to let you know how it went. :)