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

  • Home
  • SEARCH
  • 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 6548567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:59:10+00:00 2026-05-25T11:59:10+00:00

My installer has to append a value to an existing multistring registry key (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSA\Notification

  • 0

My installer has to append a value to an existing multistring registry key (HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSA\Notification Packages):

<RegistryKey Id='RegistryEntry' Root='HKLM' Key='SYSTEM\CurrentControlSet\Control\Lsa' Action="createAndRemoveOnUninstall">
    <RegistryValue Type='multiString' Name='Notification Packages' Value='p1' Action='append'/>
</RegistryKey>

Problem is that, when uninstalling, it is removing the whole key : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\LSA ie. all values under LSA are deleted, is there any way that i can just delete the value i appended (only p1) and retain the existing values?

  • 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-25T11:59:11+00:00Added an answer on May 25, 2026 at 11:59 am

    The documentation for WiX’s <RegistryKey> element says (emphasis mine):

    createAndRemoveOnUninstall

    Creates the key, if absent, when the parent component is installed
    then remove the key with all its values and subkeys when the parent
    component is uninstalled. Note that this value is useful only if your
    program creates additional values or subkeys under this key and you
    want an uninstall to remove them. MSI already removes all values and
    subkeys that it creates, so this option just adds additional overhead
    to uninstall
    .

    Additional evidence suggests that the behavior described above applies to multi-string values: the installer engine will automatically remove the appended values on uninstall, preserving the values that were present before the installation.

    Therefore, using create instead of createAndRemoveOnUninstall should do what you want:

    <RegistryKey Id="RegistryEntry" Root="HKLM"
                 Key="SYSTEM\CurrentControlSet\Control\Lsa"
                 Action="create">
        <RegistryValue Type="multiString" Name="Notification Packages"
                       Value="p1" Action="append" />
    </RegistryKey>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Windows Installer has the smart feature to automatically decide whether to store registry values
I have an NSIS installer that has the start menu folders hard-coded using this
I am creating a program which has an installer-like interface. Is it better to
Has anyone been able to get Windows Installer to use the InstallUISequence table during
I'm creating a msi based installer (using InstallShield) that has a custom action to
I have a fairly complicated installer that I'm writing in Wix that has a
Something, maybe the windows sdk or visual studio installer, has defined the Platform environment
My installer has a custom action which contacts a windows service and set some
Here is the error message: The installer has encountered an unexpected error installing this
One of my users sent error report that the installer has crashed with following

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.