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
- :
- How to link to the installation media
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
‎Sep 29, 2017
08:21 AM
How to link to the installation media
I have InstallScript MSI Project. In SupportFiles/Billboards I've added some directories to Advanced Files/Disk1. How can I link to this folders in my InstallScripts? For example I need to make
lstDirs = MakeDirList('My Folder'^sDir);
What must I put instead of 'My Folder'?
lstDirs = MakeDirList('My Folder'^sDir);
What must I put instead of 'My Folder'?
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 02, 2017
10:30 AM
kozlvov_vital,
If these files are in your "Support Files" for the project, you should be able to access them in InstallScript via something like:
HTH
If these files are in your "Support Files" for the project, you should be able to access them in InstallScript via something like:
lstDirs = MakeDirList( SUPPORTDIR ^ sDir );
HTH
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 02, 2017
10:40 AM
ch_eng,
These files are not in SupportFiles, but in AdvancedFiles, so they wouldn't copy to the "SUPPORTDIR".
These files are not in SupportFiles, but in AdvancedFiles, so they wouldn't copy to the "SUPPORTDIR".
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 02, 2017
11:53 AM
kozlov_vital,
Apologies. In that case, it would be something like the following:
NUMBER nLength;
STRING szExePath;
nLength = MAX_PATH + 1;
MsiGetProperty( ISMSI_HANDLE, "SETUPEXEDIR", szExePath, nLength );
lstDirs = MakeDirList( szExePath ^ sDir );
sources:
http://helpnet.installshield.com/installshield21helplib/helplibrary/SETUPEXEDIR.htm
https://web.archive.org/web/20070417154102/http://www.installshield.com/news/newsletter/0206-articles/SetupExeDir.asp
HTH
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 03, 2017
04:06 AM
ch_eng,
Thank you - that what I missed.
Thank you - that what I missed.
![](/skins/images/8CE4FAD0DE6F3A6F9D0567434D2D2DAE/responsive_peak/images/icon_anonymous_message.png)