Difference between revisions of "Wpkg.js"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
m
Line 7: Line 7:
  
 
'''cscript \\path\to\wpkg.js [flags]'''
 
'''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).
  
  

Revision as of 13:02, 12 October 2005

wpkg.js is the most important file of WPKG.

You can call it a "WPKG 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) 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 Host Script can be downloaded from this page - although it should be in your system if you use Windows XP or Windows 2003.

If you have Windows 2000, the version of the Windows Host Script you have is too old and you should download it from the site above.


See also

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