cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
patrickmce
Level 2

Determine the directory/path

Can installshield determine the directory/path where an application is loaded FROM and create a shortcut back to a file or files in the Installed From directory.



For example – Say I run a setup.exe from a CD/DVD drive and this setup installs an application to my C drive --- However, this program needs to open data which resides on the DVD and needs a shortcut back to that data.



Since we can’t assume that the DVD will have been loaded from a D, E, F drive, etc. – is there a way to grab that information at runtime and add it to the file path.



So – the program will have been loaded to --- C:\Program Files\MyProgram

but the Shortcut would be to :\DataFile\data.nfo



Is there a command to dynamically grab that DVD Drive Letter, or maybe another way to do this?



Thanks!
Labels (1)
0 Kudos
(1) Reply
hidenori
Level 17

Try using the SourceDir property (i.e. [SourceDir]DataFile\data.nfo) and see if you can accomplish your requirement.
0 Kudos