发现命令行开关 [英] Discovering Command Line Switches

查看:74
本文介绍了发现命令行开关的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

某些软件允许其安装过程像使用各种开关一样从命令运行.一个典型的例子是使用/S或/VERYSILENT开关进行静默安装.但是,通常它没有记录.

Some software allows it's installation process to be ran from the command like with various switches. A classic example is silent installs with the /S or /VERYSILENT switch. But, oftentimes it's not documented.

是否有可用的软件可以列出安装程序的任何安装或命令行标志,而无需知道正在使用哪种类型的安装程序(例如MSI,InstallSheild,Inno Setup等)

Is there any software available that can list any installation or command line flags for an installer without knowing what type of installer is being used (such as MSI, InstallSheild, Inno Setup etc)

推荐答案

一个来源是 unattended.org -那里有很多信息需要检查.我通常会根据经验告诉我要处理的是哪种类型的setup.exe.加上在属性页中找到的信息.当然,您也可以使用工具在exe中搜索字符串-我知道有可执行文件可以为您执行此操作,但是我发现它们的用途有限.我尝试的最后一个有兼容性问题.也可以使用Visual Studio,有几种打开二进制文件的方法.既作为资源,又作为二进制流.也许也是可行的,从未尝试过.

One source is unattended.org - there is lots of information to check out there. I generally use experience to tell what type of setup.exe I am dealing with. Plus the information found in the property page. You can of course also use a tool to search the exe for strings - I know there are executables that will do this for you, but I find them of limited use. The last one I tried had compatibility issues. Visual Studio could be used too, there are several ways to open a binary. Both as a resource and as a binary stream. Maybe this works too, never tried.

对于MSI文件,您可以使用此特殊的命令行构建器工具来构建复杂的命令行(似乎该工具可能已脱机.我暂时将其保留).

For MSI files you can use this special command line builder tool to build complicated command lines (it appears this tool may have been taken offline. I will leave this in for now).

有关Installshield setup.exe和update.exe文件的更多信息,可以在在此处找到.

Further information for Installshield setup.exe and update.exe files can be found here.

对于其他setup.exe文件,您可能想要尝试使用命令提示符和setup.exe/?的明显解决方案.首先查看是否有可用的帮助.

For other setup.exe files you might want to try the obvious solution with a command prompt and setup.exe /? first to see if there is help available.

对于Windows更新msu文件(Windows Update独立安装程序)的特殊情况,我使用以下命令行从管理员级别命令提示符处按顺序启动它们(将在不重新启动的情况下以静默方式运行文件夹中的所有更新):

And for the special case of Windows update msu files (Windows Update Standalone Installer) I kick them off in sequence using the following command line from an admin level command prompt (will run all updates in the folder silently without restart):

for %h in (*x64*.msu) do start /wait wusa "%cd%\%h" /quiet /norestart


链接:

这篇关于发现命令行开关的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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