Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Registry library - DeleteSubKey not working


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-22-2008, 08:57 AM
Newbie
 
Join Date: Jan 2008
Posts: 9
Default Registry library - DeleteSubKey not working

According to my tests there is problem in registry library because
DeleteSubKey and DeleteSubKeyTree are doing nothing
(no delete but no error posted )
I received same result on my HTC Tytn II (WM5 - CF2) and
HP iPAQ 614 (WM6 - CF2).

Sub App_Start
reg.New1
reg.RootKey(reg.rtCurrentUser)
ErrorLabel(errcreate)
reg.CreateSubKey("Software","My Applicaton")
Msgbox("The key was created.")
ErrorLabel(errdelete)
reg.DeleteSubKey("Software","My Applicaton")
Msgbox("After DeleteSubKey")
reg.DeleteSubKeyTree("Software","My Applicaton")
Msgbox("After DeleteSubKeytree")
ErrorLabel(errdeletenonexsist)
reg.DeleteSubKey("Software","My xxx")
Msgbox("E N D of test")
Return
errcreate:
Msgbox("Created - err")
Return
errdelete:
Msgbox("Delete - err")
Return
errdeletenonexsist:
Msgbox("Delete - not exist")
Return
End Sub

Please let me know if I am doing something wrong !
I need a solution (workaround) for my ongoing project.

Reply With Quote
  #2 (permalink)  
Old 09-23-2008, 08:28 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 4,531
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default

I've checked your code and it works fine, Software / My Application is deleted.
It is probably a security restriction on your devices (which may require a signed application to delete registry keys).
Reply With Quote
  #3 (permalink)  
Old 09-23-2008, 09:12 PM
Newbie
 
Join Date: Jan 2008
Posts: 9
Default

Erel

It is strange that I can create subkeys without any problem but deleteing of that keys is not possible on my devices. Also I can create and delete subkeys and values using CeRegEditor. I am not familiar with ”signed application” e.g. how to make it.
I am wondering is there any possibility to overcome this problem by using door library.
In previous post I forgot to mention that I’m using B4PPC version 6.01.

Regards
Reply With Quote
  #4 (permalink)  
Old 02-09-2010, 12:32 AM
Newbie
 
Join Date: Jun 2009
Posts: 7
Awards Showcase
Beta Tester 
Total Awards: 1
Default

I'm using b4PPC 6.80 and have similar problem.

A Key
A Sub Key 1
A Sub Key 2
A Key Value 1
A Key Value 2

DeleteSubkeyTree ("", A Key) can delete A sub Key 1 and 2, but A Key Value 1 and 2 are not deleted.

To make sure the deletion, I used it like below, but no luck as well.

DeleteSubkeyTree ("", A Key)
DeleteSubkey ("", A Key)

Any checking and help please.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
WM6.1 Backlight Timeout (Registry) digitaldon37 Open Source Projects 3 11-20-2008 05:23 PM
Checking if registry key exists? N1c0_ds Questions & Help Needed 3 10-21-2008 06:30 AM
Lettura del registry Raytracer Italian Forum 9 04-19-2008 02:03 PM
NullReference error with Registry alfcen Questions & Help Needed 10 04-09-2008 01:50 AM
registry bdiscount Questions & Help Needed 4 05-11-2007 03:29 PM


All times are GMT. The time now is 08:52 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0