How do I copy files from a CD-ROM in [Files] using Flags: external?

2.6k views Asked by At

I'm writing a new installer for an old cd-rom game that has a 16-bit installer, the installer will need to be on the hard disk and be able to copy files from the original disc. I already have a script set up that can install the game if all the game files are packed in the installer, this is fine for personal use but I want to be able to redistribute the installer so others can use it.

I want to have a separate selection box for the CD-ROM source drive like this script: http://www.vincenzo.net/isxkb/index.php?title=Ask_for_a_drive_to_install but instead of it being the destination, I want it to be the source and also be able to select the destination directory. All the files I need are currently listed in the [Files] section, I would like to set them as Flags: external but I have no idea how to copy them from the CD-ROM instead of the inno setup's setup.exe folder.

1

There are 1 answers

2
stukelly On

You can the {src} constant, which gives you the directory the Setup is located.

{src}

The directory in which the Setup files are located.

For example: If you used {src}\MYPROG.EXE on an entry and the user is installing from "S:\", Setup will translate it to "S:\MYPROG.EXE".

Example:

Files: Source: "{src}\readme.txt"; DestDir: "{app}"; Flags: external