monkeypushbutton
monkeypushbutton

Reputation: 196

How to make .cab file self-deleting on windows mobile app

I have my first Windows Mobile app ready for deployment (Windows Mobile 6). I have made my CABProject and made a .cab file that will install successfully. How can the .cab be made to delete itself after installation? Some things I read seem to indicate that this should be the default behavior.

Thanks

Upvotes: 1

Views: 3978

Answers (3)

user155319
user155319

Reputation:

kgiannakakis is correct that the default behavior of the wceload utility is to delete the cab file after installing, but the /nodelete flag changes this behavior.

you'll find: [HKEY_CLASSES_ROOT\cabfile\Shell\Open\Command] @="wceload.exe "%1" /nodelete"

on some devices which will cause the default behavior on that device to differ.

Upvotes: 0

kgiannakakis
kgiannakakis

Reputation: 104198

Cab files are installed using wceload utility. Deleting the cab is indeed the default behaviour.

For more advanced features see CABInstallerSDK.

Upvotes: 2

Shane Powell
Shane Powell

Reputation: 14158

CAB files are installed using the wceload utility as kgiannakakis says, but the default behavior for what happens when you run the CAB either through explorer or through actiesync install varies from device to device. Typically I've seen SmartPhone devices default to deleting the cab file. On Pocket PC's I mostly seen the CAB not being deleted.

So what I've saying is that you can't guarantee that the CAB file is deleted after install unless you arrange for your code to be calling the "wceload" utility and therefore have control over it's parameters.

Upvotes: 1

Related Questions