views:

180

answers:

3

Is it possible to create a single cab that will allow me to package both PocketPc and Smartphone version of Windows Mobile application? What I would like is to be able to check during installation if device is pocket pc or smartphone and then install appropriate versions.

Thanks in advance for the help.

A: 

Yes this is possible.
Have you tried it?
Are you experiencing a specific problem when you try?

Matt Lacey
Did not try it. How can this be done Matt? Is somewhere in Setup Project that I can set this up? I am not experiencing any problems (yet :) ).
Bo
A: 

I've never tried this, but Microsoft does have a sample project that demonstrates the creation of a container CAB file, which houses multiple CAB files within it. I would imagine you could add in the logic required to detect the mobile platform and execute the appropriate installer.

Multiple CAB Install @ MSDN: http://msdn.microsoft.com/en-us/library/bb158796.aspx

In practice, we've always built separate CAB files and, using the mechanisms provided by CEAppMgr, define a single "entry" in the Add/Remove Programs dialog of ActiveSync/WMDC that references our platform-specific CABs.

Another avenue would be creating a custom Setup.dll file as part of your CAB, which provides you the opportunity to perform actions before and after your CAB installation.

CBono
A: 

Hi Bo!

I have the same problem statement as one described in your question. Have you been able to do that?

Kindly do reply

Thanking you in anticipation.

The post by CBono is good place to start. There are several ways of doing it. If you are still interested please let me know (I forgot about this post and accidentally just saw your comment).
Bo