This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Determine the directory/path
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 25, 2010
05:05 PM
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!
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
Is there a command to dynamically grab that DVD Drive Letter, or maybe another way to do this?
Thanks!
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Aug 26, 2010
01:58 PM
Try using the SourceDir property (i.e. [SourceDir]DataFile\data.nfo) and see if you can accomplish your requirement.