Description
Current Behavior
When attempting to install version 0.30.6 with command:
msiexec /i windows_exporter-0.30.6-amd64.msi CONFIG_FILE=C:\Prometheus\windows_exporter.yml LISTEN_ADDR=x.x.x.x LISTEN_PORT=9998 EXTRA_FLAGS="--web.config.file=C:\Prometheus\ssl\tls_server_config.yml"
In the install logs I see, as expected:
MSI (s) (58:C0) [14:50:30:366]: PROPERTY CHANGE: Modifying CONFIG_FILE property. Its current value is 'config.yaml'. Its new value: 'C:\Prometheus\windows_exporter.yml'.
The installation fails with error message:
MSI (s) (58:14) [14:50:33:511]: Executing op: CustomActionSchedule(Action=CreateConfigFile,ActionType=3073,Source=BinaryData,Target=WixQuietExec,CustomActionData="C:\Windows\system32\cmd.exe" /c TYPE NUL >>"C:\Program Files\windows_exporter\config.yaml") MSI (s) (58:14) [14:50:33:511]: Creating MSIHANDLE (41) of type 790536 for thread 2068 MSI (s) (58:64) [14:50:33:527]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIEE40.tmp, Entrypoint: WixQuietExec MSI (s) (58:3C) [14:50:33:636]: Creating MSIHANDLE (42) of type 790531 for thread 1340 MSI (s) (58:3C) [14:50:33:636]: Closing MSIHANDLE (42) of type 790531 for thread 1340 MSI (s) (58:3C) [14:50:33:636]: Creating MSIHANDLE (43) of type 790531 for thread 1340 WixQuietExec: The system cannot find the path specified.
Expected Behavior
Given that CONFIG_FILE was specified in the install command, I would not expect a dependency on C:\Program Files\windows_exporter\config.yaml. If I create an email config.yaml file, the installation succeeds.
Steps To Reproduce
Environment
- windows_exporter Version: 0.30.6
- Windows Server Version: 2016
windows_exporter logs
MSI (s) (58:14) [14:50:33:511]: Executing op: CustomActionSchedule(Action=CreateConfigFile,ActionType=3073,Source=BinaryData,Target=WixQuietExec,CustomActionData="C:\Windows\system32\cmd.exe" /c TYPE NUL >>"C:\Program Files\windows_exporter\config.yaml")
MSI (s) (58:14) [14:50:33:511]: Creating MSIHANDLE (41) of type 790536 for thread 2068
MSI (s) (58:64) [14:50:33:527]: Invoking remote custom action. DLL: C:\Windows\Installer\MSIEE40.tmp, Entrypoint: WixQuietExec
MSI (s) (58:3C) [14:50:33:636]: Creating MSIHANDLE (42) of type 790531 for thread 1340
MSI (s) (58:3C) [14:50:33:636]: Closing MSIHANDLE (42) of type 790531 for thread 1340
MSI (s) (58:3C) [14:50:33:636]: Creating MSIHANDLE (43) of type 790531 for thread 1340
WixQuietExec: The system cannot find the path specified.
Anything else?
No response