1

I scheduled a task at system startup to run the "msi" file of wmi_exporter with argument LISTEN_PORT=9100. Task is expected to install msi and listen on 9100 port however no installation process occur upon trigger of scheduled task. I can see the task running in task manager.

Note: you can refer to this page if you want to know what wmi_exporter is for

Avinash L
  • 167
  • 2
  • 15

1 Answers1

1

Did you schedule it to run in silent mode? If not it could be stuck on a setup dialog being shown (running in a logon session you can not see). There are also other possibilities. What user did you set to launch the scheduled task?

Here is a sample msiexec.exe command line to install the MSI file silently:

msiexec.exe /I "enterprise_gsync.msi" /QN /L*V "msilog.log"

I don't want to duplicate a previous answer of mine on superuser.com, please open it here: How to deploy MSI which has no silence install switch? (this answer elaborates and explains the above command line).


Some Links:

Stein Åsmul
  • 39,960
  • 25
  • 91
  • 164
  • Thanks for the answer! I did try the /QN switch however not the "/I" switch. Also, I directly invoked the msi file not through msiexec.exe `D:\cr_monitoring\wmi_exporter-0.4.2-amd64.msi /Q LISTEN_PORT=9100`. This is what I was trying – Avinash L Aug 17 '18 at 04:57