How to make an app - Andromo App Maker

Announcement

Collapse
No announcement yet.

Error 2000: Error inserting components

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error 2000: Error inserting components

    Hi there,

    I've been tweaking my MSI Factory project, done a whole bunch of things over the course of a few hours. Now when I try to build it says,

    ---

    Checking for orphaned folders...
    Setting language to English-US for this build.
    Checking output folders

    Building main setup .wxs file (foobar.wxs)

    Error 2000: Error inserting components

    Build FAILED! Error: 2000 - XML error

    ---

    Any idea how to work out what's wrong? The project loads fine in MSI Factory.

    Nick.

  • #2
    Check your components and see if there are perhaps Unicode symbols in the descriptions, things like the trademark, copyright, etc. These could cause issues, but it also could be something else...

    Ulrich

    Comment


    • #3
      Okay thanks, I'll take a look, not sure how that would have got into there.

      Comment


      • #4
        I ran a tool on the msifact file and didn't find any unicode characters. I was messing about with components earlier. Is there any way of enabling a more verbose output?

        Comment


        • #5
          Apparently the error is in this lot somewhere, file copy operations,

          <FileOpList>
          <SetupItem Type="10" ID="Copy_0028" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>wire_edm.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0027" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>trafficlightpurpleicon.gif</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0026" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>trafficlightpinkicon.gif</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0025" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>trafficlightorangeicon.gif</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0024" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>trafficlightcyanicon.gif</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0023" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>trafficlightblueicon.gif</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0022" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>stopped_critical.gif</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0021" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>stopped.gif</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0020" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>running.gif</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0019" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>mill_turn.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0018" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>mill.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0017" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>machine.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0016" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>lathe.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0015" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>laserplasmawater.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0014" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>grinder.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0013" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>factory.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0012" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>default_yellow_icon.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0011" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>default_violet_icon.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0010" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>default_red_icon.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0009" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>default_purple_icon.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0008" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>default_icon.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0007" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>default_green_icon.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0006" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>default_bottlegreen_icon.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0005" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>default_bottlegreen_icon.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0004" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>cog.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0003" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>cell.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0002" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>basic_machine.png</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          <SetupItem Type="10" ID="Copy_0001" ComponentID="NMS4DIRBITMAPS">
          <DuplicateFile>yes</DuplicateFile>
          <ProjectFileID>amber_light.gif</ProjectFileID>
          <SourceFolder IsProperty="no"/>
          <SourceFilename/>
          <DestinationFolder IsProperty="yes">[NMSDIRPROPERTY]\BMP\Images\</DestinationFolder>
          <DestinationFilename/>
          <DeleteSource>no</DeleteSource>
          </SetupItem>
          </FileOpList>

          Comment


          • #6
            I've removed all of these so that I now only have 1 copy operation, this breaks compilation,

            ---

            <FileOpList>
            <SetupItem Type="10" ID="Copy_0001" ComponentID="BITMAPS">
            <DuplicateFile>yes</DuplicateFile>
            <ProjectFileID>factory.png</ProjectFileID>
            <SourceFolder IsProperty="no"/>
            <SourceFilename/>
            <DestinationFolder IsProperty="yes">[BITMAPDIRPROPERTY]\BMP\Images</DestinationFolder>
            <DestinationFilename>factory.png</DestinationFilename>
            <DeleteSource>no</DeleteSource>
            </SetupItem>
            </FileOpList>


            ---

            I've tried altering a bunch of things but haven't managed to get it to accept this copy operation as yet.

            Comment


            • #7
              I've attached a sample project with 1 file and 1 copy operation that causes this behavior.
              Attached Files

              Comment


              • #8
                Okay, so I think I've found the issue now, I was thinking that I could append a path to the destination property, but I can't, so I'll have to do this beforehand.

                Comment


                • #9
                  I've actually done this using a different technique now and using an XCopy Custom Action that copies the files. All sorted now.

                  Comment


                  • #10
                    Originally posted by Ulrich View Post
                    Check your components and see if there are perhaps Unicode symbols in the descriptions, things like the trademark, copyright, etc. These could cause issues, but it also could be something else...

                    Ulrich
                    Ulrich
                    Please Help I want yor help

                    Comment

                    Working...
                    X