home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 October / Chip_2001-10_cd1.bin / zkuste / delphi / nastroje / d23456 / NSIS.EXE / viewhtml.nsi < prev    next >
Text File  |  2001-05-19  |  1KB  |  44 lines

  1. ; viewhtml.nsi
  2. ;
  3. ; This script creates a silent installer which extracts one (or more) HTML
  4. ; files to a temporary directory, opens Internet Explorer to view the file(s),
  5. ; and when Internet Explorer has quit, deletes the file(s).
  6. ;
  7.  
  8. ; The name of the installer (not really used in a silent install)
  9. Name "ViewHTML"
  10.  
  11. ; Set to silent mode
  12. SilentInstall silent
  13.  
  14. ; The file to write
  15. OutFile "viewhtml.exe"
  16.  
  17. ; The installation directory (the user never gets to change this)
  18. InstallDir "$TEMP\ViewHTML"
  19.  
  20. ; The stuff to install
  21. Section ""
  22.   ; Set output path to the installation directory.
  23.   SetOutPath $INSTDIR
  24.   ; Extract file
  25.   File "makensis.htm"
  26.   ; View file
  27.   ExecWait '"$PROGRAMFILES\Internet Explorer\iexplore.exe" "$INSTDIR\makensis.htm"'
  28.   ; Delete the files
  29.   Delete $INSTDIR\Makensis.htm
  30.   RMDir $INSTDIR
  31. SectionEnd
  32.  
  33. ; Note: another way of doing this would be to use ExecShell, but then you 
  34. ; really couldn't get away with deleting the files. Here is the ExecShell
  35. ; line that you would want to use:
  36. ;
  37. ; ExecShell "open" '"$INSTDIR\makensis.htm"'
  38. ;
  39. ; The advantage of this way is that it would use the default browser to
  40. ; open the HTML. 
  41. ;
  42.  
  43. ; eof
  44.