WiX ICE64:目录 XX 位于用户配置文件中



我已经检查了这里的答案和 http://robmensching.com/blog/posts/2007/4/27/how-to-create-an-uninstall-shortcut-and-pass-all-the/的博客文章,但我就是看不到我错过了什么。我相信我正确地使用了MfgStartMenuFolder。错误位于:

<Directory Id="MfgStartMenuFolder" Name="!(bind.property.Manufacturer)" />

在我的主要片段中,我有:

<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 Id="ProgramMenuFolder" >
  <Directory Id="MfgStartMenuFolder" Name="!(bind.property.Manufacturer)" />
 </Directory>
</Directory>

在我的"开始"菜单文件夹对象的片段中,我有:

<DirectoryRef Id="MfgStartMenuFolder" >
  <Component Id="ApplicationShortcut" Guid="MY-GUID" >
    <Shortcut Id="ApplicationStartMenuShortcut"
              Name="!(bind.property.ProductName)"
              Description="Find Files (Reasonably) Fast"
              Directory="MfgStartMenuFolder"
              Target="[INSTALLFOLDER]FinderOfFiles.exe"
              WorkingDirectory="INSTALLFOLDER"
              Icon="MyShortcutIcon" />
    <RemoveFolder Id="RemoveMfgStartMenuFolder"
                  Directory="MfgStartMenuFolder"
                  On="uninstall" />
    <RegistryValue Root="HKCU"
        Key="Software[Manufacturer][ProductName]ProgramMenuShortcut"
        Name="installed"
        Type="integer"
        Value="1"
        KeyPath="yes" />
  </Component>
</DirectoryRef>

我正在使用WiX 3.11,而不是使用任何附加组件,例如Wax。

我重写了整个部分,所以这个问题没有意义。

最新更新