Determine if MSI/EXE supports certain flag/argument?

前端 未结 3 1845
不知归路
不知归路 2021-01-12 00:16

I\'m creating an auto-updater that can run MSIs and EXEs. These MSIs/EXEs aren\'t my own. I\'d like to use any unattended/silent install option if it exists. Is there som

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-12 00:57

    Just run through the installer with logging turned on and it will show you all of the possible parameters that the specific MSI accepts.

    For example: msiexec /log logfile.txt /i installer.msi

    Run through the entire installer and the logfile.txt will show you the passable parameters as "Property(S)" or "Property(C)" with the name in all caps.

    Source: http://www.codeproject.com/Articles/16767/How-to-Pass-Command-Line-Arguments-to-MSI-Installe

提交回复
热议问题