MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: /Component[Next]: ComPlusApp
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->Commands->ComponentFind

The "ComponentFind" Command

This command is used to find a component, if found the keypath directory is returned. Frequently used as a launch condition and also to determine an installation directory.

You would do this either to determine whether a particular product was installed or to determine where it (at least the component) installed (you may need to reference a file or install some files in the same location).

As the search is done via an "AppSearch" table entry, you may wish to modify the sequencing of this action.

You will need to examine the product's MSI using "ORCA" to obtain the component GUID and TYPE values (by examination of the "Component" table). If you don't have access to the original MSI (but it is installed) then you could look at the copy Windows Installer has cached (in "C:\Windows\Installer").

This command takes these parameters:

EXAMPLE

In the following we will display a message if we can't find the required product (assume if Component installed, the product is).

#define MM_PATCH_COMPGUID {1634B63A-34AF-4B31-A38A-E3D383B4E8BC}    ;;Patch.MMH (in ONE version of the MAKEMSI package!)
#(
    <$ComponentFind
           PROPERTY="CI_PATCH"
        ComponentId="<$MM_PATCH_COMPGUID>"
            Message="The correct version (1.2.3.4) of Product X is not installed."
    >
#)


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: /Component[Next]: ComPlusApp


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Saturday December 09 2017 at 9:30am
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.