Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/wix/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 使用wix复制目录结构_Windows_Wix_Windows Installer_Wix3_Heat - Fatal编程技术网

Windows 使用wix复制目录结构

Windows 使用wix复制目录结构,windows,wix,windows-installer,wix3,heat,Windows,Wix,Windows Installer,Wix3,Heat,所以我有一个巨大的文件结构,我希望安装程序,我正在使用wix构建,在客户端位置进行复制。目前我正在按如下方式键入: <Directory Id="xyz" Name = "abc FileSource = "sdfsdf"> <Component Id="asdas" Guid="asdasd"> <File Id = "asdfgrs" Name="name" /> </Component> </Direct

所以我有一个巨大的文件结构,我希望安装程序,我正在使用wix构建,在客户端位置进行复制。目前我正在按如下方式键入:

<Directory Id="xyz" Name = "abc FileSource = "sdfsdf">
    <Component Id="asdas" Guid="asdasd">
        <File Id = "asdfgrs" Name="name" />
    </Component>
</Directory>
“Guid=”asdasd“>

加热/?
输出:

-dr      directory reference to root directories (cannot contains spaces 
         e.g. -dr MyAppDirRef)
如果使用heat递归获取目录结构,则
-dr
开关将设置根目标文件夹的ID。此ID应与wxs文件中其他位置指定的
目录
元素的ID匹配

对于收获的子文件夹,heat仍将生成一个随机ID。给定ID将在生成的XML文件中多次出现:

  • 在加热为该子文件夹生成的
    目录
    元素中,作为
    Id
    属性

  • 在与该文件夹关联的
    组件
    元素中,作为
    目录
    属性

  • ID仅用于将
    组件
    元素链接到
    目录
    元素。它不是安装后显示的文件夹名称。它仅用作Windows Installer数据库中的键

    -dr      directory reference to root directories (cannot contains spaces 
             e.g. -dr MyAppDirRef)