MSI Package with no add remove entry RRS feed

  • Question

  • Hi All,

    I need to create MSI Package with the following requirement. Please provide me some guidance for the following requirement. I want to use Windows Installer to create MSI package.NET feramework (setup project)

    1) There should not be any entry in Add Remove entry, Control Panel (Normally MSI Package makes an entry to Add Remove Program)
    2) Normally MSI package checks add remove entry to identify if the agent needs to be installed on not, but this MSI package should use ASMFlag.sys file in C root to determine if the agent is installed or not.  If file exists, do not install.  If file does not exist, install.

    3) When MSI package is created, the EXE will reside in a subfolder named 'temp'.

    Thanks in Advance

    Monday, November 12, 2007 3:40 PM



    Hi Mark Clark Sumanta,

    For your first question, you need to set the ARPSYSTEMCOMPONENT Property to 1 to prevent the application from being displayed in the Add or Remove Programs list of Control Panel. You need to do it with the Orca tool, because Visual Studio doesn’t support this property. You can use the Orca tool to open the MSI file, select Property table on the left side and add a property named ARPSYSTEMCOMPONENT with the value be set to 1 into this table.

    For your second question, you need to add a launch condition. Please take the following steps:

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

    2.       On the Action menu, choose Add File Launch Condition.

    3.       Select the Search for File node. In the Properties window, select the FileName property and type the name of the file (ASMFlag.sys) to search for; select the Folder property and type the name of the folder(C:) where the search will start.
    Note: The Property property value matches the Condition property value in the launch condition. If you change the Property property, you must also change the Condition property to match.

    4.       Select the Launch Conditions node and add a launch condition.

    5.       Select the Condition node. In the Properties window, select the Condition property and set it to the Property value of your search for file node (NOT FILEEXISTS1 by default), select the Message property and type the error message that will be displayed if the file is found.

    More information about launch condition, please check the following page on MSDN.

    ·         http://msdn2.microsoft.com/en-us/library/ay12wede(VS.80).aspx

    For your third question, in the Property dialog of your setup project, you can set the output folder of your project.

    Hope this helps.
    Best regards.
    Rong-Chun Zhang

    Friday, November 16, 2007 6:08 AM