Скрипты Inno Setup. Помощь и советы [часть 8]

Ответить
 • Просмотры: 50
Аватара пользователя
Dodakaedr

Re: Скрипты Inno Setup. Помощь и советы [часть 8]

Сообщение Dodakaedr »

svs23,



[Files]

Components: punkt1 and not punkt2 and not punkt3; Source: 1\file1...

Components: punkt2 and not punkt1 and not punkt3; Source: 2\file2...

Components: punkt3 and not punkt2 and not punkt1; Source: 3\file3...

Components: punkt1 and punkt2; Source: 4\file4...

Components: punkt2 and punkt3; Source: 5\file5...



дальше по аналогии
Аватара пользователя
ShadeUa

Re: Скрипты Inno Setup. Помощь и советы [часть 8]

Сообщение ShadeUa »

Цитата svs23:



если в списке компонентов выбран пункт 1 то копировать файл 1

если в списке компонентов выбран пункт 2 то копировать файл 2

если в списке компонентов выбран пункт 3 то копировать файл 3

если в списке компонентов выбран пункт 1 и 2 то копировать файл 4 но не копировать файл 1 и 2

если в списке компонентов выбран пункт 2 и 3 то копировать файл 5 но не копировать файл 2 и 3

если в списке компонентов выбран пункт 1 и 3 то копировать файл 6 но не копировать файл 1 и 3

если в списке компонентов выбран пункт 1 и 2 и 3 то копировать файл 7 но не копировать файл 1 и 2 и 3
Скрипты Inno Setup. Помощь и советы [часть 8]




Там же поддерживаются логические операторы. Значит что-то типо такого должно прокатить:

Код:

Код: Выделить всё

[Components]
Name: one; Description: "1";
Name: two; Description: "2";
Name: three; Description: "3";
[Files]
Source: "File1"; DestDir: ""; Components: one and not (two and three);
Source: "File2"; DestDir: ""; Components: two and not (one and three);
Source: "File3"; DestDir: ""; Components: three and not (one and two);
Source: "File4"; DestDir: ""; Components: one and two and not three;
Source: "File5"; DestDir: ""; Components: two and three and not one;
Source: "File6"; DestDir: ""; Components: one and three and not two;
Source: "File7"; DestDir: ""; Components: one and two and three;

Надеюсь, правильно вас понял.
Аватара пользователя
ekspoint

Re: Скрипты Inno Setup. Помощь и советы [часть 8]

Сообщение ekspoint »

Цитата svs23:



не правильно сформулировал вопрос

надо так
Скрипты Inno Setup. Помощь и советы [часть 8]







Скрытый текст

[spoiler]Код:
[/spoiler]

Код: Выделить всё

[setup]
appname=app
appversion=1.0
DefaultDirName={sd}\app
[Files]
;если файл
Source: file1.xml; DestDir: {app}; Components: file1 and not file3 and not file2;
Source: file2.xml; DestDir: {app}; Components: file2 and not file1 and not file3;
Source: file3.xml; DestDir: {app}; Components: file3 and not file1 and not file2;
Source: file4.xml; DestDir: {app}; Components: file1 and file2 and not file3;
Source: file5.xml; DestDir: {app}; Components: file2 and file3 and not file1;
Source: file6.xml; DestDir: {app}; Components: file1 and file3 and not file2;
Source: file7.xml; DestDir: {app}; Components: file1 and file2 and file3;
[INI]
;если *.ini файл
Filename: {app}\file1.txt; Section: settings; Key: OnTop; String: Yes; Components: file1 and not file3 and not file2;
Filename: {app}\file2.txt; Section: settings; Key: Ask; String: No; Components: file2 and not file1 and not file3;
Filename: {app}\file3.txt; Section: settings; Key: ST; String: Stop; Components: file3 and not file1 and not file2;
Filename: {app}\file4.txt; Section: settings; Key: St; String: Play; Components: file1 and file2 and not file3;
Filename: {app}\file5.txt; Section: settings; Key: Type; String: Discont; Components: file2 and file3 and not file1;
Filename: {app}\file6.txt; Section: settings; Key: Name; String: Player; Components: file1 and file3 and not file2;
Filename: {app}\file7.txt; Section: settings; Key: BD; String: 12; Components: file1 and file2 and file3;
[Components]
Name: file1; Description: file1;
Name: file2; Description: file2;
Name: file3; Description: file3;
Аватара пользователя
Sotonisto

Re: Скрипты Inno Setup. Помощь и советы [часть 8]

Сообщение Sotonisto »

Цитата Dodakaedr:



Source: file1.xml; DestDir: {app}; Components: file1 and not file3 and not file2;

Source: file2.xml; DestDir: {app}; Components: file2 and not file1 and not file3;

Source: file3.xml; DestDir: {app}; Components: file3 and not file1 and not file2;

Source: file4.xml; DestDir: {app}; Components: file1 and file2 and not file3;

Source: file5.xml; DestDir: {app}; Components: file2 and file3 and not file1;

Source: file6.xml; DestDir: {app}; Components: file1 and file3 and not file2;

Source: file7.xml; DestDir: {app}; Components: file1 and file2 and file3;
Скрипты Inno Setup. Помощь и советы [часть 8]




то что надо

огромное СПС



kotyarko@fb, R.i.m.s.k.y., Dodakaedr,

спасибо всем
Аватара пользователя
kotyarko@fb

Re: Скрипты Inno Setup. Помощь и советы [часть 8]

Сообщение kotyarko@fb »

подскажите правильно сделал?



Код:

Код: Выделить всё

[Files]
Source: "...\XVMSymbol_11.1*"; DestDir: "{tmp}\XVMSymbol_11.1";
[Run]
Filename: "{tmp}\XVMSymbol_11.1\fontinst.exe"; Parameters: "/f fontinst.inf"
Аватара пользователя
ShadeUa

Re: Скрипты Inno Setup. Помощь и советы [часть 8]

Сообщение ShadeUa »

Здраствуйте , не подскажите как сделать абзац в строке в Inno
Аватара пользователя
Dodakaedr

Re: Скрипты Inno Setup. Помощь и советы [часть 8]

Сообщение Dodakaedr »

в {tmp} скопировать папку XVMSymbol_11.1 с содержимым fontinst.exe, fontinst.inf, XVMSymbol_11.1.ttf



fontinst.inf



Код:

Код: Выделить всё

[fonts]
XVMSymbol_11.1.ttf

при выполнении установки запустить fontinst.exe /f fontinst.inf для установки в систему шрифта XVMSymbol_11.1.ttf
Аватара пользователя
ShadeUa

Re: Скрипты Inno Setup. Помощь и советы [часть 8]

Сообщение ShadeUa »

svs23, можно

а можно использовать средства инно

[Files]

Source: "XVMSymbol_11.1.ttf"; DestDir: "{fonts}"; FontInstall: "XVMSymbol_11.1"; Flags: onlyifdoesntexist uninsneveruninstall
Аватара пользователя
Dodakaedr

Re: Скрипты Inno Setup. Помощь и советы [часть 8]

Сообщение Dodakaedr »

нашел это пост и делал по нему....

[решено] Установка дополнительных шрифтов





Цитата R.i.m.s.k.y.:



[Files]

Source: "XVMSymbol_11.1.ttf"; DestDir: "{fonts}"; FontInstall: "XVMSymbol_11.1"; Flags: onlyifdoesntexist uninsneveruninstall
Скрипты Inno Setup. Помощь и советы [часть 8]




я так понял шрифт скопируется и установится в системе? перегружать винду не нужно будет?
Ответить

Вернуться в «Автоматическая установка приложений»