home *** CD-ROM | disk | FTP | other *** search
/ Hackers Magazine 57 / CdHackersMagazineNr57.iso / Software / Programming / nsis-2.46-setup.exe / Examples / example1.nsi < prev    next >
Text File  |  2008-02-03  |  908b  |  41 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 example1.nsi
  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 $DESKTOP\Example1
  18.  
  19. ; Request application privileges for Windows Vista
  20. RequestExecutionLevel user
  21.  
  22. ;--------------------------------
  23.  
  24. ; Pages
  25.  
  26. Page directory
  27. Page instfiles
  28.  
  29. ;--------------------------------
  30.  
  31. ; The stuff to install
  32. Section "" ;No components page, name is not important
  33.  
  34.   ; Set output path to the installation directory.
  35.   SetOutPath $INSTDIR
  36.   
  37.   ; Put file there
  38.   File example1.nsi
  39.   
  40. SectionEnd ; end the section
  41.