I build 2 MSI packages with the following directory structure
definitions.

MSI #1:

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="$(var.program.files.folder)" Name=".">
        <Directory Id="PDTPSERV" Name="$(var.root.dir.short)"
LongName="$(var.root.dir)">
          <Directory Id="DIR1" Name="$(var.prod.dir.short)"
LongName="$(var.prod.dir)">

            <Component Id="directory1"
Guid="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" KeyPath="yes"
Location="either" Win64="$(var.Win64)" />

The CONSOLEDIR lives at [ProgramFilesFolder]/<company>/directory1.

Under directory1 lives the Java run-time in a jre directory.

<Directory Id="gui_jre.dir1" Name="jre">
  <Component Id="gui_jre_lib1" Guid="$(var.gui_jre_lib1.guid)"
Location="either" Win64="$(var.Win64)" >
    <File Id... />
...snip...
   </Component>
</Directory>

MSI #2:

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="$(var.program.files.folder)" Name=".">
        <Directory Id="PDTPSERV" Name="$(var.root.dir.short)"
LongName="$(var.root.dir)">
          <Directory Id="DIR2" Name="$(var.prod.dir.short)"
LongName="$(var.prod.dir)">

            <Component Id="directory2"
Guid="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" KeyPath="yes"
Location="either" Win64="$(var.Win64)" />

The OTHERDIR lives at [ProgramFilesFolder]/<company>/directory2.

Also under directory2 lives the Java run-time in a jre directory.

<Directory Id="gui_jre.dir1" Name="jre">
  <Component Id="gui_jre_lib1" Guid="$(var.gui_jre_lib1.guid)"
Location="either" Win64="$(var.Win64)" >
    <File Id... />
...snip...
   </Component>
</Directory>

The problem I am having is with the uninstall. If I install both MSI #1
and #2 and then uninstall #1, the uninstall is removing the jre
directory in *both* locations under directory1/lib/jre and
directory2/lib/jre instead of only under directory1.

Each component has a unique GUID.

What is wrong with this setup?

Any help is appreciated.

--
Harvey Werner


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to