home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 March / CMCD0304.ISO / Software / Freeware / Programare / nullsoft / nsis20.exe / Examples / example1.nsi < prev    next >
Text File  |  2003-09-05  |  834b  |  37 lines

  1. ; example1.nsi
  2. ;
  3. ; This script is perhaps one of the simplest NSIs you can make. All of the
  4. ; optional settings are left to their default settings. The installer simply 
  5. ; prompts the user asking them where to install, and drops a copy of makensisw.exe
  6. ; there. 
  7.  
  8. ;--------------------------------
  9.  
  10. ; The name of the installer
  11. Name "Example1"
  12.  
  13. ; The file to write
  14. OutFile "example1.exe"
  15.  
  16. ; The default installation directory
  17. InstallDir $PROGRAMFILES\Example1
  18.  
  19. ;--------------------------------
  20.  
  21. ; Pages
  22.  
  23. Page directory
  24. Page instfiles
  25.  
  26. ;--------------------------------
  27.  
  28. ; The stuff to install
  29. Section "" ;No components page, name is not important
  30.  
  31.   ; Set output path to the installation directory.
  32.   SetOutPath $INSTDIR
  33.   
  34.   ; Put file there
  35.   File ..\makensisw.exe
  36.   
  37. SectionEnd ; end the section