Windows Mobile 5.0 pocket PC Uninstaller

K

kc.reddy.2000

Hi Guys,

I created an MSI for windows mobile 5.0 pocket pc and Installation
works like a charm.But when I uninstall My application from the
desktop, it removes the files added on the desktop and it does not
remove files added to the mobile.So I went to Remove programs on PDA
and clicked on remove its showing me message "Error <Health>
application was not completely removed.Do you want to remove it from
the installed programs" and when i click on Yes, my application is not
listed in Remove Programs but the Installation Directory still exists
on the PDA and I have to delete the folder manually and the
application is still in Programs menu on PDA. When user is trying to
install application on PDA next or second time, its creating Health
and Health1 and Health2 for every installation on the PDA and Programs
menu in PDA is looking crap with the increments of my application, i
can see 10 instances of my application in Programs menu on PDA with
Health, Health1,Health2............. Health10.

Please help me on how to remove my application from PDA when user
clicks on Remove programs so it should delete the folder it created on
installation and it should remove my application from Programs menu on
PDA.

Thanks for all your help.

Cheers

Chandrra
 
K

kc.reddy.2000

Hi Paul,

I soft reset the device and tried as well but I still the same error.

Do i need to write any code for uninstalling, when the user clicks on
Remove Programs menu from the PDA.

Cheers

Chandra
 
K

kc.reddy.2000

Hi Paul,

During Installation time, I am Creating a Folder during installion
time on PDA in windows directory called Config and it contains a
single file.

I realised that becoz of this folder which i created in windows
directory, its not allowing me to uninstall my application. Can you
please tell me, what to do as I need to have that folder in Windows
directory on PDA.

Awaiting your reply guys.

Chandra
 
P

Paul G. Tobey [eMVP]

What? The fact that the file is created prevents the uninstall from
working? Maybe you should remove the file on uninstall?

Paul T.
 
K

kc.reddy.2000

Thanks paul,

how can i do that programatically and what is the event which gets
fired when the user clicks on Remove Programs menu on PDA

If possible can u send me sample code

Cheers

Chandra
 
K

kc.reddy.2000

Hi,

Thanks for your reply.Can you point me any sample code or article
regarding how to write custom installer DLL for this scenario and in
what language can we write.

Thanks once again

Cheers
 
K

kc.reddy.2000

Hi,

Thanks for your reply. But how can i delete the folder, which i
created during the installation from the device. I know I need to code
it from Setup.dll in Uninstall_Init()

Can u provide me code of how to delete from devices \\windows\config
folder

And can you please tell me a way, how can i remove read only
properties for Detected Dependencies in Smart Device cab project like
all the dll's which accompany my application.

Thanks

Chandra
 
G

Guest

The DeleteFile API.

::DeleteFile(_T(\\Windows\\Config\\MyFile.blah));

If it's read-only, use SetFileAttributes to change it.
 
K

kc.reddy.2000

Hi,

Thanks for your reply. But how can i delete the folder, which i
created during the installation from the device. I know I need to code
it from Setup.dll in Uninstall_Init()

Can u provide me code of how to delete from devices \\windows\config
folder

And can you please tell me a way, how can i remove read only
properties for Detected Dependencies in Smart Device cab project like
all the dll's which accompany my application.

Thanks

Chandra
 

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