CF app, Uninstall, Font file not being deleted


N

Neville Lang

Hi all,

I have a CF app that has been working well for some years on devices using
PPC2002 up to WM5.0.

I have recently migrated it to VS2005 now sitting on a Vista 64 development
computer. My CF app is installed onto Pocket PCs via a CAB and controlled by
my MSI since there are also some EXEs that are installed on the desktop side
during the installation process.

My CustomInstaller code for devices prior to WM5.0 was controlled using the
RAPI while installation onto WM5.0 devices uses the "standard" ActiveSync
(AS) / Sync Center (SC) approach where the CABs (ARM and ARMV4) and an INI
file are placed into the AS or SC folder on the desktop side and the
installation onto the device is controlled from there.

I recently changed the installation for devices prior to WM5.0 from the RAPI
controlled approach to the AS / SC approach so that installation onto all
devices is now consistent. However, I am having a problem during the
Uninstalling process begun from the AS or Mobile Device Center. My same
uninstall code works well on WM5.0 devices but fails on the WM2003 devices.
During installation, I install a custom font file (TTF) to \Windows\Fonts on
the device side. When the user begins the uninstall process, the WM2003
devices fail to delete the TTF file, pops up a failure message and thus the
uninstaller fails altogether. This same uninstaller code works fine on WM5.0
devices - the TTF file is deleted.

Before I began to trigger the uninstaller process, I checked that my app was
not running (Start > Settings > System tab > Memory > Running Programs) on
the WM2003 device, also I soft reset it and then began the uninstaller.
However, the message still pops up that the process cannot delete the TTF
file.

Using the File Explorer on that device, I can easily delete the TTF file.

* Why can I not delete the TTF file on a WM2003 device when the same code
works fine on a WM5.0 device?
* Has anyone else had this problem and found a solution?

Regards,
Neville Lang
 
Ad

Advertisements

N

Neville Lang

Hi all,

I am reasonably sure that my problem was now due to the WM2003 Pocket PC
that I had borrowed for testing.

For some reason I found that the WM2003 Pocket PC seemed to require a soft
reset after my app was installed and before I ran the uninstaller. Once I
implemented this testing procedure the font file was deleted. This problem
did not occur on my WM5.0 Pocket PC.

Regards,
Neville Lang
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top