This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Copy files from installation DVD to Hard disk
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 28, 2009
01:10 PM
Copy files from installation DVD to Hard disk
How to make installation program which copy files from directory in DVD to hard disk directory which choose the user?
The DVD includes setup program and a folder with many large files which want to copy on hard disk.
Thanks
The DVD includes setup program and a folder with many large files which want to copy on hard disk.
Thanks
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 29, 2009
01:44 AM
Any idea ?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 29, 2009
12:11 PM
Make use of SRCDISK variable which is set to the drive where your setup is in.
So if you are running setup from a DVD which is say H: on the machine, SRCDISK is set to H:
Then store the path specified by user in some variable and use it for destination.
Your code would look something like this
where szPath is the path specified by the user.
So if you are running setup from a DVD which is say H: on the machine, SRCDISK is set to H:
Then store the path specified by user in some variable and use it for destination.
Your code would look something like this
XCopyFile(SRCDISK ^ "Path of the Folder on DVD" ^ "*.*",szPath,INCLUDE_SUBDIR | COMP_UPDATE_DATE);
where szPath is the path specified by the user.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 29, 2009
03:16 PM
Apoorv Jain wrote:
Make use of SRCDISK variable which is set to the drive where your setup is in.
So if you are running setup from a DVD which is say H: on the machine, SRCDISK is set to H:
Then store the path specified by user in some variable and use it for destination.
Your code would look something like thisXCopyFile(SRCDISK ^ "Path of the Folder on DVD" ^ "*.*",szPath,INCLUDE_SUBDIR | COMP_UPDATE_DATE);
where szPath is the path specified by the user.
I dont know which letter was the DVD from every user because some machines has different drive letter DVD. Any idea?
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jan 30, 2009
12:45 PM
You don't have to worry about that.
SRCDISK is automatically set to the drive letter.
SRCDISK is automatically set to the drive letter.
![](/skins/images/3B39CE851FDD5528C393F146EB70A2D0/responsive_peak/images/icon_anonymous_message.png)