<?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=Reference%2FExecWait</id>
	<title>Reference/ExecWait - 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=Reference%2FExecWait"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Reference/ExecWait&amp;action=history"/>
	<updated>2026-04-21T18:28:36Z</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=Reference/ExecWait&amp;diff=21281&amp;oldid=prev</id>
		<title>Jan: Created page with &quot;=ExecWait=   command [user_var(exit code)]  Execute the specified program and wait for the executed process to quit. See Exec for more information. If no outpu...&quot;</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Reference/ExecWait&amp;diff=21281&amp;oldid=prev"/>
		<updated>2011-11-25T16:41:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=ExecWait=   command [user_var(exit code)]  Execute the specified program and wait for the executed process to quit. See &lt;a href=&quot;/Reference/Exec&quot; title=&quot;Reference/Exec&quot;&gt;Exec&lt;/a&gt; for more information. If no outpu...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=ExecWait=&lt;br /&gt;
&lt;br /&gt;
 command [user_var(exit code)]&lt;br /&gt;
&lt;br /&gt;
Execute the specified program and wait for the executed process to quit. See [[Reference/Exec|Exec]] for more information. If no output variable is specified ExecWait sets the error flag if the program executed returns a nonzero error code, or if there is an error. If an output variable is specified, ExecWait sets the variable with the exit code (and only sets the error flag if an error occurs; if an error occurs the contents of the user variable are undefined). Note, if the command could have spaces, you should put it in quotes to delimit it from parameters. e.g.: ExecWait &amp;#039;&amp;quot;$INSTDIR\command.exe&amp;quot; parameters&amp;#039;. If you don&amp;#039;t put it in quotes it will not work on Windows 9x with or without parameters.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;ExecWait &amp;#039;&amp;quot;$INSTDIR\someprogram.exe&amp;quot;&amp;#039;&lt;br /&gt;
ExecWait &amp;#039;&amp;quot;$INSTDIR\someprogram.exe&amp;quot;&amp;#039; $0&lt;br /&gt;
DetailPrint &amp;quot;some program returned $0&amp;quot;&amp;lt;/highlight-nsis&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jan</name></author>
	</entry>
</feed>