Installation of cab was unsuccessful

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have built a CAB setup project using Visual Studio 2005. My program
automatically downloads new cab files from my website, stores them as
install.cab in Built-in Storage, and then executes them. Many times on
Windows Mobile 5 the installation will not succeed with the message
"Installation of install.cab was unsuccessful". If I keep trying again and
tapping the install.cab file in File Explorer on the handheld, sometimes
after numerous times it will finally say "Previous version will be removed...
etc." and then the install will work. Sometimes it works if I rename the
install.cab file to something else. Most times it doesn't. Sometimes it
works if I soft-reset the device before running the cab, but most of the time
it doesn't. It even worked one time when I simply changed folders in File
Explorer to a different folder, then changed back to the folder my
install.cab was in and tapped it. I can not understand how it can fail most
times or why it works other times. I'm losing my hair over this one!!!
 
Does your CAB have a cesetup.dll, if so what actions does it perform? Is
your cab compressed and code-signed?

Peter
 
No, it comes out with just the .cab file. Compress is set to False, but
it's not code-signed as I haven't figured out an easy way to do that yet.
 
How about if you rename the cab file with each version so they are unique?
Also if you are targeting WM5.0 only use the Compress option as it will
significantly reduce the size of your download.

Peter
 
I have to create at least 4 versions of each cab file because:
1. Getting the ReaderID requires different code for each of the iPAQ, Axim,
and TDS Recon in different versions from PPC2003 to WM5.0
2. The \Built-in Storage folder is called \iPAQ File Store on the older
iPAQ and that is where I'm putting my SQLCompact database.

I can't compress them all because I target WM5.0 and PPC2003.

The reason I call each download cab the same file name is because:
1. It replaces the one in there automatically and each cab is 3 MB, so I
don't want to have more than one on the device at a time. I'd have to do
some fancy-dancing to make sure it wasn't keeping multiple copies.
2. My update code looks for "install.cab" in the \Updates directory of my
application, and if it was a unique file name it wouldn't know what to look
for so I'd have to do some more fancy coding around that.

Do you think the same file name is the problem? Or do you think the code
signing is the problem? I tried signing the code but it still gives the
warning that says it is from an unknown publisher. Is there an easy way to
get rid of that?

Is there a new auto-update code framework available from MS that targets
WM5.0 applications? If there is, I can't find it. The framework I'm using
came from the Code Project a long long time ago.
Thanks.
 
Back
Top