[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wpkg-users
Subject:    Re: [wpkg-users] Set variable according to Registry entry
From:       Stefan Pendl <stefan.pendl.71 () gmail ! com>
Date:       2017-12-20 22:21:44
Message-ID: 07192c46-aab0-1191-1cb8-b7c84fbf9555 () gmail ! com
[Download RAW message or body]

Am 20.12.2017 um 15:42 schrieb wpkg@retepsamoht.de:
> 
> <check  type="registry"  condition="equals"  \
> path="|HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session  \
> Manager\Environment|\USERLANG"  value="en"     <variable name="PKG_LANG" \
> value="en"/>
  </check>
> 

The problem is that the check is a sub-node of the variable node. In 
addition there is a simpler way to check the value of an environment 
variable. I also think that the pipe characters are incorrectly used.

I would check it this way:
<!-- code starts (watch for line wraps) -->
<variable name="PKG_LANG" value="en">
     <condition>
         <check type="host" condition="environment" value="USERLANG=^en$" />
     </condition>
</variable>
<!-- code ends -->

See the change log for further descriptions and the extended host 
matching wiki page.


-- 
*Stefan P.*

Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
---------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users@lists.wpkg.org
https://lists.wpkg.org/mailman/listinfo/wpkg-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic