我收到错误
“目录 TestDir 在用户配置文件中,但不在 RemoveFile 表中”
基本上我希望我的应用程序安装到本地通用“所有用户”文件夹而不是 Program Files 文件夹中。
所以我的目录结构为
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="CommonAppDataFolder">
</Directory>
<Directory Id="SystemFolder"/>
<Directory Id="StartupFolder"/>
<Directory Id="DesktopFolder"/>
<Directory Id="ProgramMenuFolder">
<Directory Id="ProgramMenuVendorFolder" Name="Orion Integration">
</Directory>
</Directory>
<Directory Id="LocalAppDataFolder">
<Directory Id="ORIONDIR" Name="Orion Integration">
<Directory Id="INSTALLDIR" Name="TestApp">
<Directory Id="TestDir" Name="Test">
<Component Id="BUILDINGFLOORMODELSDIR_C" Guid="A6BD61D8-FAC8-4D7D-881E-58CC2C4F9753"
SharedDllRefCount="no" KeyPath="no" NeverOverwrite="no" Permanent="no" Transitive="no"
Location="either">
<RegistryValue
Root="HKCU"
Key="Software\Orion Integration\Orion CMS"
Name="InstalledBuildingFloorModels"
Type="integer"
Value="1" />
<CreateFolder/>
<RemoveFolder Id="BUILDINGFLOORMODELSDIR" On="uninstall"/>
</Component>
</Directory>
</Directory>
</Directory>
............
我已将 RemoveFIle 放在组件部分中,但仍然出现错误