为什么 msiexec TARGETDIR 似乎不起作用 [英] Why msiexec TARGETDIR doesn't seem to work

查看:28
本文介绍了为什么 msiexec TARGETDIR 似乎不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过了

msiexec /i "yarn-1.10.1.msi" TARGETDIR="C:\programs" /qb

它已安装但未在 TARGETDIR 中,我错过了什么吗?

It installed but not in TARGETDIR, did I miss something ?

推荐答案

你可以试试下面的命令行:

You can try the following command line instead:

msiexec.exe /i "yarn-1.10.1.msi" INSTALLDIR="C:\programs" /qb

<小时>

  • 符合标准:始终建议在 %ProgramFiles% 下安装.部署中的创造力通常总是被高估,通常会导致不必要的问题.但是,您可能有一个需要自定义路径的 SOE 设置?
  • 路径更新:将每用户路径变量添加到默认情况下未创建的文件夹 (%SystemDrive%\Users\[UserName]\AppData\Local\Yarn\bin).这是设计使然.应用程序可能会在运行时创建文件夹.

    • Standards Compliance: Installing underneath %ProgramFiles% is always recommended. Creativity in deployment is generally always overrated and usually causes unnecessary problems. However, you could have an SOE setup that requires custom paths?
    • Path Update: A per-user path variable is added to a folder that is not created by default (%SystemDrive%\Users\[UserName]\AppData\Local\Yarn\bin). It is by design. The application probably creates the folder when run.
    • 管理安装:TARGETDIR一般用于管理安装(本质上是从 MSI 中提取文件)以指定提取文件的输出目录:

      Administrative Installation: TARGETDIR is generally used during administrative installations (essentially a file extraction from the MSI) to specify the output directory for extracted files:

      msiexec.exe /a yarn-1.10.1.msi TARGETDIR=D:\YarnExtractedFiles\
      

      <小时>

      TARGETDIR:在不过度复杂化的情况下,让我添加两个链接,其中包含有关 TARGETDIR 的更多信息(这是为了尝试使答案对其他人也有帮助 - 更加通用和通用"" 信息 - 您可能不需要但您可能只想知道的信息):


      TARGETDIR: Without over-complicating too much, let me add two links with more information about TARGETDIR (this is to try to make the answer helpful also for others - more "general and generic" info - what you might not need, but that you just might want to know):

      这篇关于为什么 msiexec TARGETDIR 似乎不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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