cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Dean_H
Level 7

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?
Labels (1)
0 Kudos
(1) Reply
WayneLum
Level 2

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;
0 Kudos