Difference between revisions of "WPKG"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Making the distinction between initial deployment, and subsequent deployment using WPKG, clearer)
(Adding distinctions between 32-bit and 64-bit installer)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
WPKG Client, available from [http://wpkg.org/Download http://wpkg.org/Download], is used to automatically deploy updates using WPKG on the server. It is available as a MSI package.
+
WPKG Client, available from [http://wpkg.org/Download http://wpkg.org/Download], is used to automatically deploy updates using WPKG on the server. It is available in versions for 32-bit and 64-bit, as a MSI package.
  
 
WPKG Client will need to be installed before it can automatically install software using WPKG.
 
WPKG Client will need to be installed before it can automatically install software using WPKG.
Line 26: Line 26:
  
 
You need Windows Installer 3.1 installed to upgrade WPKG if the service is running (or any other Windows MSI package, where the software runs during the upgrade).
 
You need Windows Installer 3.1 installed to upgrade WPKG if the service is running (or any other Windows MSI package, where the software runs during the upgrade).
 +
 +
This package uses the 32-bit installer. A 64-bit installer is also available.
  
 
<source lang="xml">
 
<source lang="xml">
Line 36: Line 38:
  
 
   <variable name="version" value="1.3.14" />
 
   <variable name="version" value="1.3.14" />
 +
 
   <check type="uninstall" condition="versionequalto" path="WPKG" value="%version%"/>
 
   <check type="uninstall" condition="versionequalto" path="WPKG" value="%version%"/>
  
   <install cmd='msiexec /norestart /qn /i "%SOFTWARE%\WPKG\WPKG Client %version%-x32.msi" ALLUSERS=1 SETTINGSFILE="%SOFTWARE%\WPKG\settings.xml"'>
+
   <install cmd='msiexec /qn /i "%SOFTWARE%\WPKG-Client\WPKG Client %version%-x32.msi" ALLUSERS=1 SETTINGSFILE="%SOFTWARE%\WPKG-Client\settings.xml" /norestart'>
 
     <exit code="3010" reboot="false" />
 
     <exit code="3010" reboot="false" />
 
   </install>
 
   </install>
  
   <upgrade cmd='msiexec /norestart /qn /i "%SOFTWARE%\WPKG\WPKG Client %version%-x32.msi" ALLUSERS=1 SETTINGSFILE="%SOFTWARE%\WPKG\settings.xml"'>
+
   <upgrade cmd='msiexec /norestart /qn /i "%SOFTWARE%\WPKG-Client\WPKG Client %version%-x32.msi" ALLUSERS=1 SETTINGSFILE="%SOFTWARE%\WPKG-Client\settings.xml" /norestart'>
 
     <exit code="3010" reboot="false" />
 
     <exit code="3010" reboot="false" />
 
   </upgrade>
 
   </upgrade>
Line 48: Line 51:
 
</source>
 
</source>
  
= WPKG Client Settings =
+
== WPKG Client Settings ==
 +
 
 +
The WPKG Client installer, above, automatically imports settings during installation. You can also specify the settings in their own package and update them separately to WPKG Client.
  
 
Note - don't use quotations (") after --SETTINGSFILE - it will be interpreted directly, as part of the name.
 
Note - don't use quotations (") after --SETTINGSFILE - it will be interpreted directly, as part of the name.
Line 65: Line 70:
 
         <depends package-id="wpkg"/>
 
         <depends package-id="wpkg"/>
 
   
 
   
         <install cmd='"%PROGRAMFILES%\WPKG\wpkginst.exe" --SETTINGSFILE=%SOFTWARE%\WPKG\settings.xml' />
+
         <install cmd='"%PROGRAMFILES%\WPKG\wpkginst.exe" --SETTINGSFILE=%SOFTWARE%\WPKG-Client\settings.xml' />
 
+
        <upgrade cmd='"%PROGRAMFILES%\WPKG\wpkginst.exe" --SETTINGSFILE=%SOFTWARE%\WPKG\settings.xml' />
+
  
         <remove cmd='echo "nothing"' />
+
         <upgrade cmd='"%PROGRAMFILES%\WPKG\wpkginst.exe" --SETTINGSFILE=%SOFTWARE%\WPKG-Client\settings.xml' />
 
</package>
 
</package>
 
</source>
 
</source>

Latest revision as of 15:02, 26 September 2011

WPKG Client, available from http://wpkg.org/Download, is used to automatically deploy updates using WPKG on the server. It is available in versions for 32-bit and 64-bit, as a MSI package.

WPKG Client will need to be installed before it can automatically install software using WPKG.

Initial WPKG Client deployment

Running the installer directly

It can be installed silently from the command line or in a script like below:

msiexec /norestart /qn /i "%SOFTWARE%\WPKG\WPKG Client 1.3.9-x32.msi" ALLUSERS=1 SETTINGSFILE="%SOFTWARE%\WPKG\settings.xml"

Installation using wpkg.js

If you have wpkg.js configured, and WPKG Client defined in packages.xml and profiles.xml, you can run the following:

cscript \\path\to\wpkg.js /synchronize /quiet

Deploying WPKG Client using WPKG

WPKG Client

You need Windows Installer 3.1 installed to upgrade WPKG if the service is running (or any other Windows MSI package, where the software runs during the upgrade).

This package uses the 32-bit installer. A 64-bit installer is also available.

<package
  id="wpkg_client"
  name="WPKG Client"
  revision="%version%"
  reboot="false"
  priority="10">

  <variable name="version" value="1.3.14" />

  <check type="uninstall" condition="versionequalto" path="WPKG" value="%version%"/>

  <install cmd='msiexec /qn /i "%SOFTWARE%\WPKG-Client\WPKG Client %version%-x32.msi" ALLUSERS=1 SETTINGSFILE="%SOFTWARE%\WPKG-Client\settings.xml" /norestart'>
    <exit code="3010" reboot="false" />
  </install>

  <upgrade cmd='msiexec /norestart /qn /i "%SOFTWARE%\WPKG-Client\WPKG Client %version%-x32.msi" ALLUSERS=1 SETTINGSFILE="%SOFTWARE%\WPKG-Client\settings.xml" /norestart'>
    <exit code="3010" reboot="false" />
  </upgrade>
</package>

WPKG Client Settings

The WPKG Client installer, above, automatically imports settings during installation. You can also specify the settings in their own package and update them separately to WPKG Client.

Note - don't use quotations (") after --SETTINGSFILE - it will be interpreted directly, as part of the name.

--SETTINGSFILE=\\server\some\path to settings\file.xml is fine and will be interpreted correctly.

<package
        id="wpkg-settings"
        name="WPKG Settings"
        revision="5"
        priority="5"
        reboot="false"
        execute="once">

        <depends package-id="wpkg"/>
 
        <install cmd='"%PROGRAMFILES%\WPKG\wpkginst.exe" --SETTINGSFILE=%SOFTWARE%\WPKG-Client\settings.xml' />

        <upgrade cmd='"%PROGRAMFILES%\WPKG\wpkginst.exe" --SETTINGSFILE=%SOFTWARE%\WPKG-Client\settings.xml' />
</package>