目录xx在用户配置文件中,但未在RemoveFile表中列出



当我试图创建安装程序时,我得到以下错误:错误信息:

ICE64:目录ProgramMenuServersFolder在用户配置文件中,但没有在RemoveFile表中列出。C:Documents and SettingsadminDesktop SetupProject1SetupProject1Product。1 SetupProject1.

如何继续?

<!--Start C2 by Me, ProgramMenuFolder is used to add shortcut on start menu -->
      <Directory Id="ProgramMenuFolder">
        <Directory Id="ProgramMenuLightRidgeFolder" Name="LightRidge Resources">
          <Directory Id="ProgramMenuAdminFolder" Name="Admin"/>
          <Directory Id="ProgramMenuServersFolder" Name="Servers">

              <!--<Directory Id="ServersHisSubFolder" Name="Historian Server" />
            <Directory Id="ServersMsgSubFolder" Name="Messaging Server" />-->
              <Directory Id="ProgramMenuServersHisSubFolder" Name="Historian Server" />
              <Directory Id="ProgramMenuServersMsgSubFolder" Name="Messaging Server" />
          </Directory>

          <Directory Id="ProgramMenuUtilitiesFolder" Name="Utilities"/>
        </Directory>
      </Directory>
      <!--End C2 by Me -->
      <Directory Id="DesktopFolder" Name="Desktop">
        <Component Id="DesktopShortcut" Guid="{484EA493-A1E0-41d2-8E5D-67D30D8F03AD}">
          <RegistryKey Root="HKCU" Key="SoftwareLightRidge ResourcesPE-Advisor">
            <RegistryValue Name="DesktopShortcutPe-Advisor" Value="1" Type="integer" KeyPath="yes"  Action="write"/>
          </RegistryKey>
          <Shortcut Id="DesktopShortcut" Directory="DesktopFolder" Name="PE-Advisor" ShortName="PEAdv" Target="[PEADVISOR]Symcon.LightRidge.PEAdvisor.exe" Icon="GRAPH03.ICO"/>
        </Component>
      </Directory>

    </Directory>
    <!-- close tag of main directory-->
    <UIRef Id="UserInterface"/>

    <Feature Id="MainApplication" Title="Main Application" Level="1">
      <!-- <ComponentRef Id="WFTest.exe" /> -->
      <ComponentRef Id="ProductMain"/>
      <ComponentRef Id="ApplicationShortcut" />
      <ComponentRef Id="ApplicationHelpShortcut"/>
      <ComponentRef Id="UtilitiesApplicationShortcut"/>
      <ComponentRef Id="DesktopShortcut" />
      <ComponentRef Id="UTILITIES" />
      <ComponentRef Id="HISTORIAN" />
      <ComponentRef Id="ADMIN" />
      <ComponentGroupRef Id="PEAdvisorFiles"/>
      <ComponentGroupRef Id="Historian"/>
      <ComponentGroupRef Id="ConfigFiles"/>
      <ComponentGroupRef Id="Help"/>
      <ComponentRef Id="AdminApplicationShortcut"/>
      <ComponentRef Id="HistorianApplicationShortcut"/>
      <ComponentRef Id="MESSAGING"/>
      <ComponentRef Id="MessagingApplicationShortcut"/>
      <!--<ComponentRef Id="ServerApplicationShortCut"/>-->
    </Feature>

    <!-- Start C3 Me, Component Group of 'config' files -->
    <ComponentGroup Id="ConfigFiles" Directory="CONFIG">
      <Component Id="ColorSchemes" Guid="*">
        <File Id="ColorSchemes" Source="D:PE-Advisor Source code 4-26 11-July-2012 (Dowloaded from FTP site on19-Oct-12)8 DesktopApplicationExternalLibconfigColorSchemes.xml" Name="ColorSchemes.xml" Vital="yes"/>
      </Component>

      <Component Id="config" Guid="*">
        <File Id="config" Source="D:PE-Advisor Source code 4-26 11-July-2012 (Dowloaded from FTP site on19-Oct-12)8 DesktopApplicationExternalLibconfigconfig.xml" Name="config.xml" Vital="yes"/>
      </Component>
      <Component Id="HelpConfig" Guid="*">
        <File Id="HelpConfig" Source="D:PE-Advisor Source code 4-26 11-July-2012 (Dowloaded from FTP site on19-Oct-12)8 DesktopApplicationExternalLibconfigHelpConfig.xml" Name="HelpConfig.xml" Vital="yes"/>
      </Component>
      <Component Id="PIConfig" Guid="*">
        <File Id="PIConfig" Source="D:PE-Advisor Source code 4-26 11-July-2012 (Dowloaded from FTP site on19-Oct-12)8 DesktopApplicationExternalLibconfigPIConfig.xml" Name="PIConfig.xml" Vital="yes"/>
      </Component>
      <Component Id="ReportServerConfig" Guid="*">
        <File Id="ReportServerConfig" Source="D:PE-Advisor Source code 4-26 11-July-2012 (Dowloaded from FTP site on19-Oct-12)8 DesktopApplicationExternalLibconfigReportServerConfig.xml" Name="ReportServerConfig.xml" Vital="yes"/>
      </Component>
      <Component Id="OptionsConfig" Guid="*">
        <File Id="OptionsConfig" Source="D:PE-Advisor Source code 4-26 11-July-2012 (Dowloaded from FTP site on19-Oct-12)8 DesktopApplicationExternalLibconfigoptions.xml" Name="Options.xml" Vital="yes"/>
      </Component>
      <Component Id="version" Guid="*">
        <File Id="version" Source="D:PE-Advisor Source code 4-26 11-July-2012 (Dowloaded from FTP site on19-Oct-12)8 DesktopApplicationExternalLibconfigversion.xml" Name="version.xml" Vital="yes"/>
      </Component>
    </ComponentGroup>


    <DirectoryRef Id ="ProgramMenuServersHisSubFolder">
      <Component Id="HistorianApplicationShortcut" Guid="{484EA493-A1E0-41d2-8E5D-87D30D8F03AD}">
        <Condition>HISTORIAN</Condition>
        <Shortcut Id="HistorianStartMenuShortcut" Name="Historian Server"
           Description="Historian Server"
            Target="[HISTORIANSERVER]HistorianServer.exe"
            WorkingDirectory="APPLICATIONROOTDIRECTORY" Icon="GRAPH03.ICO"/>
        <RemoveFolder Id="ProgramMenuServersHisSubFolder" On="uninstall"/>
        <!--<RemoveFolder Id='RemoveProgramMenuServersFolder' Directory='ProgramMenuFolder' On='uninstall'/>-->
        <!--<RemoveFolder Id="ProgramMenuServersFolder" On="uninstall" />-->
        <!--<RemoveFolder Id="ProgramMenuServersFolder" On="uninstall"/>-->
        <!--<RemoveFolder Id="ProgramMenuServersHisSubFolder" On="uninstall"/>-->
        <!--<RemoveFolder Id="Servers" On="uninstall"/>-->
        <RegistryValue Root="HKCU" Key="SoftwareLightRidge ResourcesPE-Advisor" Name="installed" Type="integer" Value="1" KeyPath="yes"/>

      </Component>
    </DirectoryRef>

    <ComponentGroup Id="Messaging" Directory="MESSAGINGSERVER">
      <Component Id="MESSAGING" Guid="{980EA493-A1E6-41d2-8E5D-87D30D8F03AD}">
        <Condition>MESSAGING</Condition>
        <File Id="Server" Source="D:PE-Advisor Source code 4-26 11-July-2012 (Dowloaded from FTP site on19-Oct-12)8 DesktopApplicationMessagingSystemExternalLibServer.exe" Name="Server.exe" Vital="yes"/>
        <File Id="ServerConfig.xml" Source="D:PE-Advisor Source code 4-26 11-July-2012 (Dowloaded from FTP site on19-Oct-12)8 DesktopApplicationMessagingSystemExternalLibServerConfig.xml" Name="ServerConfig.xml" Vital="yes"/>
        <File Id="ServerComponentMessaging" Source="D:PE-Advisor Source code 4-26 11-July-2012 (Dowloaded from FTP site on19-Oct-12)8 DesktopApplicationMessagingSystemExternalLibServerComponent.dll" Name="ServerComponent.dll" Vital="yes"/>
        <!--<RemoveFolder Id="ProgramMenuServersMsgSubFolder" On="uninstall"/>-->
        <!--<RegistryValue Root="HKCU" Key="SoftwareLightRidge ResourcesPE-Advisor" Name="installed" Type="integer" Value="1" KeyPath="yes"/>-->
      </Component>
    </ComponentGroup>
    <DirectoryRef Id ="ProgramMenuServersMsgSubFolder">
      <Component Id="MessagingApplicationShortcut" Guid="{980EA493-A8E6-41d2-8E5D-67D30D8F03AD}">
        <Condition>MESSAGING</Condition>
        <Shortcut Id="MessagingStartMenuShortcut" Name="Messaging Server"
           Description="Messaging Server"
            Target="[MESSAGINGSERVER]Server.exe"
            WorkingDirectory="APPLICATIONROOTDIRECTORY" Icon="GRAPH03.ICO"/>
        <RemoveFolder Id="ProgramMenuServersMsgSubFolder" On="uninstall"/>
        <!--<RemoveFolder Id="ProgramMenuServersFolder" On="uninstall"/>-->
        <!--<RemoveFolder Id="Servers" On="uninstall"/>-->
        <RegistryValue Root="HKCU" Key="SoftwareLightRidge ResourcesPE-Advisor" Name="installed" Type="integer" Value="1" KeyPath="yes"/>
      </Component>
    </DirectoryRef>

请查看另一个问题的解决方案:目录xx在用户配置文件中,但未在RemoveFile表中列出。

利马

最新更新