• MSI FAQ 13

    Posted on July 29, 2012 by in MSI Interview Q’s

    The following are Frequently Asked Questions duirng an interview for Application Packaging Position:
    The question and answers are being collected from Various MSI blogs and Articles. My effort is confined to collecting as much material as possible from various sources and publishing it at once place.

    S No.

    Questions

    Answers

    121

    What needs to be done to make sure that one particular file remains on the system even after uninstallation.

    Add the file/registry to a newly created empty component and then in Details, select “Leave Installed on Uninstall” check box.

    122

    What needs to be done to make sure that if a file is already present on the system then it is not updated on installation.

    Add the file/registry to a newly created empty component and then in Details, select “Never overwrite if key path exists” check box.

    123

    How to test the application in the locked down environment?

    On the test machine login as administrator and perform a advertised installation using the following command

    msiexec /jm package_file.msi ALLUSERS=1 /qb+ /l*v C:\temp\install_packagename.log

    The above command will install the advertised shortcuts, icons, file types & extensions, COM class registration and Package installation details.

    Logout and login as non-admin user and test the application.

    124

    Where should a Custom action be placed which used a property populated by “System Search”

    The Custom Action should be placed after “CostFinalize” as during CostFinalize only the “System Search” is carried out.

    125

    What does “Another version of this product is already installed” means 

    It means that some version of the product is already installed on the system and msiexec is unable to perform an upgrade properly. This can be due to many reasons, such as they are same version, or upgrade code is missing or not properly set.

    126

    What is Upgrade? 

    Upgrade is a process of updating the earlier versions of a Windows Installer setup package i.e. Adding, changing & deleting new Files & Registries. But here product code, product version & package code should be changed.

    127

    What are the types of Upgrades and what is the difference? 

    a) Small Update : A small update is a product update that changes a few files or possibly adds some new content. But there is a limitation for the changes that can be made to the feature-component structure for the package. Only the package code is changed. It is also called as a “Hotfix” or “Quick Fix Engineering (QFE)”.

    b) Minor Upgrade : A minor update is a product update that makes enough changes. But there is a limitation for the changes that can be made to the feature-component structure for the package. The

    package code & product version is changed for the product. It is also called as a “Service Pack”.

    c) Major Upgrade : A major update is a product update with a large number of changes. There is no limitation for the changes that can be made to the feature-component structure for the package. The

    package code, product code & product version is changed for the product. It is also called as a “Product Upgrade”.

    128

    How to determine if an upgrade was performed or a clean installation by looking in installation log file.

     

    Check for “FindRelatedProducts” in log files and if it returns 1 then its an upgrade else fresh install.

    129

    How to make a custom action get executed only on Upgrade  Still need to figure out the answer. please comment if you know this answer.

    130

    What happens when the upgrade failes and RemoveExistingProducts is placed in between InstallExecute and InstallFinalize

    If the removal of the old application fails then the installer rolls back both the removal of the old application and the install of the new application. As a result entire application is removed from the machine and not even the older version remains on the machine.

    Be Sociable, Share!
      Post Tagged with , ,

    Written by

    View all articles by

    Email : [email protected]

    One Responseso far.

    1. Vilas says:

      To only run an action during upgrade:

      Installed AND NOT REMOVE

    Leave a Reply