Difference between revisions of "WPKG Client"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(add internal link)
m
Line 3: Line 3:
 
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 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 [http://wpkg.org/index.php/Download Download page]
+
WPKG Client is available from the [[Download|download page]].
  
  

Revision as of 13:46, 6 April 2011

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.

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.