View Full Version : Launching Wordpad
Brian Cassidy
29th March 2001, 00:44
I am using 1.1o to package an APL application.
I have documentation in a Wordpad file and launch that with
Exec '"$SYSDIR\write.exe" "$INSTDIR\readme.doc"'
This works fine on W2KPro but does not work on W98SE.
Any ideas?
justin
29th March 2001, 05:58
For one, don't use 1.1o. It is flawed (and has some pretty scary bugs). Get 1.1z from
http://www.nullsoft.com/free/nsis/
The problem with write not working in win98SE is that on win9x write.exe is in $WINDIR, and in winnt it is in sysdir. There are two ways of dealing with this:
Option 1: check for existence of each:
IfFileExists "$SYSDIR\write.exe" 0 2
Exec '"$SYSDIR\write.exe" "$INSTDIR\Readme.doc"'
Jump 1 ; don't execute twice
Exec '"$WINDIR\write.exe" "$INSTDIR\Readme.doc"'
Option 2: use ExecShell:
ExecShell open '"$INSTDIR\Readme.doc"'
-Justin
vBulletin® v3.8.6, Copyright ©2000-2013, Jelsoft Enterprises Ltd.