Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt Installer Framework - delete registry key in uninstall
Forum Updated to NodeBB v4.3 + New Features

Qt Installer Framework - delete registry key in uninstall

Scheduled Pinned Locked Moved General and Desktop
3 Posts 2 Posters 4.9k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    Camillo
    wrote on last edited by
    #1

    Dear all,

    I have some problems with the qt installer framework.

    During installation process I creat one or more windows registry keys via installer.

    "installscript.js":
    component.addOperation("GlobalConfig", "Company","Application","License/Key", "00000000-00000000");
    :

    Is there any way to delete that windows registry key during uninstallation?

    Thank you very much in advance

    1 Reply Last reply
    0
    • C Offline
      C Offline
      Camillo
      wrote on last edited by
      #2

      Dear all,
      I found a solution

      "installscript.js"
      ...
      Component.prototype.createOperations = function()
      {
      if (installer.value("os") == "win")
      {
      component.addElevatedOperation("Execute","echo do nothing","UNDOEXECUTE","cmd /C reg delete "HKEY_CURRENT_USER\Software\Company" /f")
      ...

      The echo in the line is necessary, otherwise the installer crashes.
      This seems to be a bug in the installer.
      It works quite well, now all registry entries are deleted.

      Thx

      1 Reply Last reply
      0
      • V Offline
        V Offline
        VK_vinay
        wrote on last edited by
        #3

        I need to delete registry key during UNINSTALLATION in "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\XYZ". I have tried your method without any success. Please suggest any other way to delete key.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved