Install msi with msiexec in a Specific Directory

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

    Actually, both INSTALLPATH/TARGETDIR are correct. It depends on how MSI processes this.

    I create a MSG using wixToolSet. In WXS file, there is "Directory" Node, which root dir maybe like the following:

    ;
    

    As you can see: Id is which you should use.

提交回复
热议问题