PDA

View Full Version : Editing or creating a file during install


MC749
06-02-2000, 05:35 PM
On my cd rom based product, a data.db file
must be copied to the target drive during
install that contains stuff like:

F:\MOTIONBANK
F:\ARCHIVES
F:\NEWSTUFF

Where the drive letter (F) might be G if the
end user's cd rom drive is G instead of F.

The file that contains this stuff is named
data.db How do I get the drive letter of the CD from the end user and write that letter to this file and then copy that file
to the target drive during the install?

Support
06-05-2000, 10:06 AM
What product are you asking about? If AutoPlay Menu Studio, it does not allow you to write information out to a file nor does it support installation functions like copying files. You should look at using Setup Factory for that kind of thing.

John Schacher
06-05-2000, 11:38 AM
Both Autoplay and Setup Factory have handy built-in variables that you can use when referring to files on different directory structures.

Try checking out the source directory variables such as %SrcDir% and %SrcDrv%. These variables are intended to isolate Autoplay and Setup Factory from absolute paths at runtime.

For example, on your system %SrcDrv%\MotionBank is the same as f:\MotionBank, but on someone elses system %SrcDrv%\MotionBank would be mapped to their CDROM drive letter, like g:\MotionBank.

In addition, Setup Factory has target directory variables like %AppDir% and %ProgramFiles%.

Hopefully, this helps you in finding a solution.