Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

SupportDir


1 reply to this topic

ashokpp

ashokpp
  • Members
  • 5 posts

Posted 28 November 2005 - 13:12

hi,

how to open a file (to read) before installation by using SUPPORTDIR.
i use the following code but it fails,

OpenFileMode ( FILE_MODE_NORMAL );
nResult = OpenFile ( filehandle , SUPPORTDIR , <FileName> );

nresult returns < 0

Please reply ASAP.

thanks in Advance.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 30 November 2005 - 09:44

Step through your script using the debugger. Lok at the value of SUPPORTDIR before the OpenFile call. Look in that directory to see if the file is really there (and the filename is correct).