/bundles/itninjaweb/img/Breadcrumb_cap_w.png
Hi,

I want to delete a particular value from a registry key like that if i have a key like test in that having various types of values like string ,dword, multistring then i need to delete only that dword value what i need to do..

i knw that hw to delete the registry key..using batch

i want to delete only the dword value in that test key but not the entire key using only batch file....

can u tell me ..where i can get the related code for that
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
Have you tried RemoveRegistry table?
Answered 06/27/2011 by: murali.bhat
Purple Belt

Please log in to comment
0
hi murali,

i'm trying to write a CA using to remove a registry key value after the application is installed so that's why i required the code in the batch script...

i knw hw to remove a reg key using batch but i req i need to remove only a value but not the whole reg key...
Answered 06/27/2011 by: hari4243
Purple Belt

Please log in to comment
0
try reg delete < full registry key value>

for example,
if you want to delete HKLM\Software\example\test

a dword key VERSION REG_DWORD

give as


REG DELETE HKEY_LOCAL_MACHINE\SOFTWARE\example\test /V VERSION

it will delete any type of registry value.

if u want to create a custom action u can create a batch file and include it
Answered 06/27/2011 by: kpremchander
Yellow Belt

Please log in to comment
0
Hi Hari - Can you not use RemoveRegistry table instead of batch file or CA?
Answered 06/27/2011 by: murali.bhat
Purple Belt

Please log in to comment
-2
Thank you murali and prem...for giving quick reply ....


i got that how to remove a regvalue...
Answered 06/28/2011 by: hari4243
Purple Belt

Please log in to comment