[wpkg-users] Setting a variable in a profile doesnt over-rides that set in a package
Ronny
ladiko at web.de
Thu Jan 26 18:58:19 CET 2012
Am 20.01.2012 09:35, schrieb ladiko at web.de:
> Hello WPKG users :-)
>
> Regarding to http://wpkg.org/Variable_setting_through_hosts/profiles/packages
> a variable in a profile should override a variable in a package, but
> this doesn't work for me.
>
> I've got PCs with different Windows-Directories, most have C:\Windows,
> but some have C:\WinXP. So as it is not possible to use %WINDIR% for
> the Wpkg-Logfile path in the WPKG-Client-Settings, i have to use
> different settings-xml-files for the two types of clients. I prepared
> the files settings-windows.xml and settings-winxp.xml and in the
> wpkgclient-package i set<variable name="wpkg-windir" value="windows"
> /> and have a variable set in the profile for the computers which need
> C:\WinXP
>
> So i have a profile default which have all the packages and a second
> profile which looks like that:
>
> <profile id="default-winxp">
> <variable name='wpkg-windir' value='winxp' />
> <depends profile-id="default" />
> </profile>
>
> So the only difference is the variable wpkg-windir and the hostfile
> looks like that:
>
> <host name="Computer001" profile-id="default" />
> <host name="Computer002" profile-id="default-winxp" />
>
> And the install command for WPKGClient looks like that:
>
> <install cmd='msiexec /qb- /i
> "%SOFTWARE%\wpkgClient\WPKG_Client_%version%-x32.msi" ALLUSERS=1
> SETTINGSFILE="%SOFTWARE%\wpkgClient\settings-%wpkg-windir%.xml"
> /norestart'>
>
> The problem is, that it always uses wpkg-windir=windows as variable value...
>
> The logfile for a clients says:
>
> 2012-01-20 09:10:35, DEBUG : Reading variables from package 'WPKG Client'.
> 2012-01-20 09:10:35, DEBUG : Got variable 'version' of value '1.3.14'
> 2012-01-20 09:10:35, DEBUG : Got variable 'wpkg-windir' of value 'windows'
> 2012-01-20 09:10:35, DEBUG : Setting variable: 'wpkg-windir=winxp'.
> 2012-01-20 09:10:35, DEBUG : Setting variable: 'version=1.3.14'.
> 2012-01-20 09:10:35, DEBUG : Setting variable: 'wpkg-windir=windows'.
> 2012-01-20 09:10:35, DEBUG : Install type: upgrade
> 2012-01-20 09:10:35, DEBUG : Fetched 1 upgrade command(s).
> 2012-01-20 09:10:35, DEBUG : Executing command: 'msiexec /norestart
> /qb- /i "%SOFTWARE%\wpkgClient\WPKG_Client_%version%-x32.msi"
> ALLUSERS=1 SETTINGSFILE="%SOFTWARE%\wpkgClient\settings-%wpkg-windir%.xml"
> /norestart' ('msiexec /norestart /qb- /i
> "\\Server\wpkg\packages\wpkgClient\WPKG_Client_1.3.14-x32.msi"
> ALLUSERS=1 SETTINGSFILE="\\Server\wpkg\packages\wpkgClient\settings-windows.xml"
> /norestart').
> 2012-01-20 09:10:39, DEBUG : Command in installation of WPKG Client
> returned exit code [0]. Success.
>
> So what to do to make it work?
>
> Thank you in advance and kind regards.
> Ronny
Hello,
does someone else know why the variable isn't overriden by the
profile-assigned variable and it is still using the package-assigned
variable? I don't find the reason.
Regards Ronny
More information about the wpkg-users
mailing list