<?xml version='1.0' encoding="utf-8"?>
      <rss version='2.0'>
      <channel>
      <title>Форум на Исходниках.RU</title>
      <link>https://forum.sources.ru</link>
      <description>Форум на Исходниках.RU</description>
      <generator>Форум на Исходниках.RU</generator>
  	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=392344&amp;view=findpost&amp;p=3509479</guid>
        <pubDate>Wed, 06 Aug 2014 10:42:11 +0000</pubDate>
        <title>Inno Setup: выполнения разных сценариев установки</title>
        <link>https://forum.sources.ru/index.php?showtopic=392344&amp;view=findpost&amp;p=3509479</link>
        <description><![CDATA[mitrich: Проще всего сделать вот так:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">[Types]</div><div class="code_line">Name: custom; Description: &quot;Это не будет показываться&quot;; Flags: iscustom</div><div class="code_line">&nbsp;</div><div class="code_line">[Components]</div><div class="code_line">Name: scen1; &nbsp; &nbsp; &nbsp; Description: &quot;Программа А - минимальная установка&quot;; &nbsp;Flags: exclusive; Types: custom </div><div class="code_line">Name: scen1\comp1; Description: &quot;Компонент 1&quot;; Types: custom</div><div class="code_line">Name: scen1\comp2; Description: &quot;Компонент 2&quot;; Types: custom</div><div class="code_line">Name: scen1\comp3; Description: &quot;Компонент 3&quot;; Types: custom</div><div class="code_line">&nbsp;</div><div class="code_line">Name: scen2; &nbsp; &nbsp; &nbsp; Description: &quot;Программа А - максимальная установка&quot;; &nbsp;Flags: exclusive</div><div class="code_line">Name: scen2\comp1; Description: &quot;Компонент 4&quot;; </div><div class="code_line">Name: scen2\comp2; Description: &quot;Компонент 5&quot;; </div><div class="code_line">Name: scen2\comp3; Description: &quot;Компонент 6&quot;; </div><div class="code_line">&nbsp;</div><div class="code_line">Name: scen3; &nbsp; &nbsp; &nbsp; Description: &quot;Plugin для программы Х&quot;; &nbsp;Flags: exclusive</div><div class="code_line">Name: scen3\comp1; Description: &quot;Компонент 7&quot;; </div><div class="code_line">Name: scen3\comp2; Description: &quot;Компонент 8&quot;; </div><div class="code_line">&nbsp;</div><div class="code_line">Name: scen4; &nbsp; &nbsp; &nbsp; Description: &quot;Plugin для программы Y&quot;; &nbsp;Flags: exclusive</div><div class="code_line">Name: scen4\comp1; Description: &quot;Компонент 9&quot;; </div><div class="code_line">&nbsp;</div><div class="code_line">Name: scen5; &nbsp; &nbsp; &nbsp; Description: &quot;Plugin для программы Z&quot;; &nbsp;Flags: exclusive</div><div class="code_line">Name: scen5\comp1; Description: &quot;Компонент 10&quot;;</div><div class="code_line">Name: scen5\comp2; Description: &quot;Компонент 11&quot;;</div><div class="code_line">Name: scen5\comp3; Description: &quot;Компонент 12&quot;;</div><div class="code_line">&nbsp;</div><div class="code_line">[Files]</div><div class="code_line">Source: &quot;file1.exe&quot;; &nbsp;DestDir: &quot;{app}&quot;; Components: scen1\comp1</div><div class="code_line">Source: &quot;file2.exe&quot;; &nbsp;DestDir: &quot;{app}&quot;; Components: scen1\comp2</div><div class="code_line">Source: &quot;file3.exe&quot;; &nbsp;DestDir: &quot;{app}&quot;; Components: scen1\comp3</div><div class="code_line">Source: &quot;file4.exe&quot;; &nbsp;DestDir: &quot;{app}&quot;; Components: scen2\comp1</div><div class="code_line">Source: &quot;file5.exe&quot;; &nbsp;DestDir: &quot;{app}&quot;; Components: scen2\comp2</div><div class="code_line">Source: &quot;file6.exe&quot;; &nbsp;DestDir: &quot;{app}&quot;; Components: scen2\comp3</div><div class="code_line">Source: &quot;file7.exe&quot;; &nbsp;DestDir: &quot;{app}&quot;; Components: scen3\comp1</div><div class="code_line">Source: &quot;file8.exe&quot;; &nbsp;DestDir: &quot;{app}&quot;; Components: scen3\comp2</div><div class="code_line">Source: &quot;file9.exe&quot;; &nbsp;DestDir: &quot;{app}&quot;; Components: scen4\comp1</div><div class="code_line">Source: &quot;file10.exe&quot;; DestDir: &quot;{app}&quot;; Components: scen5\comp1</div><div class="code_line">Source: &quot;file11.exe&quot;; DestDir: &quot;{app}&quot;; Components: scen5\comp2</div><div class="code_line">Source: &quot;file12.exe&quot;; DestDir: &quot;{app}&quot;; Components: scen5\comp3</div><div class="code_line">&nbsp;</div><div class="code_line">[Icons]</div><div class="code_line">Name: &quot;{group}\My Program&quot;; Filename: &quot;{app}\file1.exe&quot;; Components: scen1\comp1</div><div class="code_line">&nbsp;</div><div class="code_line">[Registry]</div><div class="code_line">Root: HKCU; Subkey: &quot;Software\Mitrich Software\Test&quot;; ValueName: &quot;TestVal&quot;; ValueType: string; ValueData: &quot;Scenario 1&quot;; Components: scen1</div><div class="code_line">Root: HKCU; Subkey: &quot;Software\Mitrich Software\Test&quot;; ValueName: &quot;TestVal&quot;; ValueType: string; ValueData: &quot;Scenario 2&quot;; Components: scen2</div><div class="code_line">Root: HKCU; Subkey: &quot;Software\Mitrich Software\Test&quot;; ValueName: &quot;TestVal&quot;; ValueType: string; ValueData: &quot;Scenario 3&quot;; Components: scen3</div><div class="code_line">Root: HKCU; Subkey: &quot;Software\Mitrich Software\Test&quot;; ValueName: &quot;TestVal&quot;; ValueType: string; ValueData: &quot;Scenario 4&quot;; Components: scen4</div><div class="code_line">Root: HKCU; Subkey: &quot;Software\Mitrich Software\Test&quot;; ValueName: &quot;TestVal&quot;; ValueType: string; ValueData: &quot;Scenario 5&quot;; Components: scen5</div></ol></div></div></div></div><script>preloadCodeButtons('1');</script><br>
<br>
Я сначала попробовал сделать чтобы была дополнительная страница с выбором сценария, а после неё, отображение только относящихся к сценарию компонентов при помощи Check-функции, типа этого:<br>
<div class='tag-code'><span class='pre_code'></span><div class='code  code_collapsed ' title='Подсветка синтаксиса доступна зарегистрированным участникам Форума.' style=''><div><div><ol type="1"><div class="code_line">[Components]</div><div class="code_line">Name: comp1; &nbsp;Description: &quot;Компонент 1&quot;; &nbsp;Types: full; Check: Scenario(0)</div><div class="code_line">Name: comp2; &nbsp;Description: &quot;Компонент 2&quot;; &nbsp;Types: full; Check: Scenario(0)</div><div class="code_line">Name: comp3; &nbsp;Description: &quot;Компонент 3&quot;; &nbsp;Types: full; Check: Scenario(0)</div><div class="code_line">Name: comp4; &nbsp;Description: &quot;Компонент 4&quot;; &nbsp;Types: full; Check: Scenario(1)</div><div class="code_line">Name: comp5; &nbsp;Description: &quot;Компонент 5&quot;; &nbsp;Types: full; Check: Scenario(1)</div><div class="code_line">Name: comp6; &nbsp;Description: &quot;Компонент 6&quot;; &nbsp;Types: full; Check: Scenario(1)</div></ol></div></div></div></div><br>
...но оказалось, что для компонентов Check-функция вызывается слишком рано - до отображения интерфейса инсталлятора - так что, для такого варианта нужно будет делать свою собственную страницу выбора компонентов и писать для неё логику.]]></description>
        <author>mitrich</author>
        <category>Инсталляторы</category>
      </item>
	
      <item>
        <guid isPermaLink='true'>https://forum.sources.ru/index.php?showtopic=392344&amp;view=findpost&amp;p=3504895</guid>
        <pubDate>Thu, 24 Jul 2014 03:50:18 +0000</pubDate>
        <title>Inno Setup: выполнения разных сценариев установки</title>
        <link>https://forum.sources.ru/index.php?showtopic=392344&amp;view=findpost&amp;p=3504895</link>
        <description><![CDATA[Dem_max: Подскажите пожалуйста, необходимо при запуске инсталлятора предлагать разный сценарий установки, т.е. это например:<br>1. Программа А - минимальная установка<br>   Компоненты для установки  (настраиваемый выбор компонентов):<br>       Компонент 1<br>       Компонент 2<br>       Компонент 3 <br><br>2. Программа А - максимальная установка<br>   Компоненты для установки (настраиваемый выбор компонентов):<br>       Компонент 4<br>       Компонент 5<br>       Компонент 6 <br><br>3. Plugin для программы Х<br>   Компоненты для установки (настраиваемый выбор компонентов):<br>       Компонент 7<br>       Компонент 8 <br><br>4. Plugin для программы Y<br>   Компоненты для установки (настраиваемый выбор компонентов):<br>       Компонент 9<br><br>5. Plugin для программы Z<br>   Компоненты для установки (настраиваемый выбор компонентов):<br>       Компонент 10<br>       Компонент 11<br>       Компонент 12<br><br><br>т.е. для каждого пункта будут свои копируемые файлы и значения реестра, а так же индивидуальный выбор компонентов<br><br>Как сделать такое.]]></description>
        <author>Dem_max</author>
        <category>Инсталляторы</category>
      </item>
	
      </channel>
      </rss>
	