kozlov_vital
Pilgrim
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- 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
ch_eng
Flexera beginner
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Oct 02, 2017
10:30 AM
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:
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
kozlov_vital
Pilgrim
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Oct 02, 2017
10:40 AM
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".
These files are not in SupportFiles, but in AdvancedFiles, so they wouldn't copy to the "SUPPORTDIR".
ch_eng
Flexera beginner
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Oct 02, 2017
11:53 AM
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
kozlov_vital
Pilgrim
- Mark as New
- Subscribe
- Mute
- Permalink
- Email to a Friend
- Report Inappropriate Content
Oct 03, 2017
04:06 AM
Re: How to link to the installation media
ch_eng,
Thank you - that what I missed.
Thank you - that what I missed.