Thehandyman1957 Posted June 20, 2019 Posted June 20, 2019 I have a problematic program that only gets fixed if I delete the registry file it creates. Is there a way to auto delete the reg file on boot up so that everytime the program see's the empty registry it will simply recreate the registry file? Please note, that I have success if I do it manually but it is a pain in the ars to do this every time.
3s-gtech Posted June 20, 2019 Posted June 20, 2019 Group Policy Preferences can do this with ease, or a simple batch file with reg delete keyname - that’s if the entry is in the registry itself. You say a registry file; do you mean key or is it something like a .dat?
Thehandyman1957 Posted June 20, 2019 Author Posted June 20, 2019 (edited) I have never used any of the things you talk about but I'm not completely computer illiterate, so I could follow instructions if given. Here is a screen shot of the file I would like to auto delete "Glasswire" and all it's contents. Edited June 20, 2019 by Thehandyman1957
DJ-1701 Posted June 21, 2019 Posted June 21, 2019 Odd why that would be causing an issue. As it looks like this is happening on your own personal computer given the look of the screenshots, you should be able to do that with the following method. In the registry, go to Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run and create a new String with a Name of Cleanup Glassware, and Data of REG DELETE HKEY_CURRENT_USER\Software\GlassWire 1
Thehandyman1957 Posted June 21, 2019 Author Posted June 21, 2019 (edited) Well that works, kinda. By that I mean, it does it, but it want's a confirmation upon boot up. Is there a way to make it just do it automatically without any input from me? The reason I ask, is because Glasswire is also an auto boot up software and I would like the registry clean up done before Glasswire starts. Or, perhaps have the registry clean up upon shut down so that when it boots it's already gone. Edited June 21, 2019 by Thehandyman1957
Arthur Posted June 21, 2019 Posted June 21, 2019 (edited) @DJ-1701 Would the following be worth doing so REG doesn't ask for confirmation? In the registry, go to Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run and create a new String with a Name of Cleanup Glassware, and Data of REG DELETE HKEY_CURRENT_USER\Software\GlassWire [color="#FF0000"]/F[/color] If you want the registry key to be deleted during the next boot up only, use the 'RunOnce' key instead. Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce @Thehandyman1957. If you press Y does the registry key get deleted? If so, just add /F onto the REG DELETE command posted by DJ-1701. Edited June 21, 2019 by Arthur 2
DJ-1701 Posted June 21, 2019 Posted June 21, 2019 @Arthur, as usual is correct. His change should do what you want.
Thehandyman1957 Posted June 21, 2019 Author Posted June 21, 2019 (edited) Yes, if I hit the Y key, it does delete the selected registry key. I'm gonna try your recommendation right now. Well that did the trick the first time but after that the program quit replacing it and thus crashed. I have sent the information to the company and I hope they can figure it out. Thanks for all the help from you folks. Edited June 21, 2019 by Thehandyman1957
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