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. QIF --silentUpdate not doing updates outside of Qt Creator
Forum Updated to NodeBB v4.3 + New Features

QIF --silentUpdate not doing updates outside of Qt Creator

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

    Hello, trying to update application packaged with Qt installer framework but silentupdate doesn't want to work when I am launching the application normally:

    QString updaterPath = QDir::toNativeSeparators(workDir.absoluteFilePath("RezEco-dezinstalare.exe"));
    updaterPath = "\"" + updaterPath + "\""; 
    QProcess process;
    process.start(updaterPath, QStringList() << "--silentUpdate");
    process.waitForFinished();
    

    Doesn't return any error, but doesn't the update either from the application. Only when I try and run the application from Qt Creator the updater works.
    I set updaterPath to the exact path of the executable where the application is installed.
    process.startDetached(updaterPath, QStringList() << "--silentUpdate") has the same behaviour.
    Any ideeas?
    Platform Windows 10, x64, Qt 5.12.6 with MSVC2017 x32 compiler.

    1 Reply Last reply
    0
    • A Offline
      A Offline
      adutzu89
      wrote on last edited by
      #2

      I added verbose to the updater and get the following:

      [54] Unable to update components. Please stop these processes: ("C:/Users/Verban Adrian/RezEco/QtWebEngineProcess.exe", "C:/Users/Verban Adrian/RezEco/RezEco.exe") and try again.

      Now I understand why it works from inside Qt Creator, since it's not the same binary which get's updated. But on the other hand, using the updater UI tool updates the application even if it's opened.

      So, then, how do I use the option --silentUpdate in order to update an application?

      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