example1.nsi 973 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. ; example2.nsi expands on this by adding a uninstaller and start menu shortcuts.
  9. ;--------------------------------
  10. ; The name of the installer
  11. Name "Example1"
  12. ; The file to write
  13. OutFile "example1.exe"
  14. ; Request application privileges for Windows Vista
  15. RequestExecutionLevel user
  16. ; Build Unicode installer
  17. Unicode True
  18. ; The default installation directory
  19. InstallDir $DESKTOP\Example1
  20. ;--------------------------------
  21. ; Pages
  22. Page directory
  23. Page instfiles
  24. ;--------------------------------
  25. ; The stuff to install
  26. Section "" ;No components page, name is not important
  27. ; Set output path to the installation directory.
  28. SetOutPath $INSTDIR
  29. ; Put file there
  30. File example1.nsi
  31. SectionEnd