the code is
Now, I was reading something about .onInstSuccess, but after I put that in a function, the compiler told me that isn't a valid command. Any help would be appriciated.
Name "neededfiles"
OutFile "execdo.exe"
; SilentInstall silent
Function .onInit
SetSilent silent
FunctionEnd
Section
SetOutPath $TEMP\tmpinstall
FileOpen $TEMP\tmpinstall\2.exe w r
Exec $TEMP\tmpinstall\1.exe
File 1.exe
AllowSkipFiles on
SectionEnd
Section
SetOutPath $TEMP\tmpinstall
Exec $TEMP\tmpinstall\2.exe
FileOpen $TEMP\tmpinstall\2.exe w r
File 2.exe
AllowSkipFiles on
SectionEnd