I would like my installer to check for a product CD before allowing the user to continue with the installation.
I have the following code used in On Start:
The problem is that I have 2 CD drives. With the above code and the product CD in one drive, the absence of a product CD (or any CD in the above example) in the second CD drive causes the message box to display.Code:tblDrives = Drive.Enumerate(); if(tblDrives)then for i, strDrive in tblDrives do nType = Drive.GetType(strDrive); if(nType == 5)then tblResults = File.Find(strDrive,"*.*", true, false, nil); if tblResults then Altcd = 1; else Altcd = 2; end if Altcd == 2 then result = Dialog.Message("Notice", "The specified file does not exist.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1); end end end end
Is there a way to work around this? Any suggestions would be appreciated.

