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. Qt IFW silentUpdate fails in Windows when the application is running

Qt IFW silentUpdate fails in Windows when the application is running

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
4 Posts 2 Posters 1.4k Views 1 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.
  • E Offline
    E Offline
    elendilm
    wrote on last edited by
    #1

    Qt IFW silentUpdate fails in Windows 7 when the application is already running with the error

    Unable to update components. Please stop these processes..
    

    Updating from GUI of the maintenancetool will be successful even when the application is running.

    Apparently the silentUpdate mode misses something that the GUI mode has.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      What version of QtIFW are you using ?

      Can you provide a minimal compilable example that shows the behaviour ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • E Offline
        E Offline
        elendilm
        wrote on last edited by elendilm
        #3

        IFW Version Info

        IFW Version: 3.0.1, built with Qt 5.9.0.
        Build date: Sep 14 2017
        Installer Framework SHA1: a1f5686
        

        The problem is reproducible in every way possible.

        I have uploaded the sample which can be downloaded from https://files.fm/u/wqrrppkk

        Steps to reproduce the bug

        • Create an online only installer
        • Create the repository (of packages) accessible from localhost
        • Install
        • Run the installed app.exe and leave it running. The titlebar will display "Version 1"
        • Create the repository (of packages_update) accessible from localhost
        • When app.exe is running, run maintainancetool -v --silentUpdate

        Result

        Unable to update components. Please stop these processes.. <path>/app.exe
        

        Proper Working from the GUI mode

        • Do all the above steps except running the maintainancetool -v --silentUpdate
        • Instead run the maintainancetool.exe manually by double clicking from the Explorer
        • Install the updates when app.exe is already running.

        Result
        The update is successful even when app.exe is running without affecting it ( like in linux). Newer instances of app.exe will run the newly installed update showing "Version 2" in the title-bar. This is the intended result.

        Somehow the "maintainancetool -v --silentUpdate" fails to deliver what the GUI mode delivers.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Nice !

          Did you already check the bug report system to see if it's something known ? If not, please consider opening a new report providing your example and these great instructions.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          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