This commit was generated by cvs2svn to compensate for changes in r2,
which included commits to RCS files with non-trunk default branches. git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@625 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
9b3b220a13
commit
3e9e73ec59
177 changed files with 37677 additions and 0 deletions
43
Examples/viewhtml.nsi
Normal file
43
Examples/viewhtml.nsi
Normal file
|
@ -0,0 +1,43 @@
|
|||
; 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).
|
||||
;
|
||||
|
||||
; 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"
|
||||
|
||||
; The installation directory (the user never gets to change this)
|
||||
InstallDir "$TEMP\ViewHTML"
|
||||
|
||||
; The stuff to install
|
||||
Section ""
|
||||
; Set output path to the installation directory.
|
||||
SetOutPath $INSTDIR
|
||||
; Extract file
|
||||
File "..\makensis.htm"
|
||||
; View file
|
||||
ExecWait '"$PROGRAMFILES\Internet Explorer\iexplore.exe" "$INSTDIR\makensis.htm"'
|
||||
; Delete the files
|
||||
Delete $INSTDIR\Makensis.htm
|
||||
RMDir $INSTDIR
|
||||
SectionEnd
|
||||
|
||||
; 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" '"$INSTDIR\makensis.htm"'
|
||||
;
|
||||
; The advantage of this way is that it would use the default browser to
|
||||
; open the HTML.
|
||||
;
|
||||
|
||||
; eof
|
Loading…
Add table
Add a link
Reference in a new issue