<?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=MoveFileFolder</id>
	<title>MoveFileFolder - 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=MoveFileFolder"/>
	<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;action=history"/>
	<updated>2026-07-29T15:11:15Z</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=MoveFileFolder&amp;diff=21563&amp;oldid=prev</id>
		<title>98.249.218.171: /* Moving/renaming an individual file */</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=21563&amp;oldid=prev"/>
		<updated>2011-12-31T08:09:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Moving/renaming an individual file&lt;/span&gt;&lt;/span&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 08:09, 31 December 2011&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-l33&quot;&gt;Line 33:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 33:&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;&amp;lt;highlight-nsis&amp;gt;!insertmacro MoveFile &amp;quot;$INSTDIR\[path\]source-file&amp;quot; &amp;quot;$INSTDIR\[path\]destination-file&amp;quot;&amp;lt;/highlight-nsis&amp;gt;&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;&amp;lt;highlight-nsis&amp;gt;!insertmacro MoveFile &amp;quot;$INSTDIR\[path\]source-file&amp;quot; &amp;quot;$INSTDIR\[path\]destination-file&amp;quot;&amp;lt;/highlight-nsis&amp;gt;&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;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; 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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;This allows you to move and/or rename an individual file. If a file already exists at the destination it will only be overwritten if newer than the existing one (if not then this one will just be deleted)! Please note that wildcards are NOT supported, you can only &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;moved&lt;/del&gt;/rename a single specific file!&lt;/div&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;This allows you to move and/or rename an individual file. If a file already exists at the destination it will only be overwritten if newer than the existing one (if not then this one will just be deleted)! Please note that wildcards are NOT supported, you can only &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;move&lt;/ins&gt;/rename a single specific file!&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;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;In the following example a file is both moved to a different folder AND renamed:&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;In the following example a file is both moved to a different folder AND renamed:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-21511:rev-21563 --&gt;
&lt;/table&gt;</summary>
		<author><name>98.249.218.171</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=21511&amp;oldid=prev</id>
		<title>206.181.246.35: /* Moving/renaming a folder */</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=21511&amp;oldid=prev"/>
		<updated>2011-12-07T17:14:50Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Moving/renaming a folder&lt;/span&gt;&lt;/span&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 17:14, 7 December 2011&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-l59&quot;&gt;Line 59:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 59:&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;1. There is no way to exclude things (besides the file mask). Anything moved that you didn&amp;#039;t want to move you will have to move back!&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;1. There is no way to exclude things (besides the file mask). Anything moved that you didn&amp;#039;t want to move you will have to move back!&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;&amp;lt;br /&amp;gt;2. If all files/sub-folders are moved and the source folder is left empty it will be automatically deleted!&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;&amp;lt;br /&amp;gt;2. If all files/sub-folders are moved and the source folder is left empty it will be automatically deleted!&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;br /&amp;gt;3. You will &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;loose &lt;/del&gt;all empty folders in both the source and destination folders during the move. This is a limitation of the code behind it. You will have to re-create them if you want them!&lt;/div&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;&amp;lt;br /&amp;gt;3. You will &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;lose &lt;/ins&gt;all empty folders in both the source and destination folders during the move. This is a limitation of the code behind it. You will have to re-create them if you want them!&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;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;== The code ==&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;== The code ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-12739:rev-21511 --&gt;
&lt;/table&gt;</summary>
		<author><name>206.181.246.35</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=12739&amp;oldid=prev</id>
		<title>Kichik at 18:55, 13 July 2007</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=12739&amp;oldid=prev"/>
		<updated>2007-07-13T18:55:44Z</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 18:55, 13 July 2007&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-l321&quot;&gt;Line 321:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 321:&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;	FunctionEnd&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;	FunctionEnd&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;&amp;lt;/highlight-nsis&amp;gt;&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;&amp;lt;/highlight-nsis&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:File&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/Folder &lt;/del&gt;Functions]]&lt;/div&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;[[Category:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Disk, Path &amp;amp; &lt;/ins&gt;File Functions]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-12735:rev-12739 --&gt;
&lt;/table&gt;</summary>
		<author><name>Kichik</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=12735&amp;oldid=prev</id>
		<title>172.202.193.153: /* The code */</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=12735&amp;oldid=prev"/>
		<updated>2007-07-13T15:33:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;The code&lt;/span&gt;&lt;/span&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 15:33, 13 July 2007&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-l321&quot;&gt;Line 321:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 321:&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;	FunctionEnd&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;	FunctionEnd&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;&amp;lt;/highlight-nsis&amp;gt;&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;&amp;lt;/highlight-nsis&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:File/Folder &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Commands&lt;/del&gt;]]&lt;/div&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;[[Category:File/Folder &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Functions&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-12733:rev-12735 --&gt;
&lt;/table&gt;</summary>
		<author><name>172.202.193.153</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=12733&amp;oldid=prev</id>
		<title>172.202.193.153: /* The code */</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=12733&amp;oldid=prev"/>
		<updated>2007-07-13T15:29:56Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;The code&lt;/span&gt;&lt;/span&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 15:29, 13 July 2007&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-l321&quot;&gt;Line 321:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 321:&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;	FunctionEnd&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;	FunctionEnd&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;&amp;lt;/highlight-nsis&amp;gt;&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;&amp;lt;/highlight-nsis&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:File/Folder &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;move/rename commands with overwrite control&lt;/del&gt;]]&lt;/div&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;[[Category:File/Folder &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Commands&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-12732:rev-12733 --&gt;
&lt;/table&gt;</summary>
		<author><name>172.202.193.153</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=12732&amp;oldid=prev</id>
		<title>172.202.193.153: /* The code */</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=12732&amp;oldid=prev"/>
		<updated>2007-07-13T15:28:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;The code&lt;/span&gt;&lt;/span&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 15:28, 13 July 2007&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-l321&quot;&gt;Line 321:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 321:&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;	FunctionEnd&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;	FunctionEnd&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;&amp;lt;/highlight-nsis&amp;gt;&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;&amp;lt;/highlight-nsis&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Functions &amp;amp; Macros&lt;/del&gt;:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Move files&lt;/del&gt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;folders &lt;/del&gt;with overwrite control]]&lt;/div&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;Category&lt;/ins&gt;:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;File&lt;/ins&gt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Folder move/rename commands &lt;/ins&gt;with overwrite control]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-12731:rev-12732 --&gt;
&lt;/table&gt;</summary>
		<author><name>172.202.193.153</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=12731&amp;oldid=prev</id>
		<title>172.202.193.153: /* The code */</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=12731&amp;oldid=prev"/>
		<updated>2007-07-13T15:22:48Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;The code&lt;/span&gt;&lt;/span&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 15:22, 13 July 2007&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-l321&quot;&gt;Line 321:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 321:&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;	FunctionEnd&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;	FunctionEnd&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;&amp;lt;/highlight-nsis&amp;gt;&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;&amp;lt;/highlight-nsis&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Category:Category:&lt;/del&gt;Functions &amp;amp; Macros]]&lt;/div&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;[[Functions &amp;amp; Macros&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:Move files/folders with overwrite control&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-12730:rev-12731 --&gt;
&lt;/table&gt;</summary>
		<author><name>172.202.193.153</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=12730&amp;oldid=prev</id>
		<title>172.202.193.153: /* The code */</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=12730&amp;oldid=prev"/>
		<updated>2007-07-13T15:20:24Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;The code&lt;/span&gt;&lt;/span&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 15:20, 13 July 2007&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-l321&quot;&gt;Line 321:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 321:&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;	FunctionEnd&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;	FunctionEnd&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;&amp;lt;/highlight-nsis&amp;gt;&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;&amp;lt;/highlight-nsis&amp;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;[[Category:Category:Functions &amp;amp; Macros]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key n22049_wiki-wiki_:diff::1.12:old-12700:rev-12730 --&gt;
&lt;/table&gt;</summary>
		<author><name>172.202.193.153</name></author>
	</entry>
	<entry>
		<id>https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=12700&amp;oldid=prev</id>
		<title>172.159.222.58 at 23:42, 9 July 2007</title>
		<link rel="alternate" type="text/html" href="https://nsis.sourceforge.io/mediawiki/index.php?title=MoveFileFolder&amp;diff=12700&amp;oldid=prev"/>
		<updated>2007-07-09T23:42:55Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Info ==&lt;br /&gt;
&lt;br /&gt;
Name: MoveFileFolder&lt;br /&gt;
&amp;lt;br /&amp;gt;Version: 1.0.0&lt;br /&gt;
&amp;lt;br /&amp;gt;Date: June 2007&lt;br /&gt;
&amp;lt;br /&amp;gt;Author: theblazingangel@aol.com&lt;br /&gt;
&amp;lt;br /&amp;gt;Forum thread: [http://forums.winamp.com/showthread.php?s=&amp;amp;threadid=273156 http://forums.winamp.com/showthread.php?s=&amp;amp;threadid=273156]&lt;br /&gt;
&lt;br /&gt;
== Description ==&lt;br /&gt;
&lt;br /&gt;
Allows file/folder renaming/moving with file overwrite control.&lt;br /&gt;
&amp;lt;br /&amp;gt;Any existing files will only be overwritten if they will be overwritten by a newer (last modified date) file.&lt;br /&gt;
&lt;br /&gt;
== General usage notes ==&lt;br /&gt;
&lt;br /&gt;
you will need to use the following near the start of your script:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
!include &amp;#039;FileFunc.nsh&amp;#039;&lt;br /&gt;
!insertmacro Locate&lt;br /&gt;
&lt;br /&gt;
Var /GLOBAL switch_overwrite&lt;br /&gt;
StrCpy $switch_overwrite 0&lt;br /&gt;
!include &amp;#039;MoveFileFolder.nsh&amp;#039;&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$switch_overwrite is used to control overwriting of existing files.&lt;br /&gt;
&amp;lt;br /&amp;gt;Setting to 0 (default) means only overwrite files if overwriting with a newer copy (last modified date check).&lt;br /&gt;
&amp;lt;br /&amp;gt;Setting to 1 means overwrite reguardless.&lt;br /&gt;
&lt;br /&gt;
== Moving/renaming an individual file ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;!insertmacro MoveFile &amp;quot;$INSTDIR\[path\]source-file&amp;quot; &amp;quot;$INSTDIR\[path\]destination-file&amp;quot;&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows you to move and/or rename an individual file. If a file already exists at the destination it will only be overwritten if newer than the existing one (if not then this one will just be deleted)! Please note that wildcards are NOT supported, you can only moved/rename a single specific file!&lt;br /&gt;
&lt;br /&gt;
In the following example a file is both moved to a different folder AND renamed:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;!insertmacro MoveFile &amp;quot;$INSTDIR\old-folder\old-file-name.txt&amp;quot; &amp;quot;$INSTDIR\new-folder\new-file-name.txt&amp;quot;&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Moving/renaming a folder ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;!insertmacro MoveFolder &amp;quot;$INSTDIR\[path\]source-folder[\]&amp;quot; &amp;quot;$INSTDIR\[path\]destination-folder[\]&amp;quot; &amp;quot;file-mask&amp;quot;&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This allows you to move stuff from one folder to another. It also allows you to effectively rename a folder. Note that this command includes all sub-folders!&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;file-mask&amp;#039; allows you to specify what files to move. Normally you should specify *.*, however if you require, you can have more flexibility over what files are moved! The asterix (*) aka wildcard is a special character that represents one or more unknown characters. If you wanted to move all .exe files you might specify *.exe. If you wanted to move all files that begin with the letter &amp;#039;a&amp;#039; you might specify a*.*.&lt;br /&gt;
&lt;br /&gt;
Lets look at an example. Renaming a folder:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;!insertmacro MoveFolder &amp;quot;$INSTDIR\old-folder\&amp;quot; &amp;quot;$INSTDIR\new-folder\&amp;quot; &amp;quot;*.*&amp;quot;&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Another example, this time for some reason you want to move only .exe files:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;!insertmacro MoveFolder &amp;quot;$INSTDIR\old-folder\&amp;quot; &amp;quot;$INSTDIR\new-folder\&amp;quot; &amp;quot;*.exe&amp;quot;&amp;lt;/highlight-nsis&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are a few notes about using MoveFolder:&lt;br /&gt;
&lt;br /&gt;
1. There is no way to exclude things (besides the file mask). Anything moved that you didn&amp;#039;t want to move you will have to move back!&lt;br /&gt;
&amp;lt;br /&amp;gt;2. If all files/sub-folders are moved and the source folder is left empty it will be automatically deleted!&lt;br /&gt;
&amp;lt;br /&amp;gt;3. You will loose all empty folders in both the source and destination folders during the move. This is a limitation of the code behind it. You will have to re-create them if you want them!&lt;br /&gt;
&lt;br /&gt;
== The code ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;highlight-nsis&amp;gt;&lt;br /&gt;
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
; MoveFile and MoveFolder macros&lt;br /&gt;
;&lt;br /&gt;
; Author:  theblazingangel@aol.com (for the AutoPatcher project - www.autopatcher.com)&lt;br /&gt;
; Created: June 2007  &lt;br /&gt;
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
&lt;br /&gt;
;==================&lt;br /&gt;
; MoveFile macro&lt;br /&gt;
;==================&lt;br /&gt;
&lt;br /&gt;
    !macro MoveFile sourceFile destinationFile&lt;br /&gt;
&lt;br /&gt;
	!define MOVEFILE_JUMP ${__LINE__}&lt;br /&gt;
&lt;br /&gt;
	; Check source actually exists&lt;br /&gt;
&lt;br /&gt;
	    IfFileExists &amp;quot;${sourceFile}&amp;quot; +3 0&lt;br /&gt;
	    SetErrors&lt;br /&gt;
	    goto done_${MOVEFILE_JUMP}&lt;br /&gt;
&lt;br /&gt;
	; Add message to details-view/install-log&lt;br /&gt;
&lt;br /&gt;
	    DetailPrint &amp;quot;Moving/renaming file: ${sourceFile} to ${destinationFile}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	; If destination does not already exists simply move file&lt;br /&gt;
&lt;br /&gt;
	    IfFileExists &amp;quot;${destinationFile}&amp;quot; +3 0&lt;br /&gt;
	    rename &amp;quot;${sourceFile}&amp;quot; &amp;quot;${destinationFile}&amp;quot;&lt;br /&gt;
	    goto done_${MOVEFILE_JUMP}&lt;br /&gt;
&lt;br /&gt;
	; If overwriting without &amp;#039;ifnewer&amp;#039; check&lt;br /&gt;
&lt;br /&gt;
	    ${If} $switch_overwrite == 1&lt;br /&gt;
		delete &amp;quot;${destinationFile}&amp;quot;&lt;br /&gt;
		rename &amp;quot;${sourceFile}&amp;quot; &amp;quot;${destinationFile}&amp;quot;&lt;br /&gt;
		delete &amp;quot;${sourceFile}&amp;quot;&lt;br /&gt;
		goto done_${MOVEFILE_JUMP}&lt;br /&gt;
	    ${EndIf}&lt;br /&gt;
&lt;br /&gt;
	; If destination already exists&lt;br /&gt;
&lt;br /&gt;
	    Push $R0&lt;br /&gt;
	    Push $R1&lt;br /&gt;
	    Push $R2&lt;br /&gt;
	    push $R3&lt;br /&gt;
&lt;br /&gt;
	    GetFileTime &amp;quot;${sourceFile}&amp;quot; $R0 $R1&lt;br /&gt;
	    GetFileTime &amp;quot;${destinationFile}&amp;quot; $R2 $R3&lt;br /&gt;
&lt;br /&gt;
	    IntCmp $R0 $R2 0 older_${MOVEFILE_JUMP} newer_${MOVEFILE_JUMP}&lt;br /&gt;
	    IntCmp $R1 $R3 older_${MOVEFILE_JUMP} older_${MOVEFILE_JUMP} newer_${MOVEFILE_JUMP}&lt;br /&gt;
&lt;br /&gt;
	    older_${MOVEFILE_JUMP}:&lt;br /&gt;
	    delete &amp;quot;${sourceFile}&amp;quot;&lt;br /&gt;
	    goto time_check_done_${MOVEFILE_JUMP}&lt;br /&gt;
&lt;br /&gt;
	    newer_${MOVEFILE_JUMP}:&lt;br /&gt;
	    delete &amp;quot;${destinationFile}&amp;quot;&lt;br /&gt;
	    rename &amp;quot;${sourceFile}&amp;quot; &amp;quot;${destinationFile}&amp;quot;&lt;br /&gt;
	    delete &amp;quot;${sourceFile}&amp;quot; ;incase above failed!&lt;br /&gt;
&lt;br /&gt;
	    time_check_done_${MOVEFILE_JUMP}:&lt;br /&gt;
&lt;br /&gt;
	    Pop $R3&lt;br /&gt;
	    Pop $R2&lt;br /&gt;
	    Pop $R1&lt;br /&gt;
	    Pop $R0&lt;br /&gt;
&lt;br /&gt;
	done_${MOVEFILE_JUMP}:&lt;br /&gt;
&lt;br /&gt;
	!undef MOVEFILE_JUMP&lt;br /&gt;
&lt;br /&gt;
    !macroend&lt;br /&gt;
&lt;br /&gt;
;==================&lt;br /&gt;
; MoveFolder macro&lt;br /&gt;
;==================&lt;br /&gt;
&lt;br /&gt;
    !macro MoveFolder source destination mask&lt;br /&gt;
&lt;br /&gt;
	!define MOVEFOLDER_JUMP ${__LINE__}&lt;br /&gt;
&lt;br /&gt;
	Push $R0&lt;br /&gt;
	Push $R1&lt;br /&gt;
&lt;br /&gt;
	; Move path parameters into registers so they can be altered if necessary&lt;br /&gt;
&lt;br /&gt;
	    StrCpy $R0 &amp;quot;${source}&amp;quot;&lt;br /&gt;
	    StrCpy $R1 &amp;quot;${destination}&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	; Sort out paths - remove final backslash if supplied&lt;br /&gt;
&lt;br /&gt;
	    Push $0&lt;br /&gt;
&lt;br /&gt;
	    ; Source&lt;br /&gt;
	    StrCpy $0 &amp;quot;$R0&amp;quot; 1 -1&lt;br /&gt;
	    StrCmp $0 &amp;#039;\&amp;#039; 0 +2&lt;br /&gt;
	    StrCpy $R0 &amp;quot;$R0&amp;quot; -1&lt;br /&gt;
&lt;br /&gt;
	    ; Destination&lt;br /&gt;
	    StrCpy $0 &amp;quot;$R1&amp;quot; 1 -1&lt;br /&gt;
	    StrCmp $0 &amp;#039;\&amp;#039; 0 +2&lt;br /&gt;
	    StrCpy $R1 &amp;quot;$R1&amp;quot; -1&lt;br /&gt;
&lt;br /&gt;
	    Pop $0&lt;br /&gt;
&lt;br /&gt;
	; Create destination dir&lt;br /&gt;
&lt;br /&gt;
	    CreateDirectory &amp;quot;$R1\&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	; Add message to details-view/install-log&lt;br /&gt;
&lt;br /&gt;
	    DetailPrint &amp;quot;Moving files: $R0\${mask} to $R1\&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	; Push registers used by ${Locate} onto stack&lt;br /&gt;
&lt;br /&gt;
	    Push $R6&lt;br /&gt;
	    Push $R7&lt;br /&gt;
	    Push $R8&lt;br /&gt;
	    Push $R9&lt;br /&gt;
&lt;br /&gt;
	; Duplicate dir structure (to preserve empty folders and such)&lt;br /&gt;
&lt;br /&gt;
	    ${Locate} &amp;quot;$R0&amp;quot; &amp;quot;/L=D&amp;quot; &amp;quot;.MoveFolder_Locate_createDir&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	; Locate files and move (via callback function)&lt;br /&gt;
&lt;br /&gt;
	    ${Locate} &amp;quot;$R0&amp;quot; &amp;quot;/L=F /M=${mask} /S= /G=1&amp;quot; &amp;quot;.MoveFolder_Locate_moveFile&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	; Delete subfolders left over after move&lt;br /&gt;
&lt;br /&gt;
	    Push $R2&lt;br /&gt;
	    deldir_loop_${MOVEFOLDER_JUMP}:&lt;br /&gt;
	    StrCpy $R2 0&lt;br /&gt;
	    ${Locate} &amp;quot;$R0&amp;quot; &amp;quot;/L=DE&amp;quot; &amp;quot;.MoveFolder_Locate_deleteDir&amp;quot;&lt;br /&gt;
	    StrCmp $R2 0 0 deldir_loop_${MOVEFOLDER_JUMP}&lt;br /&gt;
	    Pop $R2&lt;br /&gt;
&lt;br /&gt;
	; Delete empty subfolders moved - say the user just wanted to move *.apm files, they now also have a load of empty dir&amp;#039;s from dir structure duplication!&lt;br /&gt;
&lt;br /&gt;
	    Push $R2&lt;br /&gt;
	    delnewdir_loop_${MOVEFOLDER_JUMP}:&lt;br /&gt;
	    StrCpy $R2 0&lt;br /&gt;
	    ${Locate} &amp;quot;$R1&amp;quot; &amp;quot;/L=DE&amp;quot; &amp;quot;.MoveFolder_Locate_deleteDir&amp;quot;&lt;br /&gt;
	    StrCmp $R2 0 0 delnewdir_loop_${MOVEFOLDER_JUMP}&lt;br /&gt;
	    Pop $R2&lt;br /&gt;
&lt;br /&gt;
	; Pop registers used by ${Locate} off the stack again&lt;br /&gt;
&lt;br /&gt;
	    Pop $R9&lt;br /&gt;
	    Pop $R8&lt;br /&gt;
	    Pop $R7&lt;br /&gt;
	    Pop $R6&lt;br /&gt;
&lt;br /&gt;
	; Delete source folder if empty&lt;br /&gt;
&lt;br /&gt;
	    rmdir &amp;quot;$R0&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	Pop $R1&lt;br /&gt;
	Pop $R0&lt;br /&gt;
&lt;br /&gt;
	!undef MOVEFOLDER_JUMP&lt;br /&gt;
&lt;br /&gt;
    !macroend&lt;br /&gt;
&lt;br /&gt;
;==================&lt;br /&gt;
; MoveFolder macro&amp;#039;s ${Locate} callback functions&lt;br /&gt;
;==================&lt;br /&gt;
&lt;br /&gt;
	Function .MoveFolder_Locate_createDir&lt;br /&gt;
&lt;br /&gt;
	    ${If} $R6 == &amp;quot;&amp;quot;&lt;br /&gt;
		Push $R2&lt;br /&gt;
		StrLen $R2 &amp;quot;$R0&amp;quot;&lt;br /&gt;
		StrCpy $R2 $R9 &amp;#039;&amp;#039; $R2&lt;br /&gt;
		CreateDirectory &amp;quot;$R1$R2&amp;quot;&lt;br /&gt;
		Pop $R2&lt;br /&gt;
	    ${EndIf}&lt;br /&gt;
&lt;br /&gt;
	    Push $R1&lt;br /&gt;
&lt;br /&gt;
	FunctionEnd&lt;br /&gt;
&lt;br /&gt;
	Function .MoveFolder_Locate_moveFile&lt;br /&gt;
&lt;br /&gt;
	    Push $R2&lt;br /&gt;
&lt;br /&gt;
	    ; Get path to file&lt;br /&gt;
&lt;br /&gt;
		StrLen $R2 &amp;quot;$R0&amp;quot;&lt;br /&gt;
		StrCpy $R2 $R9 &amp;#039;&amp;#039; $R2&lt;br /&gt;
		StrCpy $R2 &amp;quot;$R1$R2&amp;quot;&lt;br /&gt;
&lt;br /&gt;
	    ; If destination does not already exists simply move file&lt;br /&gt;
&lt;br /&gt;
		IfFileExists &amp;quot;$R2&amp;quot; +3 0&lt;br /&gt;
		rename &amp;quot;$R9&amp;quot; &amp;quot;$R2&amp;quot;&lt;br /&gt;
		goto done&lt;br /&gt;
&lt;br /&gt;
	    ; If overwriting without &amp;#039;ifnewer&amp;#039; check&lt;br /&gt;
&lt;br /&gt;
		${If} $switch_overwrite == 1&lt;br /&gt;
		    delete &amp;quot;$R2&amp;quot;&lt;br /&gt;
		    rename &amp;quot;$R9&amp;quot; &amp;quot;$R2&amp;quot;&lt;br /&gt;
		    delete &amp;quot;$R9&amp;quot;&lt;br /&gt;
		    goto done&lt;br /&gt;
		${EndIf}&lt;br /&gt;
&lt;br /&gt;
	    ; If destination already exists&lt;br /&gt;
&lt;br /&gt;
		Push $0&lt;br /&gt;
		Push $1&lt;br /&gt;
		Push $2&lt;br /&gt;
		push $3&lt;br /&gt;
&lt;br /&gt;
		GetFileTime &amp;quot;$R9&amp;quot; $0 $1&lt;br /&gt;
		GetFileTime &amp;quot;$R2&amp;quot; $2 $3&lt;br /&gt;
&lt;br /&gt;
		IntCmp $0 $2 0 older newer&lt;br /&gt;
		IntCmp $1 $3 older older newer&lt;br /&gt;
&lt;br /&gt;
		older:&lt;br /&gt;
		delete &amp;quot;$R9&amp;quot;&lt;br /&gt;
		goto time_check_done&lt;br /&gt;
&lt;br /&gt;
		newer:&lt;br /&gt;
		delete &amp;quot;$R2&amp;quot;&lt;br /&gt;
		rename &amp;quot;$R9&amp;quot; &amp;quot;$R2&amp;quot;&lt;br /&gt;
		delete &amp;quot;$R9&amp;quot; ;incase above failed!&lt;br /&gt;
&lt;br /&gt;
		time_check_done:&lt;br /&gt;
&lt;br /&gt;
		Pop $3&lt;br /&gt;
		Pop $2&lt;br /&gt;
		Pop $1&lt;br /&gt;
		Pop $0&lt;br /&gt;
&lt;br /&gt;
	    done:&lt;br /&gt;
&lt;br /&gt;
	    Pop $R2&lt;br /&gt;
&lt;br /&gt;
	    Push $R1&lt;br /&gt;
&lt;br /&gt;
	FunctionEnd&lt;br /&gt;
&lt;br /&gt;
	Function .MoveFolder_Locate_deleteDir&lt;br /&gt;
&lt;br /&gt;
	    ${If} $R6 == &amp;quot;&amp;quot;&lt;br /&gt;
		RMDir $R9&lt;br /&gt;
		IntOp $R2 $R2 + 1&lt;br /&gt;
	    ${EndIf}&lt;br /&gt;
&lt;br /&gt;
	    Push $R1&lt;br /&gt;
&lt;br /&gt;
	FunctionEnd&lt;br /&gt;
&amp;lt;/highlight-nsis&amp;gt;&lt;/div&gt;</summary>
		<author><name>172.159.222.58</name></author>
	</entry>
</feed>