Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 06-04-2011, 12:25 PM   #16
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: 26,154
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, use that version.

And another problem is that you have to somehow convince windows that the nsis installer based calibre isntall is an upgrade of the .msi based one, otherwise the user will end up with two entries in add/remove programs.
kovidgoyal is online now   Reply With Quote
Old 06-04-2011, 12:48 PM   #17
ymerejo42
Enthusiast
ymerejo42 began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jun 2011
Device: Leader International Impression i7
OK. I see one way of doing the C runtimes, I can have the installer throw it in their temp folder, install it if necessary, then delete it from there before it exits. I was wanting to have it download the installer if necessary, but not sure if that would work well.

The upgrade issue shouldn't be too horrible, as long as it uses the same reg keys, then it should replace whatever the .msi installer did. I'll test it on my system, though.
ymerejo42 is offline   Reply With Quote
Old 06-04-2011, 12:51 PM   #18
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: 26,154
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
It might actually be possible to install that runtime as a private assembly in the calibre installation folder. I'll look into that later today.
kovidgoyal is online now   Reply With Quote
Old 06-04-2011, 12:57 PM   #19
ymerejo42
Enthusiast
ymerejo42 began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jun 2011
Device: Leader International Impression i7
That actually might be even better, since that really would make calibre self-contained. Heck, that might even qualify as making it portable, I'd love to have it so that I could copy it plus my library to a USB key and take them with me wherever I go.
ymerejo42 is offline   Reply With Quote
Old 06-04-2011, 07:28 PM   #20
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: 26,154
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Well, I spent 5 hours on this crap, I could get the loader to load the assembly from the application folder but as soon as it loads msvcr90.dll it crashes.

And Microsoft, being the brilliant, helpful darlings that they are, released a service pack for VS 2008 which means that there seems to be no way to get debug symbols for these DLLs, since they have been superseded.

You may well ask why not use the newer dlls, the reason being that you have to have the exact version if you are trying to load from a private assembly.

I've attached the dlls to this post, just unzip into the calibre dir on a "clean" windows and see the crash for yourself. If you can figure out how to get them to work, great, otherwise lets shelve this project until python is released compiled with VS 2010 and I can switch to using it.
Attached Files
File Type: zip crt.zip (529.9 KB, 53 views)
kovidgoyal is online now   Reply With Quote
Old 06-04-2011, 07:56 PM   #21
ymerejo42
Enthusiast
ymerejo42 began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jun 2011
Device: Leader International Impression i7
Hmmm... Reading up on another website, it says you actually need 9 files. Here's the link.

Last edited by ymerejo42; 06-04-2011 at 07:56 PM. Reason: Typo
ymerejo42 is offline   Reply With Quote
Old 06-04-2011, 08:05 PM   #22
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: 26,154
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
calibre doesn't use MFC so I don't see why they would be needed.
kovidgoyal is online now   Reply With Quote
Old 06-04-2011, 08:27 PM   #23
ymerejo42
Enthusiast
ymerejo42 began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jun 2011
Device: Leader International Impression i7
Oh, OK. I just wasn't sure, I'm not much of a programmer.
ymerejo42 is offline   Reply With Quote
Old 06-04-2011, 10:51 PM   #24
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: 26,154
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I think I found a way to make it work, it involves writing a replacement for the Microsoft DLL loading functions. Just the kind of challenge I enjoy

But it will take a while, as calibre has *a lot* of dependencies and getting them all to play ball may be tricky, even impossible.

At least the hard work of decoding the DLL file format has been done: https://github.com/fancycode/MemoryModule
kovidgoyal is online now   Reply With Quote
Old 06-06-2011, 01:40 PM   #25
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: 26,154
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I got it working (next release) and while there I also reduced the number of individual (unzipped) files in the windows build of calibre by 50% which should speed up the installer significantly.
kovidgoyal is online now   Reply With Quote
Old 06-06-2011, 02:47 PM   #26
ymerejo42
Enthusiast
ymerejo42 began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jun 2011
Device: Leader International Impression i7
Sweet. I'll be looking for it, then I'll see about finishing the NSIS version of the installer.
ymerejo42 is offline   Reply With Quote
Old 06-06-2011, 03:10 PM   #27
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: 26,154
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Don't bother, with the reduction in the number of files, the msi is fast enough now.
kovidgoyal is online now   Reply With Quote
Old 06-12-2011, 01:37 PM   #28
ymerejo42
Enthusiast
ymerejo42 began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Jun 2011
Device: Leader International Impression i7
I'd still be willing to make the alternate installer if you're willing, since the .msi one still pauses for like 20 seconds while "computing required space". Not sure what that's for, it should know how much is needed versus how much is available without taking anywhere near that long. Also, from the test copies I'd made, it looks like the NSIS installer will be smaller, so that would save you some bandwidth when people download it. Also, yes, I will make sure there's an active checkbox on the GPL page.
ymerejo42 is offline   Reply With Quote
Old 06-12-2011, 02:49 PM   #29
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: 26,154
Karma: 5381911
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
I'd rather not. Switching installer techs is a big undertaking, as there are lots of little corner cases that could break. 20 seconds I am willing to live with (incidentally it takes about 5 seconds on my windows VM).
kovidgoyal is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Paid Hack Request: Photo Slideshow Hack for Kindle 3 chmreader Kindle Developer's Corner 0 05-25-2011 01:24 PM
Question about the font hack jdomingos76 Kindle Developer's Corner 2 03-17-2011 09:00 PM
Book titles hack? Time delay hack? re838uk Sony Reader 0 10-08-2009 05:29 AM
Unicode Fonts Hack question zdes Kindle Developer's Corner 1 05-07-2009 02:45 PM
Hack Attack! Esquire wants us to hack their e-paper cover TadW News 26 10-22-2008 03:51 AM


All times are GMT -4. The time now is 12:02 PM.


MobileRead.com is a privately owned, operated and funded community.