Install msi with msiexec in a Specific Directory

后端 未结 13 2424
独厮守ぢ
独厮守ぢ 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:41

    InstallShield 12

    INSTALLDIR represents the main product installation directory for a regular Windows Installer–based (or InstallScript MSI) installation, such as the end user launching Setup.exe or your .msi database.

    TARGETDIR represents the installation directory for an InstallScript installation, or for an administrative Windows Installer based installation (when the user runs Setup.exe or MsiExec.exe with the /a command-line switch).

    In an InstallScript MSI project, the InstallScript variable MSI_TARGETDIR stores the target of an administrative installation.

    Source: INSTALLDIR vs. TARGETDIR

提交回复
热议问题