srhartone
Wed Dec 05 10:23:01 PST 2007
I just re-read one of your messages. You are trying to get an application to
update itself by running an updated CAB? I must say, I'm not sure if this
should work as I never update in this way. You are better off writing a
helper app to do this that is called from the application that needs
updating. Even if an application is running, executing wceload will kill it
and uninstall it before installing the new app. But I wouldn't fire this off
in the application itself. This is probably why you are experiencing issues.
--
Simon Hart
Visual Developer - Device Application Development MVP
http://simonrhart.blogspot.com
"tosso" wrote:
> Thank you for your reply.
> The error message is in swedish but if I translate it to english it will be
> "the ... install was unsuccessfull" with no error code.
> Best regards
> hoa
>
> "Simon Hart [MVP]" wrote:
>
> > What error do you get? Does it tell you something like: "the ... install was
> > unsuccessful" or something along those lines..or are you getting error
> > codes/messages?
> >
> > You should be able to upgrade an existing app and wceload should prompt you
> > as to whether you want to continue or not.
> >
> > I recomend not using the /silent switch because wceload doesn't let you know
> > wnaything or seem to default to "yes" if any prompts need to be displayed.
> > --
> > Simon Hart
> > Visual Developer - Device Application Development MVP
> >
http://simonrhart.blogspot.com
> >
> >
> > "tosso" wrote:
> >
> > > Thank you for replying..
> > > when i ran in /silent mode nothing happens. When i ran wceload without any
> > > arguments except the path to the cab file, the installation runs but the
> > > install fails.
> > > The thing is that I want to replace the current installtion of the
> > > application with the new one. The current application launch the cab file
> > > that will replace the application with new one. Is that the cause of error
> > > that it's not possible to install application that allready is running? But
> > > then it doesn't seem it couldn't because with i manually click on the cab
> > > file it does install correctly.
> > >
> > > Sorry for my bad english. I hope you guys understand what i'm saying.
> > >
> > > Best regards
> > > hoa
> > >
> > > "Simon Hart [MVP]" wrote:
> > >
> > > > Replace /noui with /silent for Windows Mobile 5.
> > > > --
> > > > Simon Hart
> > > > Visual Developer - Device Application Development MVP
> > > >
http://simonrhart.blogspot.com
> > > >
> > > >
> > > > "tosso" wrote:
> > > >
> > > > > Hello,
> > > > > I'm trying to use wceload without any success. Nothing happens. I use
> > > > > following code in c# to intiate silient install on my windows mobile 5
> > > > > device.
> > > > >
> > > > > Process p = Process.Start("\\windows\\wceload.exe","/delete 1 /noui
> > > > > \\program\\donwload.cab");
> > > > > p.WaitForExit();
> > > > >
> > > > > The wceload does not exist in windows directory as well... very strange.
> > > > >
> > > > > regards
> > > > > hoa