How to create .msi installer for a Qt project
-
@dporobic
I think you will find this is not possible/advisable. https://stackoverflow.com/questions/48989794/create-msi-installer-with-qt-installer-frameworkIf you are not aware, Qt stuff is usually installed/deployed with
linuxdeployqt
orwindeployqt
. -
Not sure what you say it's not possible/advisable? The link you have posted mentions Wix for that use case.
I use linuxdeployqt and macdeployqt for my Project but I haven't used it for Windows yet.
Not sure what you say it's not possible/advisable?
I say that because I did some Googling for
qt project msi installer
. And because that accepted solution statesQt installer framework doesn't provide creating of MSI installer. For MSIs you should use WiX for example.
And because I have seen quite a number of questions here about Qt deployment, and not one of them mentioned MSI. And because when I used MSI installer it was from Visual Studio and was tied very much to Visual Studio, its languages and frameworks.
So those are my reasons.
The link you have posted mentions Wix for that use case.
So use WiX if you wish.
I use linuxdeployqt and macdeployqt for my Project but I haven't used it for Windows yet.
But you ask to create an MSI installer for Windows? I'm sorry, perhaps I don't understand.
-
Not sure what you say it's not possible/advisable?
I say that because I did some Googling for
qt project msi installer
. And because that accepted solution statesQt installer framework doesn't provide creating of MSI installer. For MSIs you should use WiX for example.
And because I have seen quite a number of questions here about Qt deployment, and not one of them mentioned MSI. And because when I used MSI installer it was from Visual Studio and was tied very much to Visual Studio, its languages and frameworks.
So those are my reasons.
The link you have posted mentions Wix for that use case.
So use WiX if you wish.
I use linuxdeployqt and macdeployqt for my Project but I haven't used it for Windows yet.
But you ask to create an MSI installer for Windows? I'm sorry, perhaps I don't understand.
@JonB The fact that Qt Installer Framework doesn't spit out MSI's doesn't say much about it being unadvisable to make MSI's. If anything, it just says a lot about using QIF being unadvisable. There's no reason you need to use QIF to make an installer for a Qt project, and MSI's are the native package format on Windows that are super useful for automated deployments through stuff like Active Directory. Doing an automated install with a QIF installer is a massive pain in the neck, and there is no reason to subject your users to it.
-
@JonB The fact that Qt Installer Framework doesn't spit out MSI's doesn't say much about it being unadvisable to make MSI's. If anything, it just says a lot about using QIF being unadvisable. There's no reason you need to use QIF to make an installer for a Qt project, and MSI's are the native package format on Windows that are super useful for automated deployments through stuff like Active Directory. Doing an automated install with a QIF installer is a massive pain in the neck, and there is no reason to subject your users to it.
-
I'm new to this topic too but as @wrosecrans says, having an MSI package seems to help automate deployment and in that the context it was brought up by my users. I'm looking for guides or tutorials on how to do it with Qt. If there is no one with experience on that field here, well, then I need to look elsewhere.
-
@dporobic , I used the Qbs to create the msi installers by Wix utility. The Qbs has the wix module for that.
-
Hi,
A quick search turns the Qbs wix module documentation.