Skip to content

Installer - Inconsistent Registry Keys #2328

Open

Description

@TonyValenti

Details for the issue

What did you do?

  1. I installed Db Browser for SQLITE

What did you expect to see?

The following registry key:
Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{A CONSTANT VALUE}

What did you see instead?

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall{A value that changes}

Useful extra information

We have an app that has a shortcut to launch DB Browser with certain command line parameters. IT would be nice to be able to query the registry to find the install location.

Activity

  1. justinclift commented on Jul 12, 2020

    @justinclift
    Member

    @karim @chrisjlocke Any ideas?

  2. chrisjlocke commented on Jul 12, 2020

    @chrisjlocke
    Member

    The GUID is the product code, so I assume should be consistent. I assume if its not provided in the setup, the MSI will randomly create one.
    This would be more for internal use though. To get the install location, this could be stored in the DB4S settings, or even Computer\HKEY_CLASSES_ROOT\Applications\DB Browser for SQLite.exe\shell\open\command ... although that isn't 'clean'.

  3. karim commented on Jul 12, 2020

    @karim
    Member

    The second registry key (with WOW6432Node) means you have a 32-bit installation on a 64-bit Windows. You should find the first key on a 32-bit Windows, or on a 64-bit Windows with 64-bit installation.

    Either way, Chris is right and these values you use are GUIDs and for internal use and you shouldn't depend on.

    IT would be nice to be able to query the registry to find the install location.

    You are right. This was an oversight on my part. I should have done it earlier. I just added an InstallLocation (seems to be a standard name) to HKEY_LOCAL_MACHINE\SOFTWARE\DB Browser for SQLite key.

  4. justinclift commented on Jul 12, 2020

    @justinclift
    Member

    @karim Oh, that's cool. We'll add that to the hopefully-somewhat-soon 3.12.1 release. 😄

  5. added this to the 3.12.1 milestone on Jul 12, 2020
  6. TonyValenti commented on Jul 12, 2020

    @TonyValenti
    Author

    @chrisjlocke - For most apps, the product GUIDs are constant and do not change between releases but that does not seem to be the case for DB Browser though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions