Package Files: Difference between revisions

From wiki.jriver.com
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
An MJP file is just a simple script file which is used to simplify Media Jukebox plug-in installation. Actions part of MJP file can be somewhat confusing and intimidating for a beginner but continue reading and you will see that there is nothing to be afraid of.
An MJP file is just a simple script file which is used to install plug-ins to Media Center (and Media Jukebox).
There are two versions of package files, version 1 has package files resembling Windows INI files, and version 2 package
files are based on XML.

[[Version 2 Package Files]] Needs to be documented

Version 1 package files look like Windows INI files with two sections: [Package] and [Action]. The [Package] section
contains entries for Name, Action, Version, and URL. The [Action] section contains entries for files, and actions to
be done on those files. For example:
:File1=CoolFile.exe
:File1Action1=RUN
The filename can be *.*. Multiple files are specified by using File1, File2 etc. Multiple actions are specified
by numbering the actions: File1Action1, File1Action2 etc.

Actions:
* COPY_INSTALLDIR - copy files to installation directory
* COPY_PLUGINDIR - copy files to plug-ins directory
* COPY_HELPDIR - copy files to help directory
* COPY_VISUALIZATIONS - copy files to visualization scripts directory with plug-in name appended.
* COPY_TRACKINFOS - copy files to track infos directory with plug-in name appended.
* COPY_VISSTUDIO - copy files to Vis Studio directory
* COPY_SYSDIR - copy files to system directory
* COPY_WINDIR - copy files to windows directory
* REGISTER - registers specified COM or ActiveX file.
* RUN - executes specified file
* RUN DONTWAIT - executes specified file but does not wait until file file exits. Useful when running ReadMe files.
* REG_PLUGIN - register Media Jukebox or Winamp plug-in

Revision as of 17:56, 11 January 2007

An MJP file is just a simple script file which is used to install plug-ins to Media Center (and Media Jukebox). There are two versions of package files, version 1 has package files resembling Windows INI files, and version 2 package files are based on XML.

Version 2 Package Files Needs to be documented

Version 1 package files look like Windows INI files with two sections: [Package] and [Action]. The [Package] section contains entries for Name, Action, Version, and URL. The [Action] section contains entries for files, and actions to be done on those files. For example:

File1=CoolFile.exe
File1Action1=RUN

The filename can be *.*. Multiple files are specified by using File1, File2 etc. Multiple actions are specified by numbering the actions: File1Action1, File1Action2 etc.

Actions:

  • COPY_INSTALLDIR - copy files to installation directory
  • COPY_PLUGINDIR - copy files to plug-ins directory
  • COPY_HELPDIR - copy files to help directory
  • COPY_VISUALIZATIONS - copy files to visualization scripts directory with plug-in name appended.
  • COPY_TRACKINFOS - copy files to track infos directory with plug-in name appended.
  • COPY_VISSTUDIO - copy files to Vis Studio directory
  • COPY_SYSDIR - copy files to system directory
  • COPY_WINDIR - copy files to windows directory
  • REGISTER - registers specified COM or ActiveX file.
  • RUN - executes specified file
  • RUN DONTWAIT - executes specified file but does not wait until file file exits. Useful when running ReadMe files.
  • REG_PLUGIN - register Media Jukebox or Winamp plug-in