Difference between revisions of "WPKG Client"
(added to Silent Installers Category) |
|||
Line 133: | Line 133: | ||
Look in Windows' Event Viewer for explanations of what might have gone wrong, and reports of parts going right. | Look in Windows' Event Viewer for explanations of what might have gone wrong, and reports of parts going right. | ||
+ | = See Also = | ||
+ | [[WPKG-GP]] - Another WPKG client built for Windows Vista | ||
[[category:Documentation]] | [[category:Documentation]] | ||
[[Category:Installation]] | [[Category:Installation]] | ||
[[category:Silent Installers]] | [[category:Silent Installers]] |
Revision as of 21:42, 5 October 2011
Contents
WPKG Client
WPKG Client is the client side of WPKG. It provides a service which automatically runs WPKG each time a machine is turned on and a graphical interface for configuring how it will run.
WPKG Client is available from the download page.
Silent installation
WPKG Client comes as a MSI package and you can install it silently like below:
msiexec /qn /i WPKGSetup.msi SETTINGSFILE=f:\wpkg\images\setup\settings.xml
To silently update the settings of an already installed WPKG Client, use:
%PROGRAMFILES%\WPKG\wpkginst.exe --SETTINGSFILE=f:\wpkg\images\setup\settings.xml
settings.xml file can be exported from GUI - see WPKG Client - GUI help.
Silently upgrade and change settings
WPKG Client cannot install itself, but you can use it for upgrade or change settings. See the silent installer for details.
Installation via Group Policy
A particularly easy way to install the WPKG on a large number of workstations is through Group Policies. Group policies do not allow passing arguments on a command line, but instead through MSI Transform files.
Software installed via the Group Policies is automatically installed by Windows the next time you reboot the workstation. Group Policies let you determine exactly which computers the policy applies to, and therefore which computers WPKG will be installed on.
Creating a Transform
You will need to download the Orca tool from Microsoft. This is a free tool described here http://support.microsoft.com/default.aspx/kb/255905.
After you install it, right-click on the WPKGSetup.msi file and select "Edit in ORCA". Do not use "Install"!
Then select the Transform | New Transform menu item.
Select the table called "Properties" from the lefthand pane. In the Properties window (righthand pane), right-click and select "Add Row".
- Set the Property field to: SETTINGSFILE
- Set the Value field to: f:\wpkg\images\setup\settings.xml
(obviously, the path to your settings.xml may differ from the example above!)
Now click on the Transform | Generate Transform... menu item and save the Transform with the extension .MST.
Installing via Group Policy
Open the Group Policy Management Console and find or create a suitable Group Policy. Then Edit this Group Policy.
You install software in the Computer Configuration | Software Settings section. Right-click and select add package. Select the WPKGSetup.msi file. Next, you will be asked how you want to deploy this; the options are Assigned or Advanced. WARNING: You MUST select "Advanced" - "Assigned" will not allow you to add a Transform. Once the package is added, you cannot add the transform later!
You add the transform in the Modifications tab.
In some cases, you may have to reboot the workstation up to three times before the WPKG service is actually running. The first reboot loads the new Group Policy (you can instead do this from the command line with the command "gpupdate /force /boot" ). The second reboot will actually install the WPKG MSI. The third reboot will start the service.
Group Policy WPKG mix
One other possibility is to use Group Policy to kick off wpkg.js so it can install WPKG-Client for you. using this method also allows you to upgrade and change WPKG Client parameters in the future using WPKG itself.
First create a WPKG-Client package like this:
<package
id="gplwpkgclient"
name="WPKG Client 1.3.9"
revision="2011.04.20.00"
reboot="false"
priority="99999">
<!-- because the client hasn't been installed yet we cannot use the SOFTWARE parameter for paths -->
<variable name="PKG_PATH" value="\\myserver\myshare\software\Components\gpl.wpkg.client.1.3.9" />
<check type="uninstall" condition="exists" path="WPKG" />
<check type="file" condition="versionequalto" path="%PROGRAMFILES%\wpkg\wpkginst.exe" value="1.0.0.18" />
<install cmd='msiexec /i "%PKG_PATH%\WPKG Client 1.3.9-x32.msi" /qn SETTINGSFILE="%PKG_PATH%\settings.xml"' />
<upgrade cmd='msiexec /i "%PKG_PATH%\WPKG Client 1.3.9-x32.msi" /qn SETTINGSFILE="%PKG_PATH%\settings.xml"' />
<remove cmd='MsiExec /x{08DF8731-5B69-4709-979A-CC08E49D7686} /qn' />
</package>
Then in Active Directory, create a new Group Policy object with the following setting:
- Computer Configuration → Windows Settings → Scripts(startup/shutdown) → Startup
- Script: \\myserver\myshare\wpkg.js
- Parameters: /install:gplwpkgclient /quiet
Job done!
Advanced installation
If for some reason you can't use MSI, you can install WPKG Client manually:
- You need the files - the easiest way is to install WPKG Client on one machine, and copy contents of
%PROGRAMFILES%\wpkg\
to another machine
- Start cmd.exe and run:
prompt> cd %PROGRAMFILES%\wpkg prompt> WPKGsrv.exe /install WPKG Service installed.
If it throws an error, there is something fishy - most likely missing libraries (dll). You can check what libraries are missing with Dependency Walker. Other useful flags to WPKGsrv.exe are /debug and /remove.
- Configure settings:
prompt> wpkginst
Put notepad as "execute before", and check "Show GUI".
- Start the service - it should start notepad.exe:
prompt> net start "WPKG service"
It should start without errors, and notepad.exe should start shortly.
If it works, configure the setting properly (users, paths etc.).
Configuration
Use the 'WPKG Client' (wpkginst.exe) located in %PROGRAMFILES%\wpkg\ to configure such aspects as the user to log into the server as, the user to run on the local machine, whether to run silently or not, et cetera.
See WPKG Client - GUI help for more info.
Troubleshooting
When testing and troubleshooting, you can start WPKG Client manually from within Windows' Services management section, by using the Start and Stop button for the 'WPKG Service', rather than by restarting the machine.
Look in Windows' Event Viewer for explanations of what might have gone wrong, and reports of parts going right.
See Also
WPKG-GP - Another WPKG client built for Windows Vista