Hi,
I am writing an installer that needs to copy files from a CD supplied by the user.
1) I have created a custom dialog page to ask the user to select the CD-ROM drive from a combo box.
The result is stored a property "CDROM_LOCATION".
2) I created a target for CDROM_LOCATION and added a series of File Copy/Move operations to copy from CDROM_LOCATION to the APPDIR.
This works, but has two problems...
1) If the CD disc is not in the CDROM drive then the installer completes without error but does not copy the files.
2) Uninstalling does not remove the files that were copied from the CD disc to the APPDIR.
I also noticed that the files copied from the CD disc are marked as read-only. This isn't a problem but may be related.
Questions:
1) What is the best way to test if the right CD is in the CDROM drive?
I would prefer to do this as a UI action I can invoke to validate the users selection when they click Next.
2) How can I get the installer to uninstall the files copied from CD to the APPDIR.
Nick
FOLLOW US
Get the latest news in Application Packaging