This procedure is kind of complicated, but it gets it done with free tools (and a few downloaded add-ons).
Install everything that the Synergy Wiki recommends. I do this in a special VM just for this, because some of these tools are really old and I don't like keeping them installed.
We're doing a 64-bit build, and the Synergy Wiki recommends VS 2005 or 2008, but I will explain how to get this done for free with Visual C++ 2010 Express. Install the following (in order, as recommended here):
Grab a few extras normally included with the full Visual Studio 2010 but not with Express (search for them if you can't find them…)
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\amd64
C:\Program Files (x86)\Common Files\Merge Modules
set PATH=%PATH%;C:\Qt\2010.02\qt\bin;C:\Qt\2010.02\bin;C:\Qt\2010.02\mingw\bin
hm genlist
hm conf -g2
hm build
hm package win