
20-08-2022, 20:40
|
 |
Registered User
|
|
Join Date: Apr 2022
Location: ...
Posts: 54
Thanks: 222
Thanked 41 Times in 25 Posts
|
|
Quote:
Originally Posted by Gehrman
How can the Exec function work only by selecting Component 2?
Component2.Name=Patch
Component2.ItemType=CHECK
Component2.Size=1 MB
Component2.Level=0
Component2.Checked=1
Component2.Enabled=1
I tried the below function but it didn't work.
Code:
if ComponentsList.Checked[2] then
begin
if not ISExec ( 0, 0, 0, ExpandConstant('{tmp}\Patch.exe'), ExpandConstant('/Dir={app}'), ExpandConstant('{tmp}'), '...',false) then break;
end;
please help.
|
Try this
Code:
if IsComponentSelected('NAME') then begin
[Your Code]
End;
|