cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Pilgrim

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
Highlighted
Flexera beginner

Re: How to link to the installation media

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
Highlighted
Pilgrim

Re: How to link to the installation media

ch_eng,

These files are not in SupportFiles, but in AdvancedFiles, so they wouldn't copy to the "SUPPORTDIR".
0 Kudos
Highlighted
Flexera beginner

Re: How to link to the installation media

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-article...

HTH

0 Kudos
Highlighted
Pilgrim

Re: How to link to the installation media

ch_eng,

Thank you - that what I missed.
0 Kudos