<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; AHK: FileInstall  и вложенные папки - их содержимое не коприруется.]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=10413&amp;type=atom" />
	<updated>2015-02-16T15:54:44Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=10413</id>
		<entry>
			<title type="html"><![CDATA[Re: AHK: FileInstall  и вложенные папки - их содержимое не коприруется.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=91609#p91609" />
			<content type="html"><![CDATA[<p>Да, я уж понял, просто раньше писал, например <strong>*.wav</strong>. <br />Видимо это ошибка наложения, т.е. файлы уже были и я посчитал, что можно так писать.</p><p>Вопрос снят - спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2015-02-16T15:54:44Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=91609#p91609</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: FileInstall  и вложенные папки - их содержимое не коприруется.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=91607#p91607" />
			<content type="html"><![CDATA[<p>А почему вы спрашиваете? Разве у вас нет в &quot;источнике&quot; подстановочных символов? Смысл вопроса?</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-02-16T15:46:18Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=91607#p91607</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: FileInstall  и вложенные папки - их содержимое не коприруется.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=91606#p91606" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Имя файла для добавления к компилированному EXE. Имя не должно содержать двойных кавычек, ссылок на переменные (например, %A_ProgramFiles%) или подстановочных символов (* и ?). Вдобавок, любые специальные символы, такие как знак процента или запятая, должны быть экранированы (точно так же, как в параметрах всех других команд). Если полный путь к файлу не задан, путь считается относительным к папке самого скрипта.</p></blockquote></div><p> т.е. про подставочные символы?</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2015-02-16T15:44:27Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=91606#p91606</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AHK: FileInstall  и вложенные папки - их содержимое не коприруется.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=91605#p91605" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Indomito пишет:</cite><blockquote><p>Где я допустил ошибку?</p></blockquote></div><p>Возможно, плохо прочитали справку по FileInstall, особенно самое начало.</p>]]></content>
			<author>
				<name><![CDATA[teadrinker]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=24515</uri>
			</author>
			<updated>2015-02-16T15:41:22Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=91605#p91605</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AHK: FileInstall  и вложенные папки - их содержимое не коприруется.]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=91604#p91604" />
			<content type="html"><![CDATA[<p>Проблема с вложенными папками в <strong>FileInstall</strong>.</p><p>Этот фрагмент кода подключается по <strong>#Include C:\AHK\Include\AllAddFunc.ahk</strong>.</p><div class="codebox"><pre><code>If A_IsCompiled
    {
      vDirGMB  := &quot;AllAddFunc.res\GMsgBox.res&quot;
      IfNotExist, AllAddFunc.res\GMsgBox.res
          {
            FileCreateDir, AllAddFunc.res\GMsgBox.res ; Создаём папку для ресурсов
            FileSetAttrib, +H+A+R, AllAddFunc.res              ; Делаем её архивной, только для чтения и скрытой 
            FileSetAttrib, +H+A+R, AllAddFunc.res\GMsgBox.res  ; Делаем её архивной, только для чтения и скрытой 
          }
      FileInstall, C:\AHK\Include\AllAddFunc.res\GMsgBox.res\*.*, AllAddFunc.res\GMsgBox.res\*.*, 1
    }
  Else
    {
     vDirGMB  := &quot;C:\AHK\Include\AllAddFunc.res\GMsgBox.res&quot;
    }</code></pre></div><p>А если написать так: </p><div class="codebox"><pre><code>If A_IsCompiled
    {
      vDirGMB  := &quot;AllAddFunc.res&quot;
      IfNotExist, AllAddFunc.res
          {
            FileCreateDir, AllAddFunc.res                            ; Создаём папку для ресурсов
            FileSetAttrib, +H+A+R, AllAddFunc.res              ; Делаем её архивной, только для чтения и скрытой 
          }
      FileInstall, C:\AHK\Include\AllAddFunc.res\*.*, AllAddFunc.res\*.*, 1
    }
  Else
    {
     vDirGMB  := &quot;C:\AHK\Include\AllAddFunc.res&quot;
    }</code></pre></div><p>Тогда всё нормально.</p><p>Где я допустил ошибку?</p>]]></content>
			<author>
				<name><![CDATA[Indomito]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=27285</uri>
			</author>
			<updated>2015-02-16T15:33:53Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=91604#p91604</id>
		</entry>
</feed>
