locked
Reduce Size of the Cab Installer RRS feed

  • Question

  • All,

    I have a Cab file that contains various resources in the form of image files,  dll's etc along with the application to be installed. The size of the Cab file has increased drastically due to a addition of more and more resource files. The problem here is that only few of the resources are required at a time depending upon the device type in which the application is installed.

    How can i reduce the size of the installed application depending upon the device in which it is installed.

     

    Tuesday, April 26, 2011 6:27 AM

Answers

  • Hi Indivangelist,

    If you are looking for the installer depend on particular device then you have to package separate - separate CAB file to get specific resources.

    While creating cab you can follow these steps for CAB compress. CAB project in VS 2005/2008 allows you to set compress option in project's properties.

    Set Compress property True.

    Refer this screen for the same.

    Screen

    Already discussed threads here

    http://social.msdn.microsoft.com/Forums/en-IE/windowsmobiledev/thread/c4a154fd-9d09-40d8-962d-f3d671b3d8fa

     

    Hope it helps


    - Pavan [MCTS - Windows Mobile 5.0] If you find my post is helpful for you then mark as a answer and vote it.
    • Proposed as answer by Jesse Jiang Thursday, April 28, 2011 3:40 AM
    • Marked as answer by Jesse Jiang Friday, May 6, 2011 2:52 AM
    Tuesday, April 26, 2011 6:59 AM
  • Hi Indivangelist ,

    For reducing size of installed application you can use Setup.dll , i.e.  When you create a  CAB  file, you need  to add an optional Setup.dll file. This enables you to perform operations before and after the installation and unistallation of your application on target devices.

    In your case these operations are nothing but removing/deletion  of  unnecessary files depends on your device type.

    For more information please see link below :

    http://msdn.microsoft.com/en-us/library/aa924308.aspx

     

    The link below shows sample to run an application immediately after installation using setup dll ,

    http://www.christec.co.nz/blog/archives/119

     

    I hope this idea might be helpful for you.

    Thanks

     

     

     

     



    Thanks, Mohsin Shaikh |Mohzz.com

    • Marked as answer by Jesse Jiang Friday, May 6, 2011 2:52 AM
    Friday, April 29, 2011 5:12 AM

All replies

  • Hi Indivangelist,

    If you are looking for the installer depend on particular device then you have to package separate - separate CAB file to get specific resources.

    While creating cab you can follow these steps for CAB compress. CAB project in VS 2005/2008 allows you to set compress option in project's properties.

    Set Compress property True.

    Refer this screen for the same.

    Screen

    Already discussed threads here

    http://social.msdn.microsoft.com/Forums/en-IE/windowsmobiledev/thread/c4a154fd-9d09-40d8-962d-f3d671b3d8fa

     

    Hope it helps


    - Pavan [MCTS - Windows Mobile 5.0] If you find my post is helpful for you then mark as a answer and vote it.
    • Proposed as answer by Jesse Jiang Thursday, April 28, 2011 3:40 AM
    • Marked as answer by Jesse Jiang Friday, May 6, 2011 2:52 AM
    Tuesday, April 26, 2011 6:59 AM
  • Hi Pavan,

    Thanks for the reply.

    Well the separate CAB concept cannot be adopted because of certain constraints . Setting the Compress option to true will only

    compress the CAB file . When the cab is finally installed the actual size grows depending upon its content so back to square one.

     

    Thanks

    Tuesday, April 26, 2011 9:41 AM
  • Hi Indivangelist ,

    For reducing size of installed application you can use Setup.dll , i.e.  When you create a  CAB  file, you need  to add an optional Setup.dll file. This enables you to perform operations before and after the installation and unistallation of your application on target devices.

    In your case these operations are nothing but removing/deletion  of  unnecessary files depends on your device type.

    For more information please see link below :

    http://msdn.microsoft.com/en-us/library/aa924308.aspx

     

    The link below shows sample to run an application immediately after installation using setup dll ,

    http://www.christec.co.nz/blog/archives/119

     

    I hope this idea might be helpful for you.

    Thanks

     

     

     

     



    Thanks, Mohsin Shaikh |Mohzz.com

    • Marked as answer by Jesse Jiang Friday, May 6, 2011 2:52 AM
    Friday, April 29, 2011 5:12 AM
  • Hello,

     

    I marked these replies as answer, if your issue have not been solved please unmark it and update more information about this issue.

     

    Best regards,

    Jesse


    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, May 6, 2011 2:53 AM