I have a Custom Action that runs an executable within an msi installer package. The exe is compiled as a console application and stdouts necessary info.
- I want that output redirected to the MSI log file.
- I don't want the console to be shown during the installation.
For number 2 I suppose I can use windows
as a subsystem, which will not open a console at all. But no output will be shown even if I run the exe from a terminal (PowerShell/CMD).
For number 1 I thought of running an executable as a subprocess called within a Custom Action DLL, but it is not possible since the exe is stored in a binary table and won't be generated when I need it. Moreover, it will have a random name.
The Custom Action's logic MUST be run as a separate process.