<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi,<br>
    <br>
    &nbsp;&nbsp;&nbsp; I understand from reading the following article<br>
    <br>
    <a href="http://support.microsoft.com/kb/104011">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
      http://support.microsoft.com/kb/104011</a><br>
    <br>
    &nbsp;&nbsp;&nbsp; that one need to broadcast a WM_SETTINGSCHANGE for environment
    variable updated via the registry key to take effect in the current
    session<br>
    <br>
    &nbsp;&nbsp;&nbsp; I have been able to update the registry and re-login in have the
    effect of updating the environment, using the information from the
    following URL<br>
    <br>
    <a href="http://nsis.sourceforge.net/Docs/Chapter4.html">&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
      http://nsis.sourceforge.net/Docs/Chapter4.html</a><br>
    <br>
    &nbsp;&nbsp;&nbsp; However, I was unable to determine a way from within CPack to do
    a WM_SETTINGSCHANGE broadcast so that the user installing the
    software I am packaging not to have to log-out and log-in for the
    updated environment variable to take effect.<br>
    <br>
    &nbsp;&nbsp;&nbsp; Is there a different approach ?<br>
    <br>
    Regards<br>
    <pre class="moz-signature" cols="72">-- 
Nicholas Yue
Graphics - RenderMan, Visualization, OpenGL, HDF5
Custom Dev - C++ porting, OSX, Linux, Windows
Management - Recruitment, career management
<a class="moz-txt-link-freetext" href="http://www.proceduralinsight.com/">http://www.proceduralinsight.com/</a>
<a class="moz-txt-link-freetext" href="http://au.linkedin.com/in/nicholasyue">http://au.linkedin.com/in/nicholasyue</a>

</pre>
  </body>
</html>