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 detect if an install was done from a CD or from the Web?
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
May 29, 2008
12:14 PM
How to detect if an install was done from a CD or from the Web?
I have a InstallScript MSI project that I would like to be able detect if the install was done from a CD or the Web. Any ideas how can this be done?
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
May 29, 2008
05:18 PM
you can try the following function:
function IsSrcDirCDROM()
NUMBER nvResult;
STRING svResult;
begin
ParsePath(svResult, SRCDIR, DISK);
GetSystemInfo ( DRIVE, nvResult, svResult );
if (nvResult = IS_CDROM) then
return TRUE;
else
return FALSE;
endif;
end;
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)