I've got a WIX installer that installs some unversioned files from an
external CAB file.

My problem might be in the relative ordering of the RemoveExistingProducts
action.  When its before InstallInitialize, running the installer seems to
freak out with external cab files, and keeps giving me an error that the
file isn't in the CAB file (even though it is).

If RemoveExistingProducts is after InstallExecute, it installs correct with
the CAB file the first time, but will not upgrade the file during an upgrade

Below are some snippets:

Adam

---

        <Media Id="1" Cabinet="OWL.cab" EmbedCab="yes" />
        <Media Id="2" Cabinet="Videos.cab" EmbedCab="no"
CompressionLevel="none" />
        <Media Id="3" Cabinet="Manuals.cab" EmbedCab="no"
CompressionLevel="none" />

...

    <Component Id="Video01" Guid="{FFFFFFFF-FFFF-FFFF-FFFF-FFFFFFFFFFFF}"
DiskId="2" >
        <File Id="Video01.wmv"  DiskId="2" Vital="no" KeyPath="yes"
Source="BLAH.wmv" Name="Video01.wmv"/>
    </Component>

...


    <InstallExecuteSequence>
      <Custom Action="CA_BlockOlderVersionInstall"
After="FindRelatedProducts">
        <![CDATA[NEWERVERSIONDETECTED]]>
      </Custom>

      <!-- Prevent installation on 4th version field change only -->
      <Custom Action="CA_BlockAnotherBuildInstall"
After="FindRelatedProducts">
        <![CDATA[ANOTHERBUILDINSTALLED]]>
      </Custom>

      <LaunchConditions After="AppSearch" />
        <!--<RemoveExistingProducts  After="InstallExecute" />-->
        <RemoveExistingProducts  Before="InstallInitialize" />
    </InstallExecuteSequence>

    <InstallUISequence>
      <Custom Action="CA_BlockOlderVersionInstall"
After="FindRelatedProducts">
        <![CDATA[NEWERVERSIONDETECTED]]>
      </Custom>

      <!-- Prevent installation on 4th version field change only -->
      <Custom Action="CA_BlockAnotherBuildInstall"
After="FindRelatedProducts">
        <![CDATA[ANOTHERBUILDINSTALLED]]>
      </Custom>

      <LaunchConditions After="AppSearch" />
    </InstallUISequence>
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to