27th November 2015, 12:34
|
#32
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,504
|
Building NSIS with the free VC 2003 Toolkit on a clean Windows 2000 install
- Download and install Python: https://www.python.org/ftp/python/2....thon-2.7.6.msi (On older systems you need Windows Installer 2.0 Redistributable: http://www.microsoft.com/en-us/downl....aspx?id=11176 -> http://www.microsoft.com/en-us/downl...5695C5A2143=1#)
- Download and install SCons: http://sourceforge.net/projects/scon...2.exe/download -> http://netcologne.dl.sourceforge.net....2.0.win32.exe
- Download and install HTML help workshop: http://download.microsoft.com/downlo...4/htmlhelp.exe (This is optional, it will generate HTML documentation instead of CHM if you don't do this)
- Download and install VC 2003 Toolkit: Google:"VCToolkitSetup.exe" (v13.10.3052, 32952488 bytes or v13.10.3077, 32948392 bytes)
- Download Platform SDK February 2003 (5.2.3790.0):
PHP Code:
FOR /L %A IN (1,1,13) DO wget http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.%A.cab
wget http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/PSDK-FULL.bat
wget http://download.microsoft.com/download/platformsdk/sdk/update/win98mexp/en-us/3790.0/FULL/extract.exe
REM (Download manually if you don't have wget)
- Run PSDK-FULL.bat and then run the extracted setup and install the Core SDK and Internet Development SDK
- Download the Zlib library: http://nsis.sourceforge.net/Zlib (Zlib-1.2.7-win32-x86.zip)
- Download the NSIS source code, I used trunk
r6644 r6646
- We are now ready to build, run "Set Windows 2000 Build Environment (Retail).lnk":
PHP Code:
REM VC2003TK linker sometimes dies with "fatal error LNK1158: cannot run 'cvtres.exe'" because SCons fails to put it in %path% so I'm fixing that with:
copy "%windir%\Microsoft.NET\Framework\v1.1.4322\cvtres*" "%VCToolkitInstallDir%\Bin\"
cd C:\NSIS\trunk
set PATH=%PATH%;C:\Program Files\HTML Help Workshop&REM
set ZLIB_W32=C:\NSIS\dep\zlib&REM
C:\Python27\Scripts\scons.bat MSTOOLKIT=yes VER_MAJOR=3 VER_MINOR=0 SKIPUTILS="NSIS Menu" SKIPPLUGINS=System PREFIX="c:\NSIS\NSIS" install
If you want to build the system plugin you also need MASM. If you want to build the NSIS menu you need to download wxwidgets. I'm building everything here.
IntOp $PostCount $PostCount + 1
|
|
|