我想创建一个Chocolatey软件包来安装Scene Builder,所以我正在寻找一种在命令行中静默安装Scene Builder的方法。
我下载了一个安装程序(SceneBuilder-8.4.1.exe)并尝试安装如下。
> SceneBuilder-8.4.1.exe /silent
但是,在我双击安装程序时,它会启动一个类似的安装对话框。
Scene Builder安装程序是否具有静默安装的功能?
答案 0 :(得分:2)
您可以尝试找出使用何种安装程序并查找静默安装标记,或者您可以尝试实验。 Chocolatey文档说的是这样的
https://chocolatey.org/docs/helpers-install-chocolatey-package#silentargs-string
如果您将“help”参数传递给安装程序,则表示某些静音开关和一些文档。
PS> ./SceneBuilder-9.0.1.exe /?
---------------------------
Setup
---------------------------
The Setup program accepts optional command line parameters.
/HELP, /?
Shows this information.
/SP-
Disables the This will install... Do you wish to continue? prompt at the beginning of Setup.
/SILENT, /VERYSILENT
Instructs Setup to be silent or very silent.
/SUPPRESSMSGBOXES
Instructs Setup to suppress message boxes.
/LOG
Causes Setup to create a log file in the user's TEMP directory.
/LOG="filename"
Same as /LOG, except it allows you to specify a fixed path/filename to use for the log file.
/NOCANCEL
Prevents the user from cancelling during the installation process.
/NORESTART
Prevents Setup from restarting the system following a successful installation, or after a Preparing to Install failure that requests a restart.
/RESTARTEXITCODE=exit code
Specifies a custom exit code that Setup is to return when the system needs to be restarted.
/CLOSEAPPLICATIONS
Instructs Setup to close applications using files that need to be updated.
/NOCLOSEAPPLICATIONS
Prevents Setup from closing applications using files that need to be updated.
/RESTARTAPPLICATIONS
Instructs Setup to restart applications.
/NORESTARTAPPLICATIONS
Prevents Setup from restarting applications.
/LOADINF="filename"
Instructs Setup to load the settings from the specified file after having checked the command line.
/SAVEINF="filename"
Instructs Setup to save installation settings to the specified file.
/LANG=language
Specifies the internal name of the language to use.
/DIR="x:\dirname"
Overrides the default directory name.
/GROUP="folder name"
Overrides the default folder name.
/NOICONS
Instructs Setup to initially check the Don't create a Start Menu folder check box.
/TYPE=type name
Overrides the default setup type.
/COMPONENTS="comma separated list of component names"
Overrides the default component settings.
/TASKS="comma separated list of task names"
Specifies a list of tasks that should be initially selected.
/MERGETASKS="comma separated list of task names"
Like the /TASKS parameter, except the specified tasks will be merged with the set of tasks that would have otherwise been selected by default.
/PASSWORD=password
Specifies the password to use.
For more detailed information, please visit http://www.jrsoftware.org/ishelp/index.php?topic=setupcmdline
---------------------------
OK
---------------------------
http://www.jrsoftware.org/ishelp/index.php?topic=setupcmdline
Universal Silent Switch Finder说这是一个Inno安装程序安装程序并建议一些开关。