Qt installer framework: installer crashes when trying to use controlscript
-
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?
-
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?
@OliverLong Start the installer from a terminal to see whether it prints any warnings/errors
-
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.