Hello,
I'm afraid we don't have support for this. However, if you want to run a java application during installation process before services start and before they stop, then you can create your own
custom action. Also the custom action should be added before "Install Execution Stage -> Remove Resources -> StopServices" and before "Install Execution Stage -> Add Resources -> StartServices" standard actions.
All the best,
Daniel