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

Finding file/folder that program run from


2 replies to this topic

Pellepop

Pellepop
  • Members
  • 1 posts

Posted 02 April 2004 - 14:54

Hi

What is the easiest way to read a value from a file that is in the same folder as the install.exe file? It can be a folder or CD.
The problem is that I must read a specially value from a file that is located on the CD (same folder as the install file). Sometimes the CD is copied to a network and its run from there.
In Wise Installer I could use %INST% (the same folder that it’s run from) but in Windows Installer its run from a temp folder under Windows.

Thanks

Pelle


luke_s

luke_s
  • Full Members
  • 532 posts

Posted 05 April 2004 - 05:18

Try grabbing the SourceDir property, this by default contains the directory that the installation packaged resides in.

luke_s

luke_s
  • Full Members
  • 532 posts

Posted 05 April 2004 - 05:18

Also, another way to find properties like this is to run the install with verbose logging, and have a scan through the property table dump at the end of the log file.