Hi all!

 

I have a small problem.

 

In a Module I would like to test that another module is already
installed.

 

In the Product I can use the following:

<Product .. 

    <Property Id='OLD_CORE_IS_INSTALLED'>

      <ComponentSearch Id='OldCoreSearch'
Guid='9776c872-dbdf-46bd-9cf3-dc0a786e31a2'/>

    </Property>

    <Condition Message="Old Fls.Pro.Alm.BE module must be installed.">

      OLD_CORE_IS_INSTALLED OR Installed

    </Condition>

 

That will give the error dialog and the install aborts, just as I want.

 

In a merge module I cannot use the <Condition ....> so I use a custom
action instead

<Module ..

    <Property Id='OLD_CORE_IS_INSTALLED'>

      <ComponentSearch Id='OldCoreSearch'
Guid='9776c872-dbdf-46bd-9cf3-dc0a786e31a2'/>

    </Property>

 

    <CustomAction Id="CA_OLD_CORE_IS_INSTALLED" Error="Old
Fls.Pro.Alm.BE module must be installed." />

    <InstallExecuteSequence>

      <Custom Action="CA_OLD_CORE_IS_INSTALLED" After="AppSearch"
><![CDATA[NOT OLD_CORE_IS_INSTALLED AND NOT Installed]]></Custom>

    </InstallExecuteSequence>

 

The error dialog comes up, but that is first when the merge module is
installing, NOT as a launch condition!

I have tried to change the After="AppSearch" to some other value, but
without any changes. 

 

Are there any way that I can get the merge module custom action to run
at the same time as the normal condition in the Product?

 

I'm using WiX 3.0.3907.0.

 

Regards

Bent

 

 

 

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to