I'm currently exploring WiX v4 and I'm facing a small challenge in my scenario.
My scenario: I've developed an installer for a Windows service. Prior to the installation of this service, I need to execute a custom script (e.g. a batch script), and the output generated from this script needs to be used for configuring the Windows service (specifically, I pass this output as an argument to the service). So I assume the value from the script has to be somehow dynamically saved to the variable.
The script is currently in the WiX project DIR.
I would very much appreciate any guidance on the best approach to handle this situation.