Old 29th March 2001, 02:44   #1
Brian Cassidy
Junior Member
Join Date: Mar 2001
Location: Canada
Posts: 1
Send a message via ICQ to Brian Cassidy Send a message via AIM to Brian Cassidy Send a message via Yahoo to Brian Cassidy
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?
Brian Cassidy is offline   Reply With Quote
Old 29th March 2001, 07:58   #2
Moderator Alumni
Join Date: Apr 2000
Location: USA
Posts: 315
For one, don't use 1.1o. It is flawed (and has some pretty scary bugs). Get 1.1z from

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 is offline   Reply With Quote
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump