Install msi with msiexec in a Specific Directory

后端 未结 13 2382
独厮守ぢ
独厮守ぢ 2020-12-01 04:15

I want to install a msi with msiexec in a specific directory. I\'m using:

msiexec /i \"msi path\" INSTALLDIR=\"C:\\myfolder\" /qb

It is no

13条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 04:47

    Here's my attempt to install .msi using msiexec in Administrative PowerShell.

    I've made it 7 times for each of 2 drives, C: and D: (14 total) with different arguments in place of ARG and the same desirable path value.

    Template: PS C:\WINDOWS\system32> msiexec /a D:\users\username\downloads\soft\publisher\softwarename\software.msi /passive ARG="D:\Soft\publisher\softwarename"

    ARGs:

    • TARGETDIR
      • Works OK-ish, but produces redundand ProgramFilesFolder (with an additional folders similar to the default installation path, e.g. D:\Soft\BlenderFoundation\Blender\ProgramFilesFolder\Blender Foundation\Blender\2.81\) and a copy of the .msi at the target folder.
    • INSTALLDIR, INSTALLPATH, INSTALLFOLDER, INSTALLLOCATION, APPLICATIONFOLDER, APPDIR
      • When running on the same drive as set in the parameter: installs on this drive in a default folder (e.g. D:\Blender Foundation\Blender\2.81\)
      • When running from a differnet drive: seems to do nothing

提交回复
热议问题