Knowledge Base
Distributing your ToolBook application on a network drive or ZIP disk.
|
Article: P2923
|
It is possible to distribute your application by means other than CD-ROM, but you must then keep the book and media on the same drive. You can't have the book on one drive and the media on another unless you write custom code to add the media's directory to the CDMediaPath.
This is because the CDMediaPath of the book, as generated by AutoPackager, uses the token which only includes drive letters corresponding to local CD Drives. Network drives (whether CD or HD), as well as any other drives (ZIP, JAZ, etc.) will not be included in the CDMediaPath by default.
The other possible place where media can be found is in a relative path from the book path. So by keeping the Media in the same directory relative to the book directory as when the book was packaged the media will still be found.
For example if the book is packaged in D:\myApps\proj1 and the media is in D:\myApps\proj1\myMedia (at the time the book is packaged). You could relocate the app to J:\TB6\prj1; and as long as the media was in J:\TB6\prj1\myMedia, it would be found and play just fine.
If you want to add the ability for your media to be left on a Zip drive or network drive. You need to write custom code that adds the drive letter (or media path) of the Zip or network drive to the CDMediaPath.
OPENSCRIPT NOTICE
The OpenScript programming examples found in many articles may need modification in order to work in ToolBook 9.0 or higher, particularly if the article was written for an older version of ToolBook. To learn more, click here. |