CAB wont install

J

Jimmy

Hey

Ive made an application that transfers a file from a web server to my Pocket
PC. In my application i use WebRequest and GetResponseStream to download the
file. I then put the file into a memorystream before i write it to a file on
my Pocket PC. I test for the length of the file through the whole process
everytime i do anything, and the file size is exactly the same, so im pretty
sure that the file gets transferred correctly.

Now, everytime i try to install the CAB file, it says:

Setup Failed:
My Company MyApp was not installed successfully. Please run setup again.

Whats happening?

Ok, i tried to download a simple GIF picture to the PDA instead and
everything works fine.
If i copy the CAB file in my Windows Explorer on my desktop to the PPC
through ActiveSync i can install the exact same CAB file without any
problems.

Whats happening?

Does ActiveSync make som kind of conversion of the file, or something, and
if it does, how can i make the same conversion from my PDA application?
 
R

Richard Thombs

Is the cab file for a different application? The cab installation will
fail for sure if the app you are trying to install is already running.
 
J

Jimmy

Richard Thombs said:
Is the cab file for a different application? The cab installation will
fail for sure if the app you are trying to install is already running.

Nope. The CAB file is made from VS, and i upload it manually to a web page.
The PPC app. then downloads the CAB file to the Temp folder on the PPC, and
thats it.

Afterwards i manually try to install the CAB file on the PPC, and all app.
are shut down. So no app. are running.

Thanks for your help so far. This is really getting to my nerves, hehe...


Jimmy
 
R

Richard Thombs

Hmm, I have just finished writing an AutoUpdate web service and client
library to allow you to keep Compact Framework applications up to date,
and it uses the same method to pull data from the web server.

I was thinking of releasing the code anyway, would you like a copy? Maybe
it will give some clues. I hope it doesn't also break :)

Cheers,

Richard.
 
J

Jimmy

Richard Thombs said:
Hmm, I have just finished writing an AutoUpdate web service and client
library to allow you to keep Compact Framework applications up to date,
and it uses the same method to pull data from the web server.

I was thinking of releasing the code anyway, would you like a copy? Maybe
it will give some clues. I hope it doesn't also break :)

I would like that very much. Sent you an email with my address :)


Jimmy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top