From: Trevor on
Does anyone know how to extract the application title from a CAB file? For
example, the Microsoft .NET CF CAB file has the application title "Microsoft
..NET CF 3.5". The reason I am asking is because the UnInstall CSP requires
the application name instead of the path to the CAB file to uninstall a
program. How can a program figure out the name of an application from the
CAB file?


From: Peter Foot on
It doesn't completely answer your question but you can get a list of
packages installed using
<wap-provisioningdoc><characteristic-query
type=\"UnInstall\"/></wap-provisioningdoc>

Once the package is installed I don't think there is any mapping stored
between the original cab file name and the package name.

Peter

--
Peter Foot
Microsoft Device Application Development MVP
peterfoot.net | appamundi.com | inthehand.com
APPA Mundi Ltd - Software Solutions for a Mobile World
In The Hand Ltd - .NET Components for Mobility

"Trevor" <trevor(a)fakeaddress.com> wrote in message
news:%23ABqdcZ7IHA.3724(a)TK2MSFTNGP03.phx.gbl...
> Does anyone know how to extract the application title from a CAB file?
> For example, the Microsoft .NET CF CAB file has the application title
> "Microsoft .NET CF 3.5". The reason I am asking is because the UnInstall
> CSP requires the application name instead of the path to the CAB file to
> uninstall a program. How can a program figure out the name of an
> application from the CAB file?
>

From: write2nishi on
On Jul 24, 7:11 pm, "Trevor" <tre...(a)fakeaddress.com> wrote:
> Does anyone know how to extract the application title from a CAB file?  For
> example, the Microsoft .NET CF CAB file has the application title "Microsoft
> .NET CF 3.5".  The reason I am asking is because the UnInstall CSP requires
> the application name instead of the path to the CAB file to uninstall a
> program.  How can a program figure out the name of an application from the
> CAB file?

Does any one know, How to get the application name from the _setup.xml
file which is embedded in the cab file.?

Thanks.
From: Christopher Fairbairn [MVP] on
Hi,

<write2nishi(a)gmail.com> wrote in message
news:78e61586-bcdd-4dfd-8be7-70699a89b906(a)p31g2000prf.googlegroups.com...
>Does any one know, How to get the application name from the _setup.xml
> file which is embedded in the cab file.?

Are you talking about the "AppName" parameter i.e.

<parm name="AppName" value="Microsoft .NET CF 2.0" />

Assuming you can extract the _setup.xml file you should be able to use your
favourite XML parser library to extract this attribute value.

As for the format of the CAB archive that you need to extract _setup.xml
from take a look at the "[MS-CAB]: Cabinet File Format" documentation
available at
http://msdn.microsoft.com/en-us/library/cc483132(EXCHG.80).aspx. Be aware if
you need to support arbitary CAB files that some older files don't use an
XML based format.

Are we able to take a step back for a second. Why do you need to know the
app name of an arbitary CAB file?

Hope this helps,
Christopher Fairbairn


From: Nishith Jain Nishith on


"Christopher Fairbairn [MVP]" wrote:

> Hi,
>
> <write2nishi(a)gmail.com> wrote in message
> news:78e61586-bcdd-4dfd-8be7-70699a89b906(a)p31g2000prf.googlegroups.com...
> >Does any one know, How to get the application name from the _setup.xml
> > file which is embedded in the cab file.?
>
> Are you talking about the "AppName" parameter i.e.
>
> <parm name="AppName" value="Microsoft .NET CF 2.0" />
>
> Assuming you can extract the _setup.xml file you should be able to use your
> favourite XML parser library to extract this attribute value.
>
> As for the format of the CAB archive that you need to extract _setup.xml
> from take a look at the "[MS-CAB]: Cabinet File Format" documentation
> available at
> http://msdn.microsoft.com/en-us/library/cc483132(EXCHG.80).aspx. Be aware if
> you need to support arbitary CAB files that some older files don't use an
> XML based format.
>
> Are we able to take a step back for a second. Why do you need to know the
> app name of an arbitary CAB file?
>
> Hope this helps,
> Christopher Fairbairn
>
>
>