<?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%2F%24INSTDIR</id>
	<title>Reference/$INSTDIR - 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%2F%24INSTDIR"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Reference/$INSTDIR&amp;action=history"/>
	<updated>2026-06-07T04:09:37Z</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/$INSTDIR&amp;diff=24923&amp;oldid=prev</id>
		<title>Bugmenot: create page from http://nsis.sourceforge.net/Docs/Chapter4.html with wiki links</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=Reference/$INSTDIR&amp;diff=24923&amp;oldid=prev"/>
		<updated>2017-05-12T10:40:01Z</updated>

		<summary type="html">&lt;p&gt;create page from http://nsis.sourceforge.net/Docs/Chapter4.html with wiki links&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;;$INSTDIR&lt;br /&gt;
:The installation directory (&amp;lt;code&amp;gt;$INSTDIR&amp;lt;/code&amp;gt; is modifiable using [[Reference/StrCpy|StrCpy]], [[Reference/ReadRegStr|ReadRegStr]], [[Reference/ReadINIStr|ReadINIStr]], etc. - This could be used, for example, in the [[Reference/.onInit|.onInit function]] to do a more advanced detection of install location).&lt;br /&gt;
:&lt;br /&gt;
:Note that in uninstaller code, &amp;lt;code&amp;gt;$INSTDIR&amp;lt;/code&amp;gt; contains the directory where the uninstaller lies. It does not necessarily contain the same value it contained in the installer. For example, if you write the uninstaller to [[Reference/$WINDIR|$WINDIR]] and the user doesn&amp;#039;t move it, &amp;lt;code&amp;gt;$INSTDIR&amp;lt;/code&amp;gt; will be &amp;lt;code&amp;gt;$WINDIR&amp;lt;/code&amp;gt; in the uninstaller. If you write the uninstaller to another location, you should keep the installer&amp;#039;s &amp;lt;code&amp;gt;$INSTDIR&amp;lt;/code&amp;gt; in the registry or an alternative storing facility and read it in the uninstaller.&lt;/div&gt;</summary>
		<author><name>Bugmenot</name></author>
	</entry>
</feed>