<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Talk%3ASetting_Environment_Variables_to_Active_Installer_Process</id>
	<title>Talk:Setting Environment Variables to Active Installer Process - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://nsis.sourceforge.io/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Talk%3ASetting_Environment_Variables_to_Active_Installer_Process"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Talk:Setting_Environment_Variables_to_Active_Installer_Process&amp;action=history"/>
	<updated>2026-04-23T23:45:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.17</generator>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Talk:Setting_Environment_Variables_to_Active_Installer_Process&amp;diff=10797&amp;oldid=prev</id>
		<title>Kichik at 16:02, 6 July 2006</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Talk:Setting_Environment_Variables_to_Active_Installer_Process&amp;diff=10797&amp;oldid=prev"/>
		<updated>2006-07-06T16:02:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;â† Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:02, 6 July 2006&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l57&quot;&gt;Line 57:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 57:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Tips for compilation with Mingw&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Tips for compilation with Mingw&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;g++ -Wall main.cpp -L/path/to/user32.lib -luser32 -o main.exe&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;g++ -Wall main.cpp -L/path/to/user32.lib -luser32 -o main.exe&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:That&#039;s what [[Setting Environment Variables]] does. The script in this page is meant to set the environment variables only for the current process. --[[User:Kichik|kichik]] 09:02, 6 July 2006 (PDT)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-10775:rev-10797 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kichik</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Talk:Setting_Environment_Variables_to_Active_Installer_Process&amp;diff=10775&amp;oldid=prev</id>
		<title>81.50.98.20 at 21:32, 2 July 2006</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Talk:Setting_Environment_Variables_to_Active_Installer_Process&amp;diff=10775&amp;oldid=prev"/>
		<updated>2006-07-02T21:32:20Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;â† Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:32, 2 July 2006&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l54&quot;&gt;Line 54:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 54:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;I found help from this page (http://castelain.developpez.com/articles/VariablesEnvironnement), and the links that are given to the MSDN related functions.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;I found help from this page (http://castelain.developpez.com/articles/VariablesEnvironnement), and the links that are given to the MSDN related functions.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Tips for compilation with Mingw&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;g++ -Wall main.cpp -L/path/to/user32.lib -luser32 -o main.exe&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-10774:rev-10775 --&gt;
&lt;/table&gt;</summary>
		<author><name>81.50.98.20</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=Talk:Setting_Environment_Variables_to_Active_Installer_Process&amp;diff=10774&amp;oldid=prev</id>
		<title>81.50.98.20: Apply changes to the registry with an external program</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Talk:Setting_Environment_Variables_to_Active_Installer_Process&amp;diff=10774&amp;oldid=prev"/>
		<updated>2006-07-02T21:30:01Z</updated>

		<summary type="html">&lt;p&gt;Apply changes to the registry with an external program&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
There is another way to apply changes in the registry :&lt;br /&gt;
1/ write keys and values like before, eg : WriteRegStr HKCU &amp;quot;Environment&amp;quot; &amp;quot;NAME&amp;quot; &amp;quot;VALUE&amp;quot;&lt;br /&gt;
2/ call a simple exe program to apply the changes :&lt;br /&gt;
Source code :&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-c&amp;gt;&lt;br /&gt;
#include &amp;lt;windows.h&amp;gt;&lt;br /&gt;
#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
int main( int argc, char** argv)&lt;br /&gt;
{&lt;br /&gt;
/*&lt;br /&gt;
    LRESULT SendMessageTimeout(&lt;br /&gt;
        HWND hWnd,&lt;br /&gt;
        UINT Msg,&lt;br /&gt;
        WPARAM wParam,&lt;br /&gt;
        LPARAM lParam,&lt;br /&gt;
        UINT fuFlags,&lt;br /&gt;
        UINT uTimeout,&lt;br /&gt;
        PDWORD_PTR lpdwResult&lt;br /&gt;
    );&lt;br /&gt;
*/&lt;br /&gt;
    DWORD lpdwResult;&lt;br /&gt;
    char* param;&lt;br /&gt;
    param = &amp;quot;Environment&amp;quot;;&lt;br /&gt;
    int result = SendMessageTimeout(&lt;br /&gt;
        // window handle =&amp;gt; all top-level windows&lt;br /&gt;
        HWND_BROADCAST,&lt;br /&gt;
        // message =&amp;gt; environment changed&lt;br /&gt;
        WM_SETTINGCHANGE,&lt;br /&gt;
        // wParam : additional message-specific information&lt;br /&gt;
        // When an application sends this message, this parameter must be NULL.&lt;br /&gt;
        (WPARAM)NULL,&lt;br /&gt;
        // lParam : additional message-specific information&lt;br /&gt;
        // lParam is a pointer to a string that indicates the area containing the system parameter that was changed&lt;br /&gt;
        (LPARAM)param,&lt;br /&gt;
        // how to send the message&lt;br /&gt;
        // The calling thread is not prevented from processing other requests while waiting for the function to return.&lt;br /&gt;
        SMTO_NORMAL,&lt;br /&gt;
        // uTimeout : time-out period in milliseconds&lt;br /&gt;
        // duration = uTimeout * number_of_windows (in case broadcast message)&lt;br /&gt;
        500,&lt;br /&gt;
        // Receives the result of the message processing&lt;br /&gt;
        &amp;amp;lpdwResult&lt;br /&gt;
    );&lt;br /&gt;
    fprintf(stdout, &amp;quot;SendMessageTimeout returned : %d =&amp;gt; %s\n&amp;quot;, result, (result != 0) ? &amp;quot;SUCCESS&amp;quot; : &amp;quot;FAILED&amp;quot;);&lt;br /&gt;
    // inverse return code ...&lt;br /&gt;
    return (result != 0) ? 0 : -1; &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/highlight-c&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I found help from this page (http://castelain.developpez.com/articles/VariablesEnvironnement), and the links that are given to the MSDN related functions.&lt;/div&gt;</summary>
		<author><name>81.50.98.20</name></author>
	</entry>
</feed>