Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 525463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T08:40:28+00:00 2026-05-13T08:40:28+00:00

Using a .msi package, I want to create a few registry keys if they

  • 0

Using a .msi package, I want to create a few registry keys if they don’t exist, leave them alone if they do exist, and not delete them if the program is removed. I have done this (using Orca) by adding entries to the following msi tables: Components, FeatureComponents, Registry, & LockPermissions. My question is what should I do about the GUID used in the ComponentID of the Component table for these keys? It seems there are 3 choices.

1) Assign them once and leave them alone in future versions of the msi

2) Assign new ones every time a new version is produced

3) Use NULL (per http://msdn.microsoft.com/en-us/library/aa368007(VS.85).aspx) I have not tried this.

Is one of these to be preferred over the other? Are there any consequences of one over the other? (I’d prefer leaving as little stuff behind as possible if the program is removed).

I am also curious to know what the following comment about the permanent attribute bit (16) means.

If this bit is set, the installer does not remove the component during an uninstall. The installer registers an extra system client for the component in the Windows Installer registry settings.

Where might might these entries be found?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T08:40:28+00:00Added an answer on May 13, 2026 at 8:40 am

    From the Windows Installer MSDN topic Organizing Applications into Components:

    Never create two components that
    install a resource under the same name
    and target location. If a resource
    must be duplicated in multiple
    components, change its name or target
    location in each component. This rule
    should be applied across applications,
    products, product versions, and
    companies.

    Option (2) would effectively create a new component for the same registry key each time you release a new version, which violates the quoted rule.

    Option (3) can be done in wix by setting the component GUID as Guid="". It will make windows installer install the component resources and then “forget” the component. This may do what you want in the sense that the installed resources will not be removed. However, it also means that a “repair” will not be able to restore the registry entries if they go missing.

    Therefore you should go for option (1) where you have a fixed GUID, and set the Permanent attribute to keep the reference count for the component non-zero. How windows installer does this internally is an implementation detail that you shouldn’t care about, so I don’t see the point of looking for those windows installer registry settings.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.