Update of /cvsroot/popfile/windows
In directory sc8-pr-cvs1:/tmp/cvs-serv17366
Modified Files:
installer.nsi
Log Message:
Use an alternative method to display the release notes if notepad.exe cannot be found.
Index: installer.nsi
===================================================================
RCS file: /cvsroot/popfile/windows/installer.nsi,v
retrieving revision 1.47
retrieving revision 1.48
diff -C2 -d -r1.47 -r1.48
*** installer.nsi 20 May 2003 01:10:54 -0000 1.47
--- installer.nsi 20 May 2003 11:13:42 -0000 1.48
***************
*** 180,192 ****
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "ioB.ini"
- SearchPath $R0 notepad.exe
- StrCmp $R0 "" skip_release_notes
-
File /oname=$PLUGINSDIR\release.txt "..\engine\v0.19.0.change"
MessageBox MB_YESNO "Display POPFile Release Notes ?$\r$\n$\r$\n\
! 'Yes' recommended if you are upgrading." IDNO skip_release_notes
ExecWait 'notepad.exe "$PLUGINSDIR\release.txt"'
! skip_release_notes:
FunctionEnd
--- 180,195 ----
!insertmacro MUI_INSTALLOPTIONS_EXTRACT "ioB.ini"
File /oname=$PLUGINSDIR\release.txt "..\engine\v0.19.0.change"
MessageBox MB_YESNO "Display POPFile Release Notes ?$\r$\n$\r$\n\
! 'Yes' recommended if you are upgrading." IDNO exit
! SearchPath $R0 notepad.exe
! StrCmp $R0 "" use_file_association
ExecWait 'notepad.exe "$PLUGINSDIR\release.txt"'
+ GoTo exit
+
+ use_file_association:
+ ExecShell "open" "$PLUGINSDIR\release.txt"
! exit:
FunctionEnd
|