View Single Post
  #2  
Old 20-08-2022, 20:40
Lord.Freddy's Avatar
Lord.Freddy Lord.Freddy is offline
Registered User
 
Join Date: Apr 2022
Location: ...
Posts: 54
Thanks: 222
Thanked 41 Times in 25 Posts
Lord.Freddy is on a distinguished road
Quote:
Originally Posted by Gehrman View Post
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;
Reply With Quote
The Following User Says Thank You to Lord.Freddy For This Useful Post:
Gehrman (21-08-2022)