<br><br><div class="gmail_quote">2012/8/28 Brett Delle Grazie <span dir="ltr"><<a href="mailto:brett.dellegrazie@gmail.com" target="_blank">brett.dellegrazie@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Hopefully a quick/easy question:<br>
<br>
Is there any way to set a variable to the contents of a registry key?<br>
<br>
something like:<br>
<br>
<variable name="some_var" value="registry:HKLM\Software\Microsoft\..." /><br>
etc.<br>
<br>
We have a requirement to locate the profile of a particular user and<br>
this is most easily located via the registry as it may vary client<br>
side.<br>
<br>
Thanks,<br>
<br>
Kind regards,<br>
<br>
Brett<br>
-------------------------------------------------------------------------<br>
wpkg-users mailing list archives >> <a href="http://lists.wpkg.org/pipermail/wpkg-users/" target="_blank">http://lists.wpkg.org/pipermail/wpkg-users/</a><br>
_______________________________________________<br>
wpkg-users mailing list<br>
<a href="mailto:wpkg-users@lists.wpkg.org" target="_blank">wpkg-users@lists.wpkg.org</a><br>
<a href="http://lists.wpkg.org/mailman/listinfo/wpkg-users" target="_blank">http://lists.wpkg.org/mailman/listinfo/wpkg-users</a><br>
<br>
</blockquote></div><br>No, there is not. But to get the users profile path, why not use %USERPROFILE%??<br><br>I personally would like the variable definition thing to be extended in some way. Getting the content of any registry key would be great and getting the STDOUT output of an external command or reading it from a file would be fantastic!<br>
<br>I also have another suggestion for the handling of environment variables: Recently I got into a situation where I update a system-wide environment variable in one package and need to reference to its new value in a second package.<br>
To be a bit more precise: I have a package "OracleInstantClient" which sets the environment variable ORACLE_HOME using setx.exe utility with parameter "-m" (system-wide). This works great. Now I have a second package which depends on OracleInstantClient. In this second package I need to read the new value of ORACLE_HOME which was set during installation of OracleInstantClient, but referecing to %ORACLE_HOME% here does not work. So it would be great if WPKG could re-create the whole environment variables from scratch on every new package. Maybe reading from HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment would do...<br>
However, this could also be achieved by assigning a variable the content of a registry key ;o)<br><br>Regards<br>