I am trying to build an application image that updates the Fusion on a MC9090-G BSP43, and also puts a few files into the Application Directory during an OS upgrade. But I am having trouble clearing out the rest of the Application directory. The customer has devices they are migrating from Avalanche to MSP. The devices have the Avalanche enabler on them, and the files exist in the \Application\Program Files\Wavelink (they select Application on the install). I have created images with various options: CleanPS.bin; Clear Persistant Storage box checked; Created a Directory of \Application\Program Files\Wavelink as a part of my car/gar file and put blank txt files in it. I have not had any luck completely clearing out the \Application\Program Files\Wavelink folder. There are five files of 16 that will not go away. Any suggestions on how to completely clear out these folders? Before: [\Application\Program Files] [\Application\Program Files\Wavelink] [\Application\Program Files\Wavelink\Avalanche] [\Application\Program Files\Wavelink\Avalanche\Windows] 31/01/2005 08:06 12800 717D7D48 oidlite.dll 31/01/2005 08:06 9 D638AC5F model.dat 31/01/2005 08:06 654 FD397715 AS-Enabler.dat 31/01/2005 08:06 184 AC13E522 AvaInit.dat 31/01/2005 08:06 38 E250FF39 Avalanche.wle 31/01/2005 08:06 580096 F87F730C Monitor.exe 31/01/2005 08:06 15872 6DBC95DC Enabler.exe 31/01/2005 08:06 44032 167D7C72 AvaDev.dll 31/01/2005 08:07 12288 17A5AF98 AvaScan.dll 31/01/2005 08:07 61952 1B3218F2 AvaInit.exe 31/01/2005 08:07 19456 693538FC MUQuery.exe 31/01/2005 08:07 290304 C1431E7B WLUNI.dll 31/01/2005 08:07 94208 D42CD526 WLFusion.dll 31/01/2005 08:07 6144 7EB34530 AddProps.dll 31/01/2005 08:07 62464 B73FBFE1 WLWEPRot.dll 31/01/2005 08:07 16384 24DE408B WLComDlg.dll 31/01/2005 08:07 62 BD601804 Avalanche.lnk 31/01/2005 08:07 1718 367EFCC0 AvaSetup.dat 31/01/2005 08:07 394 2F34F203 AvaInit.reg [\Application\Program Files\Wavelink\Avalanche\Config] 31/01/2005 08:07 1980 5E19A7BD _AVACFG.PRF 31/01/2005 08:07 1094 94312DD8 _DEVPROP.PRF 31/01/2005 08:07 6 075BF7EC MAC.tmp 31/01/2005 08:07 341 77546D64 Avalanche.UNI 31/01/2005 08:07 341 77546D64 Avalanche.BAK 31/01/2005 08:07 27 E805E4E0 _VENDOR.PRF 31/01/2005 08:07 63 CE8CC878 _LOCAL.PRF After: [\Application\Program Files] [\Application\Program Files\Wavelink] [\Application\Program Files\Wavelink\Avalanche] 31/01/2005 08:06 580096 F87F730C Monitor.exe 31/01/2005 08:06 44032 167D7C72 AvaDev.dll 31/01/2005 08:07 290304 C1431E7B WLUNI.dll 31/01/2005 08:07 94208 D42CD526 WLFusion.dll 31/01/2005 08:07 62464 B73FBFE1 WLWEPRot.dll Thanks.
OSUpdate Package Builder - Clear Application// Expert user has replied. |
4 Replies
Marc, One thing you can try is using delete_file.exe within a standard AirBEAM package. It was part of the old AirBEAM kits which were made available here on Devcentral. I attached it to this post. You'd create an AirBEAM package that includes the delete_file.exe and puts it in some convenient place, such as \Windows or \Platform\AirBEAM. Then include an install command that launches the command with a command line argument of the file to be deleted, such as:
\Windows\delete_file.exe \Application\Startup\demo.lnk If you need to delete more than one file, then create a text file with multiple such commands (one per line), include that text file in the package, and use an install command that looks like this...
BATCH \windows\mycommand.txt This will cause AirBEAM to execute all the commands in the specified text file as the install command.
If the Avalanche enabler is running, then those files may be in use. The operating system will not allow you to delete any files that are in use. You may need to find out how to stop (or kill) the Avalanche enabler before you will be able to delete those files.
You can add Custom Options when creating the package. -#"0 9\Application\*.*" 0 – (zero) Removes READONLY attribute on all files in the \Application folder prior to updating the application partition. This may be necessary if a Gar/Car file is trying to overwrite a file that is Read-only. 9\Application\*.* - Erases the current contents of the \Application Directory
Marc, check out using File Explorer over activesyn to the device if any of these files have a Archive Attribute. ( sometimes files installed from a cabfile or othermethod have set a archive / read only attribute ) and CAR folder has trouble deleting those. i most of time ended up with manually changing the attributes and then deleting them. but there is one way to overcome this by doing it in two steps automated. first flash the default HEX Apllication folder format to wipe out the Read Only / Archive files and then in a second step flash the CAR folder with your new files ( make sure not to flash files with Read Only / Archive attributes again )