开发者

WIX:default directory in WixUI_InstallDir

开发者 https://www.devze.com 2023-01-08 08:51 出处:网络
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 only showing D:.It should actually

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 only showing D:.It should actually show 'D:\folder1\folder2'. why is that ? what will i have to do to show the directory structure?

   <Property Id="ROOTDRIVE"><![CDATA[C:\]]></Property>
        <Directory Id="TARGETDIR" Name="SourceDir">
          <Directory Id="ProgramFilesFolder">
            <Directory Id='E' Name='E'>
               <Directory Id="dirm" Name="E Mrch">
                   <Component></Component>
               </Directory>
       开发者_StackOverflow     </Directory>
          </Directory>
        </Directory>


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>


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

精彩评论

暂无评论...
验证码 换一张
取 消