WIX:default directory in WixUI_InstallDir

前端 未结 2 596
北恋
北恋 2020-12-19 11:43

The default directory in WixUI_InstallDir is always D:. How do i change it to directory C:?

It is also not showing my directory structure defined in .wxs file.It is

相关标签:
2条回答
  • 2020-12-19 12:26

    By default, TARGETDIR (and ROOTDRIVE but nobody uses that) default to the largest drive on the machine. See ligget78's answer to address that.

    0 讨论(0)
  • 2020-12-19 12:33

    You can use the following property in the Product definition:

        <Property Id="WIXUI_INSTALLDIR" Value="INSTALLDIR"/>
    

    INSTALLDIR can be defined like

    <Directory Id="ProgramFilesFolder">
        <Directory Id="MySoftware" Name="MySoftware">
          <Directory Id="INSTALLDIR" Name="MyProduct">
          </Directory>
        </Directory>
    </Directory>
    
    0 讨论(0)
提交回复
热议问题