jisin
24th November 2004 19:32 UTC
Copy a CD to the hard drive?
During the installation, I would like to copy a CD to the hard drive (or select the location where the CD is copied already.) The screen should allow you to locate the the cd and if required, make a new folder to place the files into (or just select where to put it all.) Also, the installer should save where that folder is, since it will be used later in the installation. Thank you for all your help!
Afrow UK
24th November 2004 20:32 UTC
I think the best way would be to create an InstallOptions dialogue with a DirRequest control. You could have a drop-down list on there also for the user to select his CD drive (you might need to use the System plugin to get a list of drives and then add them to the drop-down using WriteINIStr)
You'd have to use CopyFiles to copy files and CreateDirectory to create directories (quite obviously).
E.g.
IfFileExists "$NewFolder\*.*" +2
CreateDirectory "$NewFolder"
CopyFiles /r "$CDDrive" "$NewFolder"
-Stu
jisin
26th November 2004 00:00 UTC
Wow, I'm such a noob at this. I am use to C programming, can't figure any of this out. I've read the entire manual, went through the forum and reviewed all the examples. And I still have no idea what I'm doing. Is there a step by step tutorial somewhere out there?