Active Setup question

Posted on 2011-05-02
Last Modified: 2013-11-13
How do I determine whether application needs active setup?

I need step by step instructions since I am a beginner when it comes to packaging applications.

I am packaging Windows Live Essentials photo Gallery and I wanted to make sure it doe snot need Active Setup. Can anyone help?
Question by:YZlat
    LVL 7

    Expert Comment

    Get autoruns from

    It is a little known feature that it can compare before and after.

    So run it - use "File > Save" to save a file.

    Run your setup.

    Re-run autoruns (or press F5 if it is still running), then do "File > Compare" and choose the file you previously saved.

    It will highlight new entries.

    It will also tell you about in-use file replacements that are queued up and anything placed in RunOnce keys - which can be used like active setup for setup programs.
    LVL 4

    Expert Comment

    Active Setup is generally used in the packages which do not have a advertised shortcut.  During Windows Logon the following keys are compared.

    HKLM\Software\Microsoft\Active Setup\Installed Components\<GUID>
    HKCU\Software\Microsoft\Active Setup\Installed Components\<GUID>

    <GUID> has to unique;

    If the HKCU key is not found the contents of the string value StubPath is executed. The HKLM key is then copied to HKCU.

    The executable in StubPath can be anything (a VBS script, a regsvr32.exe call, etc),

    Procedure to Create Active Setup Key:
    Add a registry key to the package in the following format:
    HKLM\Software\Microsoft\Active Setup\Installed Components\[Product Code]
    The Value under the key should be a string value called Stubpath with data of msiexec /fu [Product Code]. For both instances of [ProductCode], the variable can be used rather than actual value of the product code property.
    Note: There are several GUIDs that are contained within any particular MSI file. The GUID that is used in the registry will always be the ProductID GUID.
    To effect a per-user repair of an application on the next logon of a user, we need to add the application’s ProductID GUID to this list of sub-keys and populate some string values
    The values that are associated with this are described below:
    (Default) – The (Default) value in this case contains the text of what will be displayed to the user in a dialog box when a repair is being run. In the event the (Default) value is blank or NULL, the text from the Stubpath is displayed
    Stub Path:
    Check out MSIEXEC command line switches below. The stub path doesn’t need to be an MSI but restricted users on Connect may have issues running executables.

    Normally we use - msiexec /fu [ProductCode] /qn

    Excerpt from MSDN:
    /f [p|o|e|d|c|a|u|m|s|v] Package|ProductCode Repairs a product.
    p - Reinstalls only if file is missing.
    a - Forces all files to be reinstalled.
    u - Rewrites all required user-specific registry entries.
    s - Overwrites all existing shortcuts.
    v - Runs from source and reaches the local package. Do not uses the v reinstall option for the first installation of an application or feature.

    More Information ->
    LVL 4

    Accepted Solution

    Oops I guess I forgot to answer your question - if you need to perform any actions per user then you would need to use active setup using the above mentioned step. Usually some applications require configurations to be done in every user profile, this is usually achieved by using active setup. You can install your application and observe the behavior under different users and find out if it requires active setup.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Maximize Your Threat Intelligence Reporting

    Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

    One of the frequent problems with the installations is when some file or registry entry is not removed from the system upon un-installation of the product. Clean removal is always highly desirable. One major reason for that is badly authored inst…
    Installations often have prerequisites, such as “Microsoft .Net framework is required for this product”. The usual implementation in MSI installations is system search for a particular registry setting representing the required prerequisite, followe…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now