PDA

View Full Version : How i can detect the condition ' I start from CD-ROM with 'Compressed executable'?



Steeve
02-23-2004, 08:08 AM
Hi,

I publish with 'Compressed executable'
When i run my program , i want to detect if the autorun start from CD-ROM or from hard drive.
When i start from CD-ROM, an installation process start. When i start from H-D, the program run if the installation is correctly install. The program is the same in this two cases

I want to detect with the _SourceDrive variable, but the content is alway the temp directory for a an ''Compressed executable'
file

How i can detect the condition ' I start from CD-ROM with 'Compressed executable'?

Steeve

CWRIGHT
02-23-2004, 09:35 AM
Have a look at Brett's reply in this thread:

http://www.indigorose.com/forums/showthread.php?s=&threadid=6369

You could then use the Drive.GetType action on the parsed drive letter to see if it is a CD-ROM drive or not.

Steeve
02-23-2004, 07:05 PM
THANKS

Very good information!

Have a nice day:)