Search code examples
wixwindowwindows-installerinstallation

Wix installer, Windows control panel shows 2 entries and uninstall is greyed out


So I'm taking over a pre-existing installer project but I really don't know too much about Wix and installers in general so I am just asking to get an idea what areas in this installer I should look into.

I have this problem where the .msi generated by my Wix installer installs properly. But on Windows 10, the Apps & Features page shows 2 entries for my app as well both of the entries have the "Uninstall" button greyed out.

I'm pretty lost what part of the .wxs is in charge of what shows up in the Control Panel, any help will be appreciated.


Solution

  • Thanks to Stein Åsmul for his link to documentation. I was able to figure out why my msi was doing what it was doing.

    The main .wxs was disabling the Remove with the property

    <Property Id="ARPNOREMOVE" Value="1" />
    

    So removing that allowed me to Uninstall from the Windows Control Panel again.

    The reason why 2 entries were showing up in the Control Panel though was that we were adding a bunch of registry entries in the folder

    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\
    

    There's some reasons behind needing some registry entries here, but at least now that I know why I can hopefully work around them. Hopefully this helps anyone in the future that might run into this problem of duplicate entries from clean installs.