确定MSI/EXE是否支持某些标志/参数? [英] Determine if MSI/EXE supports certain flag/argument?

查看:75
本文介绍了确定MSI/EXE是否支持某些标志/参数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个可以运行MSI和EXE的自动更新程序.这些MSI/EXE不是我自己的.我想使用任何无人值守/静默安装选项(如果存在).有什么方法可以确定MSI/EXE是否具有某种无人参与的安装支持,如果可以,请获取正确的参数,以便在运行时可以将其传递给文件?我知道,默认情况下,"/quiet"是静默安装选项,但我也对EXE和可能已自定义此选项的任何MSI感到好奇.

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 some way to determine if an MSI/EXE has some sort of unattended install support and, if so, get the right argument so I can pass it to the file when I run it? I know, by default '/quiet' is the silent install option, but I'm also curious about EXEs and any MSIs that maybe have customized this option.

此问题-检测用于无人参与安装的msi参数-类似,但是答案中的链接断开了,我无法从答案中弄清楚我该怎么做.

This question - detect msi parameters for unattended install - is similar, but the links in the answer are broken and I can't figure out from the answer what I would do.

谢谢.

推荐答案

如果是MSI,则参数为标准,您可以使用msiexec /?获取选项列表或查看

If it's MSI, then the parameters are standard, you can get the list of options with msiexec /? or view the docs on MSDN.

无法检测任意EXE支持的选项的选项(如果有).尝试从供应商处找到文档,或尝试/?切换…

There's no way to detect options for an arbitrary EXE which options it supports, if any. Try to find docs from the vendor, or try /? switch…

这篇关于确定MSI/EXE是否支持某些标志/参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆