Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. QtIFW errors during uninstallation "Error during uninstallation:" if addElevatedOperation without UNDO step.
Forum Updated to NodeBB v4.3 + New Features

QtIFW errors during uninstallation "Error during uninstallation:" if addElevatedOperation without UNDO step.

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
2 Posts 1 Posters 390 Views
  • 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.
  • R Offline
    R Offline
    Roman2403
    wrote on last edited by
    #1

    I have a problem, on uninstall process, i get errors with "Error during uninstallation: " with empty description.

    I think, it happens because "addElevatedOperation" must have both DO and UNDO steps(but i dont know how to add UNDO step of env. variable for uninstallation)
    DO on installation step, UNDO on uninstall. Does anyone know how to solve this problem?

    Component.prototype.createOperations = function()
    {
       component.createOperations();
       if(installer.isInstaller())
       {
        component.addElevatedOperation("EnvironmentVariable","GST_PLUGIN_PATH", gstPluginPath, persistently, false);
        component.addElevatedOperation("EnvironmentVariable","GST_PLUGIN_SYSTEM_PATH", gstPluginSystemPath, persistently, false);
        component.addElevatedOperation("EnvironmentVariable","GSTREAMER_1_0_ROOT_X86", gstreamerRootPath, persistently, false);
       }
    

    If i comment this three "addElevatedOperation", then uninstall process will be successful.

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Roman2403
      wrote on last edited by
      #2

      I found in sources of QtIFW class EnvironmentVariableOperation, that implement functions "performOperation" and "UndoOperation" for installation and uninstallation steps, but still not clear why errors appear

      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