From dfb0241f94740cb405336d49638afd3108735569 Mon Sep 17 00:00:00 2001 From: kichik Date: Tue, 29 Apr 2003 13:42:52 +0000 Subject: [PATCH] Shows the HTML file and both possible ways git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2507 212acab6-be3b-0410-9dea-997c60f758d6 --- Examples/viewhtml.nsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Examples/viewhtml.nsi b/Examples/viewhtml.nsi index 0ee41078..34b503a4 100644 --- a/Examples/viewhtml.nsi +++ b/Examples/viewhtml.nsi @@ -27,7 +27,17 @@ Section "" File /oname=$R0 "..\Docs\Chapter1.html" ; 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