<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Windows Mobile Tip: Peeking inside CAB files</title>
	<atom:link href="http://www.christec.co.nz/blog/archives/61/feed" rel="self" type="application/rss+xml" />
	<link>http://www.christec.co.nz/blog/archives/61</link>
	<description>Development for a mobile world - Making a quality platform one application at a time</description>
	<lastBuildDate>Fri, 12 Mar 2010 05:38:21 -0600</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Christopher Fairbairn</title>
		<link>http://www.christec.co.nz/blog/archives/61/comment-page-1#comment-32083</link>
		<dc:creator>Christopher Fairbairn</dc:creator>
		<pubDate>Mon, 26 Oct 2009 02:57:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.christec.co.nz/blog/archives/61#comment-32083</guid>
		<description>Hi Namrata,

In theory your process should work. I haven&#039;t done exactly the same thing but have worked on a couple of projects which extract and re-package the contents of CAB files. The process is also similar to that used by Chris Tacke in the blog post I referenced within the article (http://blog.opennetcf.com/ctacke/PermaLink,guid,073453a8-3fb1-4527-8599-f980f46ea6d4.aspx).

My guess is possibly that something was missing from your merged _setup.xml which caused some of the files to fail to be extracted. How did you go about merging the two _setup.xml files into one? If you just copied one of them this would explain why the files and registry settings from the other application did not copy across.

Please feel free to contact me via christopher@christec.co.nz if you would like to discuss this further.</description>
		<content:encoded><![CDATA[<p>Hi Namrata,</p>
<p>In theory your process should work. I haven&#8217;t done exactly the same thing but have worked on a couple of projects which extract and re-package the contents of CAB files. The process is also similar to that used by Chris Tacke in the blog post I referenced within the article (<a href="http://blog.opennetcf.com/ctacke/PermaLink,guid,073453a8-3fb1-4527-8599-f980f46ea6d4.aspx)" rel="nofollow">http://blog.opennetcf.com/ctacke/PermaLink,guid,073453a8-3fb1-4527-8599-f980f46ea6d4.aspx)</a>.</p>
<p>My guess is possibly that something was missing from your merged _setup.xml which caused some of the files to fail to be extracted. How did you go about merging the two _setup.xml files into one? If you just copied one of them this would explain why the files and registry settings from the other application did not copy across.</p>
<p>Please feel free to contact me via <a href="mailto:christopher@christec.co.nz">christopher@christec.co.nz</a> if you would like to discuss this further.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Namrata</title>
		<link>http://www.christec.co.nz/blog/archives/61/comment-page-1#comment-32054</link>
		<dc:creator>Namrata</dc:creator>
		<pubDate>Sun, 25 Oct 2009 13:34:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.christec.co.nz/blog/archives/61#comment-32054</guid>
		<description>Hi! 


Thanks for the great post.. one slight detail though.. I tried to merge the _settings of 2 cabs and copied relevant files.. Sadly though, just one of them is deployed.. I have a sneaky suspicion the SMARTD~1 is to blame.. any thoughts on how to work around this?

-Namrata</description>
		<content:encoded><![CDATA[<p>Hi! </p>
<p>Thanks for the great post.. one slight detail though.. I tried to merge the _settings of 2 cabs and copied relevant files.. Sadly though, just one of them is deployed.. I have a sneaky suspicion the SMARTD~1 is to blame.. any thoughts on how to work around this?</p>
<p>-Namrata</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lak</title>
		<link>http://www.christec.co.nz/blog/archives/61/comment-page-1#comment-29072</link>
		<dc:creator>Lak</dc:creator>
		<pubDate>Wed, 05 Aug 2009 12:47:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.christec.co.nz/blog/archives/61#comment-29072</guid>
		<description>Hi, I have a little problem about cab file. 

Is any tool exist for unpack cab file on desktop?
p.s : I do not mean the uncompress.

Thanks a lot.</description>
		<content:encoded><![CDATA[<p>Hi, I have a little problem about cab file. </p>
<p>Is any tool exist for unpack cab file on desktop?<br />
p.s : I do not mean the uncompress.</p>
<p>Thanks a lot.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AD</title>
		<link>http://www.christec.co.nz/blog/archives/61/comment-page-1#comment-15614</link>
		<dc:creator>AD</dc:creator>
		<pubDate>Sat, 18 Oct 2008 16:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.christec.co.nz/blog/archives/61#comment-15614</guid>
		<description>Thanx a lot dude.

However I got very upset when you mentioned WINZIP because I am adopting a power user philosophy that goes like:

&quot;If there is a FreeWare or an OpenSource alternative there is no need to use Commercial Software.&quot;

Therefore allow me to present you with these two appies:

7-Zip 4.60 Beta
7-Zip.org - 902KB (Open Source)
http://www.filehippo.com/download_7-zip/

IZArc 3.8.1550
Ivan Zahariev - 3.55MB (Freeware)
http://www.filehippo.com/download_izarc/

I hope you like them.

Regards</description>
		<content:encoded><![CDATA[<p>Thanx a lot dude.</p>
<p>However I got very upset when you mentioned WINZIP because I am adopting a power user philosophy that goes like:</p>
<p>&#8220;If there is a FreeWare or an OpenSource alternative there is no need to use Commercial Software.&#8221;</p>
<p>Therefore allow me to present you with these two appies:</p>
<p>7-Zip 4.60 Beta<br />
7-Zip.org &#8211; 902KB (Open Source)<br />
<a href="http://www.filehippo.com/download_7-zip/" rel="nofollow">http://www.filehippo.com/download_7-zip/</a></p>
<p>IZArc 3.8.1550<br />
Ivan Zahariev &#8211; 3.55MB (Freeware)<br />
<a href="http://www.filehippo.com/download_izarc/" rel="nofollow">http://www.filehippo.com/download_izarc/</a></p>
<p>I hope you like them.</p>
<p>Regards</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Fairbairn</title>
		<link>http://www.christec.co.nz/blog/archives/61/comment-page-1#comment-4458</link>
		<dc:creator>Christopher Fairbairn</dc:creator>
		<pubDate>Fri, 29 Feb 2008 10:59:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.christec.co.nz/blog/archives/61#comment-4458</guid>
		<description>I think that documentation is desktop specific. Although the Windows CE platform shares the same CAB archive format (i.e. a way of compressing more than one file into a single file) that is about the extent of the similarities.

The structure of the files held within CAB files used to install applications is rather different between desktop and PDA. I don&#039;t believe there is a PDA equivalent of the CFFile flag discussed.</description>
		<content:encoded><![CDATA[<p>I think that documentation is desktop specific. Although the Windows CE platform shares the same CAB archive format (i.e. a way of compressing more than one file into a single file) that is about the extent of the similarities.</p>
<p>The structure of the files held within CAB files used to install applications is rather different between desktop and PDA. I don&#8217;t believe there is a PDA equivalent of the CFFile flag discussed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G.Ann</title>
		<link>http://www.christec.co.nz/blog/archives/61/comment-page-1#comment-4355</link>
		<dc:creator>G.Ann</dc:creator>
		<pubDate>Mon, 25 Feb 2008 14:26:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.christec.co.nz/blog/archives/61#comment-4355</guid>
		<description>Christopher,

You can get the SDK here: http://support.microsoft.com/kb/310618 &amp; check Cabfmt.doc. The  CFFile section of the doc discusses an &quot;attribs&quot; structure member. Note that I didn&#039;t need this feature myself, so I haven&#039;t actually tried it. Just going off what the docs say. 

Good luck!</description>
		<content:encoded><![CDATA[<p>Christopher,</p>
<p>You can get the SDK here: <a href="http://support.microsoft.com/kb/310618" rel="nofollow">http://support.microsoft.com/kb/310618</a> &amp; check Cabfmt.doc. The  CFFile section of the doc discusses an &#8220;attribs&#8221; structure member. Note that I didn&#8217;t need this feature myself, so I haven&#8217;t actually tried it. Just going off what the docs say. </p>
<p>Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Fairbairn</title>
		<link>http://www.christec.co.nz/blog/archives/61/comment-page-1#comment-4244</link>
		<dc:creator>Christopher Fairbairn</dc:creator>
		<pubDate>Wed, 20 Feb 2008 10:47:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.christec.co.nz/blog/archives/61#comment-4244</guid>
		<description>Hi Ann,

Do you have any more details (URLs for documentation etc) for how to execute a file after it is extracted? This would be a handy trick to know, and something that I wasn&#039;t aware of.

When you refer to the Cab SDK are you talking about the CAB file documentation for desktop PCs?

The CAB file format used on desktop PCs has a whole range of flags etc not supported by the simpler Windows CE CAB file format. I couldn&#039;t find a reference to a 0x40 flag in the documentation set I was looking at.

I would be interested because I have a situation at present where such a flag would be quite handy...</description>
		<content:encoded><![CDATA[<p>Hi Ann,</p>
<p>Do you have any more details (URLs for documentation etc) for how to execute a file after it is extracted? This would be a handy trick to know, and something that I wasn&#8217;t aware of.</p>
<p>When you refer to the Cab SDK are you talking about the CAB file documentation for desktop PCs?</p>
<p>The CAB file format used on desktop PCs has a whole range of flags etc not supported by the simpler Windows CE CAB file format. I couldn&#8217;t find a reference to a 0&#215;40 flag in the documentation set I was looking at.</p>
<p>I would be interested because I have a situation at present where such a flag would be quite handy&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: G.Ann</title>
		<link>http://www.christec.co.nz/blog/archives/61/comment-page-1#comment-4226</link>
		<dc:creator>G.Ann</dc:creator>
		<pubDate>Tue, 19 Feb 2008 12:58:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.christec.co.nz/blog/archives/61#comment-4226</guid>
		<description>Hi,

Just finished some CAB development of my own and so I remember off-hand that there is a flag that can be set to have a file executed after extraction. 

Don&#039;t know how you&#039;re creating your cab files, Matteoathen, but according to the docs distributed with the Cab SDK, you can set 0x40 as a CFFile attribute for that effect. - If you&#039;re hand-crafting your cabs, that is.


Ann</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Just finished some CAB development of my own and so I remember off-hand that there is a flag that can be set to have a file executed after extraction. </p>
<p>Don&#8217;t know how you&#8217;re creating your cab files, Matteoathen, but according to the docs distributed with the Cab SDK, you can set 0&#215;40 as a CFFile attribute for that effect. &#8211; If you&#8217;re hand-crafting your cabs, that is.</p>
<p>Ann</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matteoathen</title>
		<link>http://www.christec.co.nz/blog/archives/61/comment-page-1#comment-120</link>
		<dc:creator>Matteoathen</dc:creator>
		<pubDate>Tue, 14 Aug 2007 02:41:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.christec.co.nz/blog/archives/61#comment-120</guid>
		<description>Hi Christ,

First of all, thanks for the reply.

The method of my &quot;SMS listener&quot; actually using the same method as you suggested, ie.MessageInterceptor class and EnableApplicationLauncher method.

This application works under such a condition where the the Pocket PC is assumed being  not resetted or crashed.

Thanks for your kind attention.

Regards,
Matteoathen</description>
		<content:encoded><![CDATA[<p>Hi Christ,</p>
<p>First of all, thanks for the reply.</p>
<p>The method of my &#8220;SMS listener&#8221; actually using the same method as you suggested, ie.MessageInterceptor class and EnableApplicationLauncher method.</p>
<p>This application works under such a condition where the the Pocket PC is assumed being  not resetted or crashed.</p>
<p>Thanks for your kind attention.</p>
<p>Regards,<br />
Matteoathen</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Fairbairn</title>
		<link>http://www.christec.co.nz/blog/archives/61/comment-page-1#comment-118</link>
		<dc:creator>Christopher Fairbairn</dc:creator>
		<pubDate>Mon, 13 Aug 2007 11:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.christec.co.nz/blog/archives/61#comment-118</guid>
		<description>Hi Matteoathen,

To my knowledge there is no easy way to automatically launch an executable after the initial CAB installation process.

If you are comfortable developing native C code, you could write a &quot;setup.dll&quot;. A CAB file can be configured to run code within a special DLL during the installation process. You could write your setup.dll to launch your executable.

However by the sounds of it, you may need to re-think your design a little bit. For example how will your &quot;SMS listener&quot; application be launched if the user soft-resets their PDA, or if it crashes? 

If you are comfortable developing unmanaged code, you may like to investigate reworking your &quot;SMS listener&quot; application into a service dll. The operating system would then provide a standardised way to communicate with your listener, and to automatically start it when the device boots etc.

Alternativly if your SMS listener is simply responding to incomming SMS messages, have you investigated using the Application Launcher functionality to have the OS automatically run your listener application whenever an SMS is received? See the following &lt;a href=&quot;http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1653331&amp;SiteID=1&quot; rel=&quot;nofollow&quot;&gt;MSDN Forums posting&lt;/a&gt; for further details on this approach.</description>
		<content:encoded><![CDATA[<p>Hi Matteoathen,</p>
<p>To my knowledge there is no easy way to automatically launch an executable after the initial CAB installation process.</p>
<p>If you are comfortable developing native C code, you could write a &#8220;setup.dll&#8221;. A CAB file can be configured to run code within a special DLL during the installation process. You could write your setup.dll to launch your executable.</p>
<p>However by the sounds of it, you may need to re-think your design a little bit. For example how will your &#8220;SMS listener&#8221; application be launched if the user soft-resets their PDA, or if it crashes? </p>
<p>If you are comfortable developing unmanaged code, you may like to investigate reworking your &#8220;SMS listener&#8221; application into a service dll. The operating system would then provide a standardised way to communicate with your listener, and to automatically start it when the device boots etc.</p>
<p>Alternativly if your SMS listener is simply responding to incomming SMS messages, have you investigated using the Application Launcher functionality to have the OS automatically run your listener application whenever an SMS is received? See the following <a href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1653331&#038;SiteID=1" rel="nofollow">MSDN Forums posting</a> for further details on this approach.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

