Old 24th November 2004, 18:32   #1
jisin
Junior Member
 
Join Date: Nov 2004
Location: West Coast, USA
Posts: 2
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!
jisin is offline   Reply With Quote
Old 24th November 2004, 19:32   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
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
Afrow UK is offline   Reply With Quote
Old 25th November 2004, 23:00   #3
jisin
Junior Member
 
Join Date: Nov 2004
Location: West Coast, USA
Posts: 2
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?
jisin is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump