Error extracting archive. Does it support DMG with license?

Asked by David M

My "archive" is a dmg with a license agreement. Sparkle says its downloading then fails to extract. Console says

Sparkle Error: An error occurred while extracting the archive. Please try again later.

Question information

Language:
English Edit question
Status:
Answered
For:
Sparkle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Andy Matuschak (andymatuschak) said :
#1

In theory, that should still work. Try removing the license agreement; see if that fixes it. If so, you've found a bug. If that doesn't fix it, your .dmg is confusing somehow. Try .zip, see if that works.

Revision history for this message
David M (enki1711) said :
#2

In all cases it still fails. I've tried:

- Using DMGCanvas, I removed options to handle as an internet download, removed compression.
- Using DMGCanvas I removed all options including license file.
- I tried using DropDMG but always received an error hdiutil 49168.
- I tried directly using hdiutil and also received an error 49168, until I suddenly didn't.

In all cases where I was able to obtain a DMG, I am able to successfully open it and run the application within it.

Sparkle still says it has a problem extracting.

Revision history for this message
David M (enki1711) said :
#3

I've been through phases where most attempts at 'hdiutil create' result in a error 49168, and other times where it works consistently. Seems very flakey.

I found the code in Sparkle which should be attempting the unarchive, in SUDiskImageUnarchiver.m _extractDMG. I've tried to manually run the hdiutil commands that method seems to be running. Everything works for me.

How do you debug Sparkle? I haven't figured out exactly the values of all the parms your passing around.

Revision history for this message
David M (enki1711) said :
#4

I found a reference on this site about .Trashes causing problems. I created the dmg with the -scrub option, reuploaded etc. And it worked! Woohoo!

I'm on an earlier beta. I'm not sure how to tell which beta I'm on. I hadn't wanted to update especially because I didn't want to have to deal with code signing. Do you have any ideas on the 49168 problem?

Revision history for this message
David M (enki1711) said :
#5

I can't figure out how to remove the .Trashes from a dmg with license. It looks like I can't use Sparkle to update the current version of my application. Looks like I can use Sparkle to announce the update, but tell users to manually update.

Revision history for this message
Hofman (cmhofman) said :
#6

Probably Sparkle should never be looking in folders starting with ".".

Can you help with this problem?

Provide an answer of your own, or ask David M for more information if necessary.

To post a message you must log in.