使用带有目标目录的命令提示符启动命令来安装软件 [英] Install software using command prompt start command with target directory

查看:169
本文介绍了使用带有目标目录的命令提示符启动命令来安装软件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用以下命令使用命令提示符安装软件

I am trying to install software using command prompt using below command

开始/ wait / d C:\abc C:\用户\abc.exe / silent / norestart

我想在c:\abc文件夹中安装软件,但它正在软件默认目录中安装。是否可以使用start命令将其安装到自定义目录中,或者是否可以使用其他方法将软件安装到目标目录中。

I want to install software in c:\abc folder but it is installing in the software default directory. Is there any way to install it into the custom directory using the start command or are there any other alternatives to install the software on the target directory.

推荐答案

简短版本



这可能是 可访问性快速说明: http://unattended.sourceforge.net /installers.php

SHORT VERSION:

This may be the most "accessible" and "quick" explanation for your particular case: http://unattended.sourceforge.net/installers.php

如果要处理MSI文件,则应使用管理员安装功能,先提取所有安装文件,然后通过设置公共属性或使用转换来配置安装来自定义安装安装。此处的详细信息:如何更好地利用MSI文件

If you are dealing with an MSI file, you should use the admin install feature to extract all the installation files first and then customize your install by setting public properties or utilizing a transform to configure the install. Details here: How to make better use of MSI files.

请查看底部的链接,以找到可用于不同类型的setup.exe文件的不同参数的列表。

See the link towards the bottom to find a list of different parameters you can use for different types of setup.exe files.

A 设置。 exe 文件可以是任何。它可以是旧的,古老的Installshield或Wise安装程序,嵌入在setup.exe启动器中的现代Windows Installer文件(MSI),Inno安装文件(非MSI),嵌入式Advanced Installer MSI安装程序,压缩和自解压zip文件,独特的定制安装程序(专有)或许多其他技术,此列表不停地出现-无法从提供的信息中得知使用哪种工具或技术来创建setup.exe。 。

A setup.exe file can be "anything". It can be an old, legacy Installshield or Wise installer, a modern Windows Installer file (MSI) embedded in a setup.exe launcher, an Inno setup file (non MSI), an embedded Advanced Installer MSI setup, a compressed and self-extracting zip file, a unique and custom made installer (proprietary), or any number of other technologies, the list goes on and on and on - it is impossible to tell what tool or technology was used to create your setup.exe from the information supplied.

仅供参考,我们链接到 installsite.org的有关不同设置技术和可用工具的信息。您的setup.exe最有可能是使用以下工具之一制成的:

Just for reference, let's link to installsite.org's information on different setup technologies and available tools. Most likely your setup.exe is made using one of these tools:

  • Non-MSI installer tools: http://www.installsite.org/pages/en/tt_nonmsi.htm
  • Windows installer tools: http://www.installsite.org/pages/en/msi/authoring.htm
  • This may also be of help: Wix - How to run/install application without UI.

重点自然是,每种不同的技术都有其自己的方式来启用静默安装和自定义安装参数。因此,第一步是确定这是什么。文件确实是。右键单击该文件,选择属性,然后在详细信息选项卡上查找任何线索。或者只是以交互方式运行setup.exe并查看窗口标题是什么(顶部窗口标题栏)。

The point is, naturally, that every, different technology has its own way to enable silent installation and to customize installation parameters. So the first step for you is to determine what this file really is. Right click the file, select properties and check the details tab for any clues. Or just run the setup.exe interactively and see what the window title is (top window title bar). It will generally indicate what tool was used to create the setup.exe.

不是重写所有内容,并且由于它是一个stackoverflow链接(不太可能被删除),所以通常会指出使用了什么工具来创建setup.exe。我将链接到有关如何静默安装setup.exe文件的类似答案: 如何使用Powershell来运行安装程序? 。有关各种工具文档的链接,请参见一些链接部分。

Rather than rewriting it all, and since it is a stackoverflow link (unlikely to be removed), I will just link to a similar answer on how to install setup.exe files silently: How can I use powershell to run through an installer?. See the "some links" section for links to documentation for various tools.

这篇关于使用带有目标目录的命令提示符启动命令来安装软件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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