[Qt-interest] Creating installer for Qt 4.5 based applicationonwindows
David Ching
dc at remove-this.dcsoft.com
Wed Nov 11 03:29:37 CET 2009
"Ross Bencina" <rossb-lists at audiomulch.com> wrote in message
news:hdbrgt$vk$1 at eple.troll.no...
> Hi Manish
>
> I use Inno Setup, its free, have been using it for a long time (5+
> years). It works great.
>
> I install my App exe and all the Qt dlls in the application directory.
>
> I also just install a copy of the MSVC runtime folder into the App
> directory -- which works so
> long as you're not using any qt plugin DLLs (because they go in separate
> folders and can't "see"
> the runtime in the App dir, which leads to breakage on machines which
> don't already have the
> runtime installed in a system wide location. hint: your dev machine has
> the runtime installed in
> a system wide location).
>
> If you're using Qt plugins, your options are:
> A. rebuild Qt dlls to statically link the plugins you need
> B. install the MSVC libraries using the ms redist installer (possibly you
> can do this with Inno, not sure).
> I recommend option B (so does MS) but I actually do option A at present
> (for the sqlite plugin).
If you build the plugins with
CONFIG -+ EMBED_MANIFEST_DLL
then the local copy of MSVC runtime will work even with plug-ins:
http://doc.trolltech.com/4.5/deployment-windows.html
-- David
More information about the Qt-interest-old
mailing list