Building NSIS 2.46: Python v2.65 + Scons 1.3.0 + VS2010 Express + Windows SDK v7.1
1. Download Python Windows installer 2.x from:
http://www.python.org/download/ and install it,
for example into:
C:\Dev\Python26
2. Download latest Scons for Windows from:
http://scons.org/download.php and install it.
3. Download NSIS source from:
http://nsis.sourceforge.net/Download
and unpack all NSIS files, for example, into
C:\Dev\NSIS
4. Open file named
ms located at
C:\Dev\NSIS\SCons\Config dir.
Comment the following lines and save file:
90: #stub_env.Append(LINKFLAGS = ['/opt:nowin98'])
108: #makensis_env.Append(LINKFLAGS = ['/opt:nowin98'])
119: #plugin_env.Append(LINKFLAGS = ['/opt:nowin98'])
130: #util_env.Append(LINKFLAGS = ['/opt:nowin98'])
5. Open file named
SConstruct located at
C:\Dev\NSIS dir.
Add after line:
152: opts.Add(BoolVariable('MSTOOLKIT', 'Use Microsoft Visual C++ Toolkit', 'no'))
the following line:
opts.Add(EnumVariable('MSVS_VERSION', 'MS Visual C++ version', os.environ.get('MSVS_VERSION'), allowed_values=('6.0', '7.0', '7.1', '8.0', '8.0Exp', '9.0','9.0Exp', '10.0', '10.0Exp')))
6. Run Visual Studio 2010 command prompt:
Start > All Programs > Microsoft Visual Studio 2010 Express > Visual Studio Command Prompt 2010
Set current directory to NSIS:
cd C:\Dev\NSIS
Run the following command:
scons SKIPUTILS="NSIS Menu" SKIPPLUGINS=all MSVS_VERSION=10.0Exp