2002-08-02 10:01:35 +00:00
|
|
|
; viewhtml.nsi
|
|
|
|
;
|
|
|
|
; This script creates a silent installer which extracts one (or more) HTML
|
|
|
|
; files to a temporary directory, opens Internet Explorer to view the file(s),
|
|
|
|
; and when Internet Explorer has quit, deletes the file(s).
|
2003-03-11 20:44:48 +00:00
|
|
|
|
|
|
|
;--------------------------------
|
2002-08-02 10:01:35 +00:00
|
|
|
|
|
|
|
; The name of the installer (not really used in a silent install)
|
|
|
|
Name "ViewHTML"
|
|
|
|
|
|
|
|
; Set to silent mode
|
|
|
|
SilentInstall silent
|
|
|
|
|
|
|
|
; The file to write
|
|
|
|
OutFile "viewhtml.exe"
|
|
|
|
|
2003-03-11 20:44:48 +00:00
|
|
|
;--------------------------------
|
|
|
|
|
2002-08-02 10:01:35 +00:00
|
|
|
; The stuff to install
|
|
|
|
Section ""
|
2003-03-11 20:44:48 +00:00
|
|
|
|
|
|
|
; Get a temporary filename (in the Windows Temp directory)
|
2002-11-15 13:34:59 +00:00
|
|
|
GetTempFileName $R0
|
2003-03-11 20:44:48 +00:00
|
|
|
|
2002-08-02 10:01:35 +00:00
|
|
|
; Extract file
|
2002-11-15 13:34:59 +00:00
|
|
|
File /oname=$R0 "..\Docs\Chapter1.html"
|
2003-03-11 20:44:48 +00:00
|
|
|
|
2002-08-02 10:01:35 +00:00
|
|
|
; View file
|
2003-03-11 20:44:48 +00:00
|
|
|
; ExecShell "open" '"$R0"'
|
|
|
|
|
|
|
|
; Delete the files (on reboot if file is in use)
|
|
|
|
Delete /REBOOTOK $R0
|
2002-08-02 10:01:35 +00:00
|
|
|
|
2003-03-11 20:44:48 +00:00
|
|
|
SectionEnd
|