我正在尝试将我的文件放入“C:\ Program Files(x86)\ VENDOR-NAME \ PRODUCT-NAME”文件夹中,但它们没有安装。盲目地试图看看我哪里出错了。请帮忙。相关代码是:
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="ManufacturerFolder" Name="!(bind.property.Manufacturer)" >
<Directory Id="INSTALLFOLDER" Name="!(bind.property.ProductName)" />
</Directory>
</Directory>
</Directory>
</Fragment>
<Fragment>
<ComponentGroup Id="MyProductComponents" Directory="INSTALLFOLDER">
<Component Id="cmp_FinderOfFiles.exe" Guid="GUID-HERE">
<File Id="file_FinderOfFiles.exe"
Name="FinderOfFiles.exe"
Source="$(var.FinderOfFiles.TargetDir)FinderOfFiles.exe"
Checksum="yes"
KeyPath="yes" />
</Component>
</ComponentGroup>
</Fragment>
答案 0 :(得分:0)
谢谢,Yan,你的指针。一旦我给它一些想法,我意识到我需要
<ComponentGroupRef Id="MyProductComponents" />
代替。