View Single Post
Old 28th November 2015, 21:53   #46
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,169
Lightbulb Building NSIS with the free VC 2003 Toolkit on a clean Windows XP SP0 install

  • Follow my guide for Win2000
  • Download MASM. (You only need ML.EXE and ML.ERR)
    • If you have a valid Visual Studio license you can grab MASM from the VS6 processor pack. Otherwise you can grab it from the 95, 98 or NT 3.5 DDK or install VS 2005 express and grab MASM from here
  • Download and install wxWidgets: https://github.com/wxWidgets/wxWidge...8.12-Setup.exe
  • Build the wxWidgets NSIS bits:
    • Open a new Platform SDK Windows 2000 build environment console and run:
      PHP Code:
      "%VCToolkitInstallDir%\vcvars32.bat"&REM Make sure it finds 2003 TK
      set PATH
      =%PATH%;C:\Program Files\Microsoft SDK\Bin\Win64&REM Fix 2003Feb SDK

      set WXWIN
      =C:\wxWidgets-2.8.12&REM
      cd 
      "c:\NSIS\trunk\Contrib\NSIS Menu\wx\"
      wxbuild.bat&REM Just answer yes to everything
      pause&exit 
  • We are now ready to build everything. Open a new Platform SDK Windows 2000 build environment console and run:
    PHP Code:
    cd c:\NSIS\trunk
    set PATH
    =%PATH%;C:\Program Files\HTML Help Workshop&REM
    set ZLIB_W32
    =C:\NSIS\dep\zlib&REM
    set WXWIN
    =C:\wxWidgets-2.8.12&REM
    C
    :\Python27\Scripts\scons.bat MSTOOLKIT=yes PATH=c:\MASM VER_MAJOR=3 VER_MINOR=0 dist-installer 

Doing it this way is complicated and is only required if you want to distribute a custom NSIS build, I would recommend just skip building the NSIS menu like I did in my other guide.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote