Difference between revisions of "FAQ"
m (→WPKG doesn't work... WPKG doesn't install my application... How can I make sure WPKG works? Please help me...) |
m (→WPKG doesn't work... WPKG doesn't install my application... How can I make sure WPKG works? Please help me...) |
||
| Line 24: | Line 24: | ||
* If WPKG was started with /quiet flag, it will log to Windows Event Log. | * If WPKG was started with /quiet flag, it will log to Windows Event Log. | ||
| − | * If you use [[WPKG Client]], add a /debug flag to | + | * If you use [[WPKG Client]], add a /debug flag to [[WPKG_Client_-_GUI_help|WPKG parameters]] and check "Show GUI" to see the output. You will also want to configure detailed logging in [[config.xml]]. |
== Is there a GUI for WPKG? == | == Is there a GUI for WPKG? == | ||
Revision as of 14:05, 13 December 2007
WPKG FAQ
If you think you have an answer to an important question regarding WPKG, please place it here.
Contents
- 1 WPKG doesn't work... WPKG doesn't install my application... How can I make sure WPKG works? Please help me...
- 2 Is there a GUI for WPKG?
- 3 I modified WPKG a bit and added a feature. Can I contribute it?
- 4 Do you have any examples of how to setup installing/uninstalling of programs using WPKG?
- 5 I'm getting "Unable to load specified XML document from \\server\wpkg\packages.xml" error. But packages.xml is there!
- 6 I'm getting a Scripting host error "Automation server can't create object" and then WPKG exits
- 7 I'm getting an error "Event log file is full", and then WPKG exits
- 8 I'm getting an error 'Input Error: There is no script engine for file extension ".js".', and WPKG won't start
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.
- If you use WPKG Client, add a /debug flag to WPKG parameters and check "Show GUI" to see the output. You will also want to configure detailed logging in config.xml.
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.
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".