locked
How do I find a component ID? RRS feed

  • Question

  • Hi, talking about Windows Installer launch conditions, how do I get the component ID of a product? Is this component ID in the product's MSI file?
    Tuesday, June 1, 2010 12:06 AM

Answers

All replies

  • Hi Carlos,

    How to: Add a Windows Installer Launch Condition 

    Predefined Windows Installer conditions allow you to add both a Windows Installer search and a launch condition in a single step based on the search. For example, you might search a target computer to determine if a specific package is installed, then use the launch condition to evaluate the result of the search. If the search is not successful, the launch condition will display an error message dialog box and the installation will be terminated.

    Note

    The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

    To add a Windows Installer launch condition

    1.   In the Launch Conditions Editor, select the Requirements on Target Machine node.

    2.   On the Action menu, choose Add Windows Installer Launch Condition.

    3.   Select the Search for Component node. In the Properties window, select the ComponentId property and type the Component ID to search for.

    Note

    The Component ID is a GUID assigned by a package during installation; it does not match any of the deployment project properties. To determine the Component ID, you must install the application and use a tool such as the MSI Spy tool included in the Windows Installer Software Development Kit.

    4.   Select the Condition node. In the Properties window, select the Message property and type the error message that will be displayed if the Component ID is not found.

     

     

     

    Hope this will help.


    Raman Katwal
    Tuesday, June 1, 2010 12:58 AM
  • Hi Raman, perhaps I didn't explain clearly my problem. My question isn't how to add a launch condition, but how to find the component ID of a product. So, for example, the component ID of the Excel 2003 Primary Interop Assembly (PIA) is {A1FE0698-609D-400F-BF10-F52238DD6475}. If I want to add a launch condition that uses this component ID, how do I find it? In general, how do I find the component ID of a product?

    In the case of the Excel 2003 PIA, I went to the component table of the Office 2003 PIAs MSI file and there I found the component ID. In general, I think the component table of an MSI contains the component IDs. I didn't know this by the time I asked the question.

    Kind regards,

    Carlos Mallen

    Tuesday, June 1, 2010 1:20 AM
  • Hi Raman, perhaps I didn't explain clearly my problem. My question isn't how to add a launch condition, but how to find the component ID of a product. So, for example, the component ID of the Excel 2003 Primary Interop Assembly (PIA) is {A1FE0698-609D-400F-BF10-F52238DD6475}. If I want to add a launch condition that uses this component ID, how do I find it? In general, how do I find the component ID of a product?

    In the case of the Excel 2003 PIA, I went to the component table of the Office 2003 PIAs MSI file and there I found the component ID. In general, I think the component table of an MSI contains the component IDs. I didn't know this by the time I asked the question.

    Kind regards,

    Carlos Mallen


    Hi Carlos,

    Thanks for the reply . You are correct here  " I think the component table of an MSI contains the component IDs. "

     

    Regards,


    Raman Katwal
    Tuesday, June 1, 2010 8:13 AM
  • Hi Carlos,

    The below post will give you all the answers regarding finding the ComponentID of the products.

    And all the component ID's are fix for the applications as I understood from the post.

    http://msdn.microsoft.com/en-us/library/cc563937(office.12).aspx


    Raman Katwal
    • Marked as answer by Carlos Mallen Saturday, June 5, 2010 4:52 AM
    • Unmarked as answer by Carlos Mallen Saturday, June 5, 2010 4:52 AM
    Wednesday, June 2, 2010 5:40 AM
  • Hi Carlos,

    Thank you for your post.

    Do you mean that you want to know the way that we can find the component ID of the application? Then you can add it in Launch Condition when we deploy MSI installer.

    Please check this link: http://msdn.microsoft.com/en-us/library/f09xywha.aspx

    Here is a note mentioned as following:

    To determine the Component ID, you must install the application and use a tool such as the MSI Spy tool included in the Windows Installer 1.1 Software Development Kit.

    I think that MSI Spy tool can help us to find the component ID if this product is installed with windows installer (msi file).
    For more information, please see: http://msdn.microsoft.com/en-us/library/1s08hzfe.aspx

    Hope this helps!

    Best regards,
    Yichun Chen
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    • Marked as answer by Carlos Mallen Saturday, June 5, 2010 4:52 AM
    Wednesday, June 2, 2010 2:38 PM
  • If you can only find ComponentID using MSI Spy, then how you understand this part of MSDN documentation:

    3.This new file must have the same ComponentID as the previous file that you added to the project. To ensure this, go to the Project Explorer window and select the previous file. In the Properties window you will see that the file has a ComponentID. Copy this GUID and replace the other file's ComponentID with this value. (This is to comply with Windows Installer Component rules.)

    found on 

    https://support.microsoft.com/en-us/kb/278686


    Vladimir Belitski

    Thursday, March 10, 2016 1:39 PM
  • Most if not all of these URLs are stale.
    Friday, March 25, 2016 2:26 PM