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. How to sign maintenancetool.exe ? [Qt Installer Framework]
Qt 6.11 is out! See what's new in the release blog

How to sign maintenancetool.exe ? [Qt Installer Framework]

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 964 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.
  • N Offline
    N Offline
    nen777w
    wrote on last edited by
    #1

    Is exit way to sign maintenancetool.exe generated by Qt Installer?
    I looked in the documentation and do not found any mention about it.

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      See https://bugreports.qt.io/projects/QTIFW/issues/QTIFW-1482?filter=allissues it seems to contain an answer.

      (Z(:^

      1 Reply Last reply
      1
      • N Offline
        N Offline
        nen777w
        wrote on last edited by nen777w
        #3

        Probably I do not catch something, because it's not working.
        What I do:
        I have the offline installer, so:

        1. copy with renaming QtIFW-4.1.0/bin/installerbase.exe to my
          packages/com.project.root/data/maintenancetool.exe
        2. sign the packages/com.project.root/data/maintenancetool.exe
        3. at to installer script:
          packages/com.project.root/meta/installscript.qs
          the following lines:
        Component.prototype.onInstallationStarted = function()
        {
        	if (component.updateRequested() || component.installationRequested()) {
                if (installer.value("os") == "win") {
                    component.installerbaseBinaryPath = "@TargetDir@/maintenancetool.exe";
        			installer.setInstallerBaseBinary(component.installerbaseBinaryPath);        
                }
            }
        }
        
        
        1. Create an installer with binarycreator.exe

        Installed it for the test, and as a result, the maintencetool.exe is not signed and it's not the same file as installerbase.exe.

        I.E. QTIFW rewrote this file with a self file version.
        What I missed?

        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