View Single Post
Old 06-04-2011, 02:18 AM   #9
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,423
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Thanks for the offer, calibre is fully self contained, except for the installation of an MSVC C runtime in the winsxs folder. It also does not use the registry at all. The .msi installer however does use the registry.

The first hurdle you have to cross is finding the calibre installation directory. Searching for calibre.exe and calibre-launcher.dll should be sufficient. Newer versions of the calibre installer write the installdir into HKLM\Software\calibre, but you cannot depend on that as people might be upgrading from an older release.

Next is the installation of the c runtime in the winsxs folder, the msi uses a merge module provided by Microsoft for that.

Next, you have to figure out how to add the calibre installation to the PATH, create a desktop shortcut and start menu items.

Next, you have to create the uninstaller and add an entry in add/remove programs.

Next the final screen of the installer should be able to launch calibre with properly dropped privileges.

Finally, I'd like the installer to use LZX compression or something equivalent, as calibre is downloaded *a lot* and minimizing bandwidth usage is important.

If you can figure out how to do all of that with NSIS, I'll be delighted to drop the .msi

Here's a link to the c runtime redistributable: http://www.microsoft.com/downloads/e...displaylang=en

I dont know if the exe is capable of installing in silent mode, I dont want a sub installer popping up.

To build a calibre installer, all you have to do is package up the calibre install directory, it is self contained.
kovidgoyal is offline   Reply With Quote