Changes for page WPKG
Last modified by Sebastian Marsching on 2022/05/29 14:08
From version 2.1
edited by Sebastian Marsching
on 2022/05/29 12:24
on 2022/05/29 12:24
Change comment:
Uploaded new attachment "wpkg.js-extra-status.patch", version {1}
To version 4.1
edited by Sebastian Marsching
on 2022/05/29 12:24
on 2022/05/29 12:24
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
-
Attachments (0 modified, 1 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,0 +1,1 @@ 1 +WPKG - Parent
-
... ... @@ -1,0 +1,1 @@ 1 +Windows.Software_Deployment.WebHome - Content
-
... ... @@ -1,0 +1,35 @@ 1 +{{toc/}} 2 + 3 +# Overview 4 + 5 +[WPKG](http://wpkg.org/) is a free tool that allows to automate software distribution for Windows systems. 6 + 7 +The software is written in JavaScript (actually JScript) and runs inside the Windows Scripting Host. There is a little helper program called [WPKG Client](http://wpkg.org/WPKG_Client) that installs a Windows software that starts the script on system startup. 8 + 9 +* WPKG cannot run when network is not available. In newer versions of WPKG you can specify a script, that will check whether the network is available before running WPKG. Unfortunately, this script cannot run for more than 60 seconds. 10 +* When service is run with the `SYSTEM` account (instead of an administrative account), you have to make sure that WPKG can read the software packages by adding _Domain Computers_ to the security configuration of the share and file-system folder. 11 +* The service can be started by a logon script (when network is available), but users need the right to manage the service: 12 +* See [http://support.microsoft.com/default.aspx?scid=kb;en-us;288129](http://support.microsoft.com/default.aspx?scid=kb;en-us;288129) on how to give them the right or even better [http://support.microsoft.com/kb/256345/](http://support.microsoft.com/kb/256345/) on how to do this using Group Policies. 13 +* When the service is not listed, you have to edit `SYSVOL\<Domain>\Policies\<ID>\Machine\Microsoft\WindowsNT\SecEdit\GptTmpl.inf` manually. 14 +* A login script with just one line can be used: 15 + 16 +# Status UI 17 + 18 +If you want to delay user logon while software is being installed, you might be interested in [wpkg-gp](http://code.google.com/p/wpkg-gp/)). If you do not want to do this (maybe because you are worried about unnecessary delays for roaming users), you still might want to notify users after logon that software installation is in progress. 19 + 20 +I wrote a little [HTML Application](http://en.wikipedia.org/wiki/HTML_Application), that does exactly this: show a small window that notifies the user of the software installation. When the installation is finished, the window closes itself. You can [download](https://sebastian.marsching.com/wiki/Windows/WPKG#download-status-ui) the application and distribute it on your PCs. You just have to make sure that it is started each time a user logs in. An easy way to do this is [http://support.microsoft.com/kb/240791/en-us through group policies](http://support.microsoft.com/kb/240791/en-us through group policies). However, you can also use a registry entry. 21 + 22 +Starting the application directly can cause problems, because (at least sometimes) the 32-bit version of `mshta.exe` will be used on 64-bit systems. If this happens, the application cannot read the registry keys created by WPKG and thus cannot display the status. Therefore, I use a little batch-file for making sure it is always started using the 64-bit version of `mshta.exe`: 23 + 24 +```bat 25 +@start %WINDIR%\System32\mshta.exe %~dp0\wpkg_status_ui.hta %* 26 +``` 27 + 28 +### Patching wpkg.js 29 + 30 +The current version of WPKG (at time of writing version 1.3.0) has a bug that causes the running information not to be published in the registry. Even if this worked, it would only provide information about whether it is running, not what it is doing. Therefore I made a small patch that publishes this information in the registry. This way, the status UI will also show which package is just being installed or removed. You can download the [[patch|attach:wpkg.js-extra-status.patch]] or download the [[patched version|attach:wpkg-extra-status.js]] of `wpkg.js` version 1.3.0. 31 + 32 +### Download 33 + 34 +* [[wpkg_status_ui.hta|attach:wpkg_status_ui.hta]] 35 +* The icon used in this application has been created by [DesignContest](http://www.designcontest.com/) and is licensed under the terms of the [CC Attribution License 3.0](http://creativecommons.org/licenses/by/3.0/). Feel free to replace this icon with another one that you might like better. In fact I use a different icon internally, however I can not distribute this icon with the application due to copyright restrictions.
- wpkg_status_ui.hta
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.SebastianMarsching - Size
-
... ... @@ -1,0 +1,1 @@ 1 +114.0 KB - Content