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 installer framework: installer crashes when trying to use controlscript
Forum Updated to NodeBB v4.3 + New Features

Qt installer framework: installer crashes when trying to use controlscript

Scheduled Pinned Locked Moved Unsolved Installation and Deployment
3 Posts 2 Posters 55 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.
  • O Offline
    O Offline
    OliverLong
    wrote last edited by
    #1

    I am working on the installer for my Qt program and am trying to use the controlscript feature to remove unnecessary pages from the installer and uninstaller. When I add the tag

        <ControlScript>scripts/install.qs</ControlScript>
    

    to my config.xml file, the binary creator throws no errors, but creates an installer that crashes on start. If I run the installer, a powershell window flashes, and disappears. This happens regardless of the contents of the script, or whether the script file even exists in the project. If I remove the ControlScript tag, the installer works as normal. What can I do to make the ControlScript tag work?

    jsulmJ 1 Reply Last reply
    0
    • O OliverLong

      I am working on the installer for my Qt program and am trying to use the controlscript feature to remove unnecessary pages from the installer and uninstaller. When I add the tag

          <ControlScript>scripts/install.qs</ControlScript>
      

      to my config.xml file, the binary creator throws no errors, but creates an installer that crashes on start. If I run the installer, a powershell window flashes, and disappears. This happens regardless of the contents of the script, or whether the script file even exists in the project. If I remove the ControlScript tag, the installer works as normal. What can I do to make the ControlScript tag work?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote last edited by
      #2

      @OliverLong Start the installer from a terminal to see whether it prints any warnings/errors

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • O Offline
        O Offline
        OliverLong
        wrote last edited by OliverLong
        #3

        Running my installer from the command line works as normal without a controlscript. When I run my installer with control script, I get no response and return to the terminal after a few seconds. A new window does not even flash if I use the broken installer program from the terminal.

        I should note that for the first time after compilation, the terminal program takes a few seconds to do nothing. Subsequent runs from the command line exit immediately. No files are generated anywhere.

        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