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. How to ignore vc_redist error 1638?
Forum Updated to NodeBB v4.3 + New Features

How to ignore vc_redist error 1638?

Scheduled Pinned Locked Moved Solved Installation and Deployment
2 Posts 1 Posters 1.0k 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.
  • G Offline
    G Offline
    g1ennr
    wrote on last edited by g1ennr
    #1

    Using QIFW 4.8 for Windows when attempting to install a vc_redist an error 1638 is produced if the machine already has a more recent version installed and this message is displayed in an error box that requires the user to click one of the buttons.

    The documentation and other messages on this forum seem to indicate that the message box can be automatically dismissed by some combination of installer.autoAcceptMessageBoxes() or installer.autoRejectMessageBoxes() and installer.setMessageBoxAutomaticAnswer(...). However I can't get this to work.

    The message box produced by the installer has "Retry", "Ignore" and "Cancel" options so I figure that one of the following would suffice since they are the only message box types that have these three options.

        installer.setMessageBoxAutomaticAnswer("installationErrorWithRetry", QMessageBox.Ignore);
        installer.setMessageBoxAutomaticAnswer("stopProcessesForUpdates", QMessageBox.Ignore);
    

    however that doesn't seem to have any effect.

    Adding installer.autoRejectMessageBoxes() causes cancellation and rollback while adding installer.autoAcceptMessageBoxes() seems to cause automatic activation of "Retry" and it gets stuck in a loop that can only be exited by clicking cancel, which rolls back the installation.

    What am I doing wrong here? And how can this be made to work?

    1 Reply Last reply
    1
    • G Offline
      G Offline
      g1ennr
      wrote on last edited by
      #2

      It turns out that the required name is not listed in the documentation. The following gets the expected result:

          installer.setMessageBoxAutomaticAnswer("installationErrorWithCancel", QMessageBox.Ignore);
      

      I discovered this by inspecting the source and knowing how it works I see that the clue for this is this line in the log:

      installationErrorWithCancel : Installer Error : Error during installation process (com.microsoft.vcredist):
      
      1 Reply Last reply
      1
      • G g1ennr has marked this topic as solved on

      • Login

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