Click here to get back home

How to exclude dll from cab file

 HomeNewsGroups | Search | About
 microsoft.public.smartphone.developer    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
How to exclude dll from cab file Lokesh Sharma 10-10-2007
Get Chitika Premium
Posted by Lokesh Sharma on October 10, 2007, 6:40 am
Please log in for more thread options
Hi All,
I read Alex Fienman's web blog and created sample application in
which i am using 'Windows Media Player' to play audio / video. When I create
the cab file to install the sample app. on device, it includes
1. WMPLib.dll
2. mscorlib.tlb
3. mscorlib.DLL
4. wmp.dll

other than required filed and the size of cab becomes 9.7 mb
while the size should not be more than 125 kb. When i try install this cab
on the device, the installation fails.

Can anybody suggest me how can i avoid including above 4
files in cab?




Posted by dbgrick on October 10, 2007, 9:51 am
Please log in for more thread options
If using Visual Studios to create the cab file, go to the Detected
Dependencies folder in the project. Click on the file you wish to exclude
and then open the properties for that file. Set the Exclude property to True
and rebuild your cab file.

I hope this helps.
Regards,
R. Davis
Contractor

"Lokesh Sharma" wrote:

> Hi All,
> I read Alex Fienman's web blog and created sample application in
> which i am using 'Windows Media Player' to play audio / video. When I create
> the cab file to install the sample app. on device, it includes
> 1. WMPLib.dll
> 2. mscorlib.tlb
> 3. mscorlib.DLL
> 4. wmp.dll
>
> other than required filed and the size of cab becomes 9.7 mb
> while the size should not be more than 125 kb. When i try install this cab
> on the device, the installation fails.
>
> Can anybody suggest me how can i avoid including above 4
> files in cab?
>
>
>
>

Posted by Lokesh Sharma on October 11, 2007, 2:08 am
Please log in for more thread options
Hello Mr. Davis,
Thank you for the reply.
If I exclude those files then cab will get
installed on the device but application will not run.
What i found that if I keep WMPLib.dll and
exclude all other 3 files, the application works fine.

> If using Visual Studios to create the cab file, go to the Detected
> Dependencies folder in the project. Click on the file you wish to exclude
> and then open the properties for that file. Set the Exclude property to
> True
> and rebuild your cab file.
>
> I hope this helps.
> Regards,
> R. Davis
> Contractor
>
> "Lokesh Sharma" wrote:
>
>> Hi All,
>> I read Alex Fienman's web blog and created sample application
>> in
>> which i am using 'Windows Media Player' to play audio / video. When I
>> create
>> the cab file to install the sample app. on device, it includes
>> 1. WMPLib.dll
>> 2. mscorlib.tlb
>> 3. mscorlib.DLL
>> 4. wmp.dll
>>
>> other than required filed and the size of cab becomes 9.7
>> mb
>> while the size should not be more than 125 kb. When i try install this
>> cab
>> on the device, the installation fails.
>>
>> Can anybody suggest me how can i avoid including above 4
>> files in cab?
>>
>>
>>
>>



Posted by Christopher Fairbairn on October 29, 2007, 10:07 pm
Please log in for more thread options
Hi,

> If I exclude those files then cab will get
> installed on the device but application will not run.
> What i found that if I keep WMPLib.dll and
> exclude all other 3 files, the application works fine.

This occurs due to the way the ActiveX control wrapper is probably being
generated (can you provide a reference to the article you mentioned?). By
using the desktop version of the type library importer utility etc, it is
including references to the desktop version of mscorlib etc.

So the CAB building process is correctly assumming such assemblies are
required to be deployed since they are not standard assemblies on the PDA.

You can delete them and still allow your application to run, because of how
the .NET Compact Framework works it will correctly be loading/running
against the compact framework version of mscorlib etc.

Hope this helps,
Christopher Fairbairn


Similar ThreadsPosted
How to move or delete a file marked read only or system file attributes? August 23, 2006, 7:12 pm
GPRS setup using a CAB file - How to make the cab file. June 21, 2005, 9:09 am
cab file June 6, 2005, 6:20 am
idi file June 6, 2005, 6:32 am
Cab file help October 18, 2006, 8:25 pm
File operation June 7, 2005, 11:31 pm
.sis file to .cab converter June 29, 2005, 7:53 pm
Hide file August 4, 2005, 4:45 am
Need file "psyscall.h" August 4, 2005, 9:13 am
gif file problem August 5, 2005, 5:57 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap