From 313e238f161eb05fc230a4d0d929839db7587155 Mon Sep 17 00:00:00 2001 From: anders_k Date: Sun, 29 Mar 2020 19:10:02 +0000 Subject: [PATCH] Removed viewhtml.nsi git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@7163 212acab6-be3b-0410-9dea-997c60f758d6 --- Examples/SConscript | 1 - Examples/makensis.nsi | 1 - Examples/viewhtml.nsi | 53 ------------------------------------------- 3 files changed, 55 deletions(-) delete mode 100644 Examples/viewhtml.nsi diff --git a/Examples/SConscript b/Examples/SConscript index 34f35b6a..28d82b24 100644 --- a/Examples/SConscript +++ b/Examples/SConscript @@ -24,7 +24,6 @@ examples = Split(""" TextFuncTest.nsi unicode.nsi VersionInfo.nsi - viewhtml.nsi waplugin.nsi WordFunc.ini WordFunc.nsi diff --git a/Examples/makensis.nsi b/Examples/makensis.nsi index 4dc8297e..c35b443a 100644 --- a/Examples/makensis.nsi +++ b/Examples/makensis.nsi @@ -313,7 +313,6 @@ ${MementoSection} "Script Examples" SecExample File ..\Examples\example2.nsi File ..\Examples\install-per-user.nsi File ..\Examples\install-shared.nsi - File ..\Examples\viewhtml.nsi File ..\Examples\waplugin.nsi File ..\Examples\bigtest.nsi File ..\Examples\primes.nsi diff --git a/Examples/viewhtml.nsi b/Examples/viewhtml.nsi deleted file mode 100644 index a3dc042c..00000000 --- a/Examples/viewhtml.nsi +++ /dev/null @@ -1,53 +0,0 @@ -; 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" - -; Request application privileges for Windows Vista -RequestExecutionLevel user - -;-------------------------------- - -; The stuff to install -Section "" - - ; Get a temporary filename (in the Windows Temp directory) - GetTempFileName $R0 - - ; Extract file - ; Lets skip this one, it's not built to be showin in IE - ; File /oname=$R0 "..\Menu\compiler.html" - ; and write our own! :) - FileOpen $0 $R0 "w" - FileWrite $0 "

HTML page for viewhtml.nsi

" - FileClose $0 - - ; View file - ExecWait '"$PROGRAMFILES\Internet Explorer\iexplore.exe" "$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. - ; - - ; Delete the files (on reboot if file is in use) - Delete /REBOOTOK $R0 - -SectionEnd \ No newline at end of file