nerv1909
Newbie | Редактировать | Профиль | Сообщение | Цитировать | Сообщить модератору Добрый день! Прошу помочь с проблемой использования вложенных компонентов. В секции [Components] при использовании Check параметра отображается только один вложенный компонент. В итоге в списке компонентов отображается только компонент readme\de (German). Если убрать Check: is64bit, то отображаются все вложенные компоненты. Как сделать отображение дерева компонентов с проверкой каждого из них? Заранее спасибо за совет. Скрипт примера: ; -- Components.iss -- ; Demonstrates a components-based installation. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES! [Setup] AppName=My Program AppVersion=1.5 DefaultDirName={pf}\My Program DefaultGroupName=My Program UninstallDisplayIcon={app}\MyProg.exe OutputDir=userdocs:Inno Setup Examples Output [Types] Name: full; Description: Full installation Name: compact; Description: Compact installation Name: custom; Description: Custom installation; Flags: iscustom [Components] Name: program; Description: Program Files; Types: full compact custom; Flags: fixed Name: help; Description: Help File; Types: full Name: readme; Description: Readme File; Types: full; Flags: checkablealone Name: readme\en; Description: English; Flags: checkablealone; Check: is64bit Name: readme\de; Description: German; Flags: checkablealone Name: readme\ru; Description: RUssian; Flags: checkablealone; Check: is64bit Name: test; Description: test; Flags: checkablealone; Types: full [Files] Source: MyProg.exe; DestDir: {app}; Components: program Source: MyProg.chm; DestDir: {app}; Components: help Source: Readme.txt; DestDir: {app}; Components: readme\en; Flags: isreadme Source: Readme-German.txt; DestName: Liesmich.txt; DestDir: {app}; Components: readme\de; Flags: isreadme [Icons] Name: {group}\My Program; Filename: {app}\MyProg.exe [Code] function is64bit():boolean; begin try if DirExists(expandconstant('{pf64}')) = true then result:=true; except result:=false; end; end; end. |