[wpkg-users] Behaviour of chained packages

Dafydd Jones (techneg.it) dafydd at techneg.it
Tue Mar 25 18:33:53 CET 2014


Hi list,

I make regular use of chained dependencies in my packages, and have started
to see something strange. Using /install commands the main package and
dependencies install correctly, but when I /synchronize the packages fail
to install due to the chained packages being installed before the main
package. See the snipped example below.

Is there something I'm missing about chained dependencies?

Cheers,
Dafydd

Wpkg version is 1.3.1-RC15. Only the main package (nsclient) is included in
profiles. This is not the only package affected.

<package id="nsclient"
            name="NSClient++ Status Monitor"
            revision="%PKG_VERSION%T2"
            reboot="false"
            priority="10">

        <chain package-id="nsclient-config"/>
        <chain package-id="nsclient-plugins"/>
...

 <package id="nsclient-config"
            name="NSClient++ Configuration"
            revision="15"
            reboot="false"
            priority="10">
...

Correct installation:

PS C:\WINDOWS\system32> wpkg /install:nsclient|Write-Output
Package 'NSClient++ Status Monitor' (nsclient): Not installed (checks
failed). Preparing installation.
Installing 'NSClient++ Status Monitor' (nsclient)...
User notification suppressed. Message: Automatic software deployment is
currently updating your system. Please save all
 your documents as the the system might reboot without further notice.
Thank you.
Installing references (chained) of 'NSClient++ Status Monitor' (nsclient).
Package 'NSClient++ Configuration' (nsclient-config): Not installed (checks
failed). Preparing installation.
Installing 'NSClient++ Configuration' (nsclient-config)...
Package 'NSClient++ Configuration' (nsclient-config): Package and all
chained packages installed successfully.
Processing (install) of NSClient++ Configuration successful.
Package 'NSClient++ Plugins' (nsclient-plugins): Not installed (checks
failed). Preparing installation.
Installing 'NSClient++ Plugins' (nsclient-plugins)...
Package 'NSClient++ Plugins' (nsclient-plugins): Package and all chained
packages installed successfully.
Processing (install) of NSClient++ Plugins successful.
Package 'NSClient++ Status Monitor' (nsclient): Package and all chained
packages installed successfully.
Processing (install) of NSClient++ Status Monitor successful.

Failed installation:

PS C:\WINDOWS\system32> wpkg /synchronize /profile:default|Write-Output
...
Package 'NSClient++ Configuration' (nsclient-config): Not installed (checks
failed). Preparing installation.
Installing 'NSClient++ Configuration' (nsclient-config)...
Could not process (install) package 'NSClient++ Configuration'
(nsclient-config):
Exit code returned non-successful value (1) on command 'powershell
-NonInteractive -Command "Restart-Service -Name %PKG
_SERVICENAME%"'.
Package 'NSClient++ Plugins' (nsclient-plugins): Not installed (checks
failed). Preparing installation.
Installing 'NSClient++ Plugins' (nsclient-plugins)...
Could not process (install) package 'NSClient++ Plugins' (nsclient-plugins):
Exit code returned non-successful value (1) on command '%ComSpec% /c copy
/V /Y /B %WPKG_CONF%\%PKG_SHORTNAME%\%PKG_FILE1% "%PKG_DESTINATION%"
>"%TMP%\%PKG_SHORTNAME%-plugins.log"'.
Package 'NSClient++ Status Monitor' (nsclient): Not installed (checks
failed). Preparing installation.
Installing 'NSClient++ Status Monitor' (nsclient)...
Could not process (install) package 'NSClient++ Status Monitor' (nsclient):
Exit code returned non-successful value (1603) on command 'MsiExec.exe
/passive /norestart /log "%TMP%\%PKG_SHORTNAME%.
log" /i %WPKG_REPO%\%PKG_SHORTNAME%\%PKG_SHORTNAME%-%PKG_VERSION%.msi
%PKG_INSTALL_SWITCH%'.
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20140325/406970be/attachment-0002.html>


More information about the wpkg-users mailing list