PDA

View Full Version : Relative link to external media


x1ejm
06-01-2009, 10:03 AM
Hi - our installer has the main core of its code packaged into a SETUP.EXE file and then it references an "External Media" folder which contains the files used with the various optional packages selected by the user.

However, unless our SETUP.EXE is run from the root level of a drive, the links to the external media fail. From looking at our SF7 script, the runtime folder is set to %SourceDrive%\External Media\[filepaths]. This is obviously the problem - the script is always looking at the top level of the drive for the "External Media" folder.

What should I replace %SourceDrive% with so that SETUP.EXE looks relative to itself to find the "External Media" folder?? Is it as simple as just \External Media\[filepaths]??

x1ejm
06-01-2009, 10:26 AM
Sorry - I've answered my own question. I should be using the "%SourceFolder%" variable. It's done the trick.