PDA

View Full Version : Checking that .exe is run from a CD?


markczajka
10-29-2004, 02:02 PM
Is it possible to verify that a setup.exe is being run from a CD? The only way that I see you can check for this is by searching just the CD-ROM drives using the Search for Files option, but what if someone copies the contents of the CD onto their system, but leaves the disc in the drive. And runs the .exe from their network? I'm trying to prevent someone from running our setup from anywhere but the CD, because in our application, it does nothing but install and Acrobat security plug-in, verify their system for a few things and open some files from the CD.

Worm
10-29-2004, 02:51 PM
Unzip and import these actions into you projects StartUp scripts. The actions will make sure the setup is being run from a CD-ROM using.

markczajka
10-29-2004, 03:13 PM
thanks! Does this work for most/all versions of Windows?

Worm
10-29-2004, 03:17 PM
NT3.1 or later
Win95 or later
http://www.mentalis.org/apilist/GetDriveType.shtml