Launch .exe after the package closes

Hello !

I have a sudden problem with Paquet Builder and launching executable file after the package closes.

Indeed, I need to run a .exe file (which adds a windows service) at the root of the package and with arguments, for example : program.exe -install

So I use the function “Launch programs or files” but should I fill “Program/Document File Path” or “Command Line Switches” ? And what am I supposed to write ?
I tried with “%DESTPATH%\program.exe -install” but it doesn’t work.

Thank you for your help !

Use an “Execute a program” custom action:
https://www.installpackbuilder.com/help/execute-program-file

Insert it in the “After file extraction” event and use the following properties for the custom action:

Filename = “%DESTPATH%\program.exe
Parameters = -install
WaitUntilEnd = True