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

problem with run from source.


2 replies to this topic

saeed_a

saeed_a
  • Members
  • 3 posts

Posted 17 June 2004 - 23:57

I have a problem with favor source :
say I have a file a.exe which reads b.txt from same folder.
Now if I make two components

a : a.exe : favor source

b : b.txt : favor local

a.exe is installed at source and is able to read b.txt .

Now if I do like:-

a : a.exe : favor source

b : b.txt : favor source

then a.exe is unable to read b.txt , though both are installed at source.


any clarification???



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 18 June 2004 - 09:15

I guess that a.exe is not actually written to load b.txt from the same directory as a.exe but from the curent working directory.

comecme

comecme
  • Members
  • 30 posts

Posted 23 June 2004 - 12:12

Maybe a.exe reads from the registry where to find b.txt? If there is a registry-entry pointing to [INSTALLDIR]b.txt then it will allways point to the local folder. In order to point to the place where b.txt actually is, it should point to [#b.txt] (where b.txt is the file id).
Dick Nagtegaal