cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kozlov_vital
Level 3

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'?
Labels (1)
0 Kudos
(4) Replies
ch_eng
Level 7

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:

lstDirs = MakeDirList( SUPPORTDIR ^ sDir );


HTH
0 Kudos
kozlov_vital
Level 3

ch_eng,

These files are not in SupportFiles, but in AdvancedFiles, so they wouldn't copy to the "SUPPORTDIR".
0 Kudos
ch_eng
Level 7

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

0 Kudos
kozlov_vital
Level 3

ch_eng,

Thank you - that what I missed.
0 Kudos