Difference between revisions of "WPKG"
From WPKG | Open Source Software Deployment and Distribution
(→Initial WPKG Client deployment: Trying to make it more readable) |
(→Other: Removing this section as it doesn't add anything useful not already on this page) |
||
Line 65: | Line 65: | ||
</package> | </package> | ||
</source> | </source> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[Category:Silent Installers]] | [[Category:Silent Installers]] | ||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Installation]] | [[Category:Installation]] |
Revision as of 14:32, 26 September 2011
Contents
Initial WPKG Client deployment
WPKG Client is available as a MSI package.
Running the installer directly
It can be installed silently from 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
WPKG Client 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).
<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 /norestart /qn /i "%SOFTWARE%\WPKG\WPKG Client %version%-x32.msi" ALLUSERS=1 SETTINGSFILE="%SOFTWARE%\WPKG\settings.xml"'>
<exit code="3010" reboot="false" />
</install>
<upgrade cmd='msiexec /norestart /qn /i "%SOFTWARE%\WPKG\WPKG Client %version%-x32.msi" ALLUSERS=1 SETTINGSFILE="%SOFTWARE%\WPKG\settings.xml"'>
<exit code="3010" reboot="false" />
</upgrade>
</package>
Changing WPKG Client settings
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\settings.xml' />
<upgrade cmd='"%PROGRAMFILES%\WPKG\wpkginst.exe" --SETTINGSFILE=%SOFTWARE%\WPKG\settings.xml' />
<remove cmd='echo "nothing"' />
</package>