Skip to content

Commit 350142d

Browse files
committed
Add Dependency_CustomExecute define
Closes #80
1 parent 26f72a5 commit 350142d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

CodeDependencies.iss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,11 @@ begin
101101
102102
while True do begin
103103
ResultCode := 0;
104+
#ifdef Dependency_CustomExecute
105+
if {#Dependency_CustomExecute}(ExpandConstant('{tmp}{\}') + Dependency_List[DependencyIndex].Filename, Dependency_List[DependencyIndex].Parameters, ResultCode) then begin
106+
#else
104107
if ShellExec('', ExpandConstant('{tmp}{\}') + Dependency_List[DependencyIndex].Filename, Dependency_List[DependencyIndex].Parameters, '', SW_SHOWNORMAL, ewWaitUntilTerminated, ResultCode) then begin
108+
#endif
105109
if Dependency_List[DependencyIndex].RestartAfter then begin
106110
if DependencyIndex = DependencyCount - 1 then begin
107111
Dependency_NeedToRestart := True;

0 commit comments

Comments
 (0)