http://bugzilla.wpkg.org/show_bug.cgi?id=273
Stefan Pendl <pendl2mega...@yahoo.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pendl2mega...@yahoo.de --- Comment #4 from Stefan Pendl <pendl2mega...@yahoo.de> --- (In reply to comment #1) > > cscript.exe \\path\to\wpkg.js /config:config-usermode.xml /host:%USERNAME% > Thats a really dirty hack, since WPKG already supports environment variable matching. Example: <hosts:wpkg xmlns:hosts="http://www.wpkg.org/hosts" xmlns:wpkg="http://www.wpkg.org/wpkg" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/hosts.xsd"> <host hostname="^VM\-.+" profile-id="VirtuelleRechner" os="6\.[1-9]\.\d{4}" /> <host hostname="^VM\-.+" profile-id="VirtuelleRechnerRemoveAll" os="(5\.\d|6\.0)\.\d{4}" environment="VM_WPKG_PROFILE=^1$" /> <host hostname="^VM\-.+" profile-id="VirtuelleRechnerSmallTest" os="(5\.\d|6\.0)\.\d{4}" environment="VM_WPKG_PROFILE=^2$" /> <host hostname="^VM\-.+" profile-id="VirtuelleRechner" os="(5\.\d|6\.0)\.\d{4}" /> </hosts:wpkg> Depending on the value of an environment variable the profile to apply will be selected. So the following is already possible: <host profile-id="AdminUser" environment="USERNAME=^Administrator$" /> -- Stefan -- Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. ------------------------------------------------------------------------- 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