Difference between revisions of "Wpkg.js"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
Line 1: Line 1:
 
''wpkg.js'' is the most important file of [http://wpkg.org WPKG] and can be seen as its internal engine.
 
''wpkg.js'' is the most important file of [http://wpkg.org WPKG] and can be seen as its internal engine.
  
It has to be executed with [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cscript_overview.mspx cscript.exe] (a command-line version of the Windows Script Host) or [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_wshtopnode.mspx wscript.exe] (the Windows-based script host) like below:
+
It has to be executed with [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/cscript_overview.mspx cscript.exe] (a command-line version of the Windows Script Host) or [http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_wshtopnode.mspx wscript.exe] (the windows-based script host; not recommended) like below:
  
  

Revision as of 15:29, 29 September 2006

wpkg.js is the most important file of WPKG and can be seen as its internal engine.

It has to be executed with cscript.exe (a command-line version of the Windows Script Host) or wscript.exe (the windows-based script host; not recommended) like below:


cscript \\path\to\wpkg.js [flags]


For example:

cscript \\path\to\wpkg.js /synchronize /quiet

would synchronize all packages (install, uninstall or upgrade packages if there is such a need).


It assumes that hosts.xml, packages.xml and profiles.xml configuration files exist in the same directory as wpkg.js (in our example, it would be \\path\to\).


For a list of WPKG flags, see this page.


Windows Script Host can be downloaded from Microsoft. Windows XP and Windows 2003 have the suitable version 5.6 included by default; the version included with Windows 2000 is too old and so requires you to download a more recent version.


See also

  • wpkg.xml - a client side, WPKG "database" (created automatically).