drscouse Posted September 28, 2005 Posted September 28, 2005 Im trying to get a reg key deleted using RunOnceEx, but I keep getting prompted for confirmation, despit the /f switch...REG ADD %KEY%\022 /V 01 /D "REG DELETE \"HKEY_CURRENT_USER\Software\VicMan Software\" /f" /fIve followed some guides for allowing the use of extra quotes in such instructions from http://unattended.msfn.org/intermediate/me...s/runonceex.htm which I have implemented successfully for other instances.However, it seems to be ignoring the /fDriving me nuts!!!Thanks
drscouse Posted September 28, 2005 Author Posted September 28, 2005 lol.. yet again fooled by its simplicity...sticking a - infront of the regkey in reg file, removes it!!!I can delete it and import it all in the same reg file!!!
Acheron Posted September 28, 2005 Posted September 28, 2005 (edited) Im trying to get a reg key deleted using RunOnceEx, but I keep getting prompted for confirmation, despit the /f switch...REG ADD %KEY%\022 /V 01 /D "REG DELETE \"HKEY_CURRENT_USER\Software\VicMan Software\" /f" /fIve followed some guides for allowing the use of extra quotes in such instructions from http://unattended.msfn.org/intermediate/me...s/runonceex.htm which I have implemented successfully for other instances.However, it seems to be ignoring the /fDriving me nuts!!!Thanks<{POST_SNAPBACK}>Meaby you should use REG DELETE instead of REG ADD So it would be like REG DELETE /VE /D "HKEY_CURRENT_USER\Software\VicMan Software" /fIf you would like this key get run by RunOnceEx you can use the following:REG ADD %KEY%\022 /V 01 /D ^"REG DELETE /VE /D \"HKEY_CURRENT_USER\Software\VicMan Software\" /f\"^" /fBy using the ESCAPE Character Windows will process the quotes as a regular expression. Please report if this works Edited September 28, 2005 by hp38guser
drscouse Posted September 28, 2005 Author Posted September 28, 2005 Meaby you should use REG DELETE instead of REG ADDYou have done the same hereREG ADD %KEY%\022 /V 01 /D ^"REG DELETE????"REG DELETE \"HKEY_CURRENT_USER\Software\VicMan Software"This is the line that would be entered into the ROE registry, and should delete the regkey... but it wasnt...As I was applying reg settings for my Ua installed apps, it is easier to simply remove the key with the [-hkey...] syntax, and then import the new settings, from the same regfile.. easy peasy!!!I did not know about the ^ key, only putting / before the quotes which you wanted to show... as per instructions in the link... I will test that out at some point... but Im happy with the method I have now.. its simple!!!Thanks for your help...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now