[wpkg-users] [Bug 273] Per user install support

bugzilla-daemon at bugzilla.wpkg.org bugzilla-daemon at bugzilla.wpkg.org
Wed May 16 21:29:25 CEST 2012


http://bugzilla.wpkg.org/show_bug.cgi?id=273

Stefan Pendl <pendl2megabit at yahoo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pendl2megabit at yahoo.de

--- Comment #4 from Stefan Pendl <pendl2megabit at 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.



More information about the wpkg-users mailing list