> > To work around this issue I've introduced a new switch called > /queryMode which > takes the "remote" attribute: /queryMode:remote > > In "remote" mode WPKG will change its behavior in some special cases: > > - WPKG reads all host attributes from the settings node (wpkg.xml) > - WPKG does not perform checks whether the package is still installed > - it just assumes the package is still installed correctly > when dong the query > on server side. >
Hi Rainer, I have just checked the remote query and it works great except for one thing. It seems that the queryMode does not update the host os attributes. Example command line: cscript.exe -Nologo "\\vboxsrv\Stefan_Win7\Downloads\WPKG\WPKG Server\wpkg.js" /query:ms /settings:"\\vboxsrv\Stefan_Win7\Downloads\WPKG\ClientStatus\vm-winxp.xml" /queryMode:remote Output: Host information attributes from settings database: hostname: vm-winxp architecture: x86 os: microsoft windows xp professional, , sp3, 5.1.2600 ipaddresses: 10.0.2.15 domainname: groups: lcid: 409 lcidOS: 409 Current profile packages: Java Runtime Environment 6 ID: JRE6 Revision (new): 29 Revision (old): 26 Action: Upgrade pending Reboot: false Execute: - Priority: 10 Status: Installed Adobe Reader 9 ID: AdobeReader9 Revision: 9.4.6 Action: Installation pending Reboot: false Execute: - Priority: 10 Status: Not Installed Adobe Reader 10 ID: AdobeReader10 Revision: 10.1.1 Action: Remove pending Reboot: false Execute: - Priority: 10 Status: Installed Citrix online plug-in (Web) ID: CitrixClient Revision: 12.1.0.30 Action: Remove pending Reboot: false Execute: - Priority: 10 Status: Installed Freemake Video Converter ID: FreemakeVideoConverter Revision: 2.4.0 Action: Remove pending Reboot: false Execute: - Priority: 10 Status: Installed Hardcopy ID: Hardcopy Revision: 2011.8.26.0 Action: Remove pending Reboot: false Execute: - Priority: 10 Status: Installed Paint.NET ID: PaintNET Revision: 3.5.10 Action: Remove pending Reboot: false Execute: - Priority: 10 Status: Installed Process Explorer Link ID: ProcExpLink Revision: 2011.07.02 Action: Remove pending Reboot: false Execute: - Priority: 10 Status: Installed Windows Server 2003 Resource Kit Tools ID: ResourceKitTools Revision: 6.0.2600.0 Action: Remove pending Reboot: false Execute: - Priority: 100 Status: Installed The upgrade is correct, but the remove actions apply to the local host, where the query is executed. Host information attributes from local host: hostname: vm-win2k architecture: x86 os: microsoft windows 2000 professional, , sp4, 5.0.2195 ipaddresses: 10.0.2.15 domainname: groups: lcid: c07 lcidOS: 407 If you need the complete configuration, I will send it to you. --- Stefan
wpkg-vm-win2k.log
Description: Binary data
<?xml version="1.0" encoding="UTF-8"?> <profiles xmlns:xsi="http://www.wpkg.org/profiles" xsi:noNamespaceSchemaLocation="../xsd/profiles.xsd" > <profile id="DesktopPC"> <package package-id="AdobeFlashPlayer" /> <package package-id="AdobeReader9" os="5\.0\.\d{4}"/> <package package-id="AdobeReader10" os="(5\.[1-9]|6\.\d)\.\d{4}"/> <package package-id="CamStudio" /> <package package-id="CitrixClient" os="(5\.[1-9]|6\.\d)\.\d{4}"/> <package package-id="Doxygen" os="6\.[1-9]\.\d{4}"/> <package package-id="GNUAspellGerman" /> <package package-id="EnvironmentVariables" /> <package package-id="FirefoxExtensions" /> <package package-id="FontBurmesePadauk"/> <package package-id="FreemakeVideoConverter" os="(5\.[1-9]|6\.\d)\.\d{4}"/> <package package-id="HardLinkShellExt"/> <package package-id="JRE6" /> <package package-id="JRE7"> <condition> <check type="logical" condition="not"> <check type="host" condition="hostname" value="SATELLITE"/> </check> <check type="host" condition="os" value="(5\.[1-9]|6\.\d)\.\d{4}"/> </condition> </package> <package package-id="LuaForWindows"/> <package package-id="NotepadPlusPlusPlugins" /> <package package-id="NSIS" os="6\.[1-9]\.\d{4}"/> <package package-id="PaintNET" os="(5\.[1-9]|6\.\d)\.\d{4}"/> <package package-id="PDFCreator"/> <package package-id="ResourceKitTools" os="5\.[1-9]\.\d{4}"/> <package package-id="SevenZipFileAssoc" /> <package package-id="SysinternalsSuite" /> <package package-id="TortoiseSVN" os="6\.[1-9]\.\d{4}"/> <package package-id="UltraDefragEnable" /> <package package-id="VLCplayer" /> <package package-id="WinMerge" /> <package package-id="WpkgSettings" os="5\.\d\.\d{4}"/> <package package-id="WpkgShortcut" /> </profile> </profiles>
<?xml version="1.0" encoding="UTF-8"?> <profiles xmlns:xsi="http://www.wpkg.org/profiles" xsi:noNamespaceSchemaLocation="../xsd/profiles.xsd" > <profile id="PhysikalischeRechner"> <depends profile-id="DesktopPC"/> <package package-id="ImgBurnBurnPlot"/> <package package-id="TortoiseCVS"/> </profile> </profiles>
<?xml version="1.0" encoding="UTF-8"?> <profiles xmlns:xsi="http://www.wpkg.org/profiles" xsi:noNamespaceSchemaLocation="../xsd/profiles.xsd" > <profile id="VirtuelleRechner"> <depends profile-id="DesktopPC"/> <package package-id="Hardcopy" os="5\.[1-9]\.\d{4}"/> <package package-id="MyDefrag"/> <package package-id="OpenOffice3"/> <package package-id="ProcExpLink" os="(5\.[1-9]|6\.0)\.\d{4}"/> <package package-id="UltraDefragShortcuts"/> <package package-id="VariIcons"/> <package package-id="WpkgTestSuite"/> </profile> </profiles>
------------------------------------------------------------------------- wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/ _______________________________________________ wpkg-users mailing list wpkg-users@lists.wpkg.org http://lists.wpkg.org/mailman/listinfo/wpkg-users