updated format, small changes

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2282 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
joostverburg 2003-03-11 20:44:48 +00:00
parent 39a9897cd8
commit 92acc0dd32
8 changed files with 394 additions and 233 deletions

View file

@ -3,7 +3,8 @@
; 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).
;
;--------------------------------
; The name of the installer (not really used in a silent install)
Name "ViewHTML"
@ -14,26 +15,21 @@ SilentInstall silent
; The file to write
OutFile "viewhtml.exe"
;--------------------------------
; The stuff to install
Section ""
; Set output path to the installation directory.
; Get a temporary filename (in the Windows Temp directory)
GetTempFileName $R0
; Extract file
File /oname=$R0 "..\Docs\Chapter1.html"
; View file
ExecWait '"$PROGRAMFILES\Internet Explorer\iexplore.exe" "$R0"'
; Delete the files
Delete $R0
SectionEnd
; ExecShell "open" '"$R0"'
; Delete the files (on reboot if file is in use)
Delete /REBOOTOK $R0
; Note: another way of doing this would be to use ExecShell, but then you
; really couldn't get away with deleting the files. Here is the ExecShell
; line that you would want to use:
;
; ExecShell "open" '"$R0"'
;
; The advantage of this way is that it would use the default browser to
; open the HTML.
;
; eof
SectionEnd