PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   HTC Touch Pro 2 (http://forum.ppcgeeks.com/forumdisplay.php?f=97)
-   -   Cab Making (http://forum.ppcgeeks.com/showthread.php?t=117217)

Rhodium500 04-06-2010 04:23 PM

Cab Making
 
Is it possible to make a cab install files and also delete one file on the phone? I have WinCE cab but I don't know how or if it is easy to make the cab delete a file.
I have to delete an old database file for a new program to work properly.

sanjsrik 04-06-2010 04:45 PM

Re: Cab Making
 
searched google:

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

Rhodium500 04-07-2010 09:50 AM

Re: Cab Making
 
Am I missing something. I don't see my question answered in your link.

DomSim 04-07-2010 10:06 AM

Re: Cab Making
 
you can do it with a provxml, add this to "pre XML" or "post XML" section, depending on needs, on the "cab information" page in wincecab manager
Code:

<characteristic type="FileOperation">
        <characteristic type="*full path of file to delete*" translation="install">
                <characteristic type="Delete">
                        <parm name="ForceDelete" />
                </characteristic>
        </characteristic>
</characteristic>


Rhodium500 04-07-2010 10:13 AM

Re: Cab Making
 
Thanks for the help. does this look right.
Code:

<characteristic type="FileOperation">
    <characteristic type="\Application Data\HTC\databases\forecast_cache.db" translation="install">
        <characteristic type="Delete">
            <parm name="ForceDelete" />
        </characteristic>
    </characteristic>
</characteristic>


DomSim 04-07-2010 10:49 AM

Re: Cab Making
 
looks right to me, try it out and make sure

Rhodium500 04-08-2010 03:03 PM

Re: Cab Making
 
It didn't work. What should I try now?

sebo 04-08-2010 05:01 PM

Re: Cab Making
 
from what i know that isn't possible...you have to create a SETUP.DLL in WinCE manager to delete files, and creating these DLLs isn't exactly easy either since you have to write the functions in C++

DomSim 04-08-2010 06:37 PM

Re: Cab Making
 
yes it is possible, check out my cab from the new sprint navigation thread. it does exactly this. it deletes the old preferences file before installing the new stuff. the file may be in use hence is why you cannot delete or override it. try turning off manila then installing your cab.

sebo 04-08-2010 09:09 PM

Re: Cab Making
 
you're right it is possible, just tested it..wonder it it's possible to move stuff this way? a lot easier than dealing with dlls that's for sure!


All times are GMT -4. The time now is 08:51 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0