Difference between revisions of "FAQ"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (I installed an application with WPKG. Then, I uninstalled that appliation manually, using Control Panel (Software Add/Remove). WPKG doesn't reinstall those applications, why?)
m (I installed an application with WPKG. Then, I uninstalled that appliation manually, using Control Panel (Software Add/Remove). WPKG doesn't reinstall those applications, why?)
Line 29: Line 29:
 
== I installed an application with WPKG. Then, I uninstalled that appliation manually, using Control Panel (Software Add/Remove). WPKG doesn't reinstall those applications, why? ==
 
== I installed an application with WPKG. Then, I uninstalled that appliation manually, using Control Panel (Software Add/Remove). WPKG doesn't reinstall those applications, why? ==
  
WPKG, or, [[wpkg.js]] to be more precise, keeps its own copy of installed applications (normally, you will find it in <code>C:\Windows\system32\wpkg.xml</code>). Before wpkg.js attempts to install, upgrade or remove anything, it consults this [[wpkg.xml]] file to see if any given program or file is not installed already.
+
WPKG, or, [[wpkg.js]] to be more precise, keeps its own "database" of installed applications. In a default setup, you will find it in <code>C:\Windows\system32\wpkg.xml</code>.
 +
 
 +
Before wpkg.js attempts to install, upgrade or remove anything, it consults this [[wpkg.xml]] file to see if any given program or file is not installed already.
  
 
Please read [[wpkg.xml]] for a more thorough description of why such a local database is needed.
 
Please read [[wpkg.xml]] for a more thorough description of why such a local database is needed.

Revision as of 10:19, 7 January 2008

WPKG FAQ

If you think you have an answer to an important question regarding WPKG, please place it here.



WPKG doesn't work... WPKG doesn't install my application... How can I make sure WPKG works? Please help me...

The first step to make sure if WPKG works properly is to start it from command line manually with "/debug" flag:

C:\>cscript \\server\wpkg\wpkg.js /synchronize /debug

This will display in detail what WPKG does.


Other things worth checking:

  •  %SystemDirectory%\wpkg.xml (typically, C:\Windows\system32\wpkg.xml)
This file contains a "database" of apps installed with WPKG (and scripts executed, etc.).


  • If WPKG was started with /quiet flag, it will log to Windows Event Log.


I installed an application with WPKG. Then, I uninstalled that appliation manually, using Control Panel (Software Add/Remove). WPKG doesn't reinstall those applications, why?

WPKG, or, wpkg.js to be more precise, keeps its own "database" of installed applications. In a default setup, you will find it in C:\Windows\system32\wpkg.xml.

Before wpkg.js attempts to install, upgrade or remove anything, it consults this wpkg.xml file to see if any given program or file is not installed already.

Please read wpkg.xml for a more thorough description of why such a local database is needed.


To skip checking the wpkg.xml, use a /force flag with wpkg.js.

Is there a GUI for WPKG?

Yes. If you think about a management tool, then check WPKG Web Interface for details.

If you want a tool which lets you deploy WPKG on clients, check WPKG_Client site.


I modified WPKG a bit and added a feature. Can I contribute it?

Sure! Don't hesitate to inform us - if you want to contribute to development of WPKG, join the mailing list and let us know!


Do you have any examples of how to setup installing/uninstalling of programs using WPKG?

There are basic examples in the WPKG package if you download it.

You will find working examples in the Silent Installers category (you may need to modify paths to match your setup of course).


I'm getting "Unable to load specified XML document from \\server\wpkg\packages.xml" error. But packages.xml is there!

If you already checked that this file is really there, check this file for errors / typos. A common error could be missing quotation-marks ( " ), or if they are in a wrong place, or if there are two of them in a place only one is needed, or...

Try running WPKG with a /debug flag:

cscript \\server\wpkg\wpkg.js /synchronize /debug

And it will tell you where you made an error/typo.


I'm getting a Scripting host error "Automation server can't create object" and then WPKG exits

One cause for this is missing the MSXML2.domdocument.3.0 object. This will occur on a fresh install of Windows 2000 with IE5. Installing IE6 is the easiest solution - it will install the required component automatically.


I'm getting an error "Event log file is full", and then WPKG exits

When you run WPKG as Administrator, it gives you an error, and doesn't run:

C:\>cscript \\server\wpkg\wpkg.js /synchronize /quiet /nonotify
\\server\wpkg\wpkg.js(2276, 5) (null): Event log file is full.

Users of German version of Windows will get "Die Ereignisprotokolldatei ist voll". Users of French version of Windows will get "Le journal d'�v�nements est plein".

As the error say, your Event log is full. Either clean it, or don't log what WPKG does to the Event Log.

WPKG logs to the Event Log when /quiet flag is used. So, don't use this flag, and start WPKG like below:

cscript \\server\wpkg\wpkg.js /synchronize /nonotify >nul

It is generally a good idea to start most of the <install cmd commands in a quiet way (there are sometimes quiet switches), or redirect their output to >nul. Examples of such commands are copy, xcopy, robocopy, del etc.

The problem can be avoided by changing the default settings for Windows logging, which are too small. Open the Event Viewer, select the Application Log, and choose Properties from the Action menu. You can increase the maximum log size and change the setting to overwrite events, so the log file will not get filled. You can probably set up a silent install package to make these changes on all your workstations by editing registry keys. See HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Eventlog\logfile.

I'm getting an error 'Input Error: There is no script engine for file extension ".js".', and WPKG won't start

If you have an HTML editor that has associated Javascript Source files (.JS) to it, then the CSCRIPT or WSCRIPT engine won't know which engine to use for the .js file. So, issue the following command from the command prompt to get it to work

C:\>ASSOC .JS=JSFile

Important: Make sure you have the capitalization correct... or else it could yell at you... especially the ".JS=JSFile".


Silent installs and the %SOFTWARE% Environment variable

Many of the silent installs are listed with %SOFTWARE% as a placeholder for the location of the installation files. If your installation files are for licensed software then there is probably something in the license that says you have to control access to the install files. If you set the %software% environment variable globally then any command prompt will reveal the location of these files. You can prevent this by setting the variable in the wpkg-start.bat batch file so that it only affects that "session". It also keeps all the environment variable settings for WPKG as part of the WPKG script and ensures the variable is set before the script runs.