Jump to content

Recommended Posts

Posted

Hello!

Just found this great application and wanted to say hi to the community! I have a wee problem regarding automating removal of registry entries that I hope someone might be able to guide me in. I need to remove a bunch of registry keys plus the offending application froma few computers. The app removal I think I can deal with but merging the registry file in with the existing one I am less confident about. Could someone recommend an effective way to do this please?

Here's what I have:

DirCreate ("c:\Visionew")

If FileExists("C:\Program Files\\uninst.exe") Then

Run("C:\Program Files\Visio Veiwer\uninst.exe")

EndIf

FileInstall("c:\Visionew\test1.reg")

Sleep(1)

shutdown -r -t 20 -c "Rebooting computer"

Appreciate any help!

Posted

welcome! =)

check out regdelete in the help file

regdelete("\\" & $computer_name & "\hklm...)

Thanks Gcue, I'll have a look.

Posted

2 other solutions that you might be interested in if you already have a .reg file for this...

ShellExecute("regedit.exe","/s SomeRegfileHere.reg",@ScriptDir)

or...

http://www.autoitscript.com/forum/index.php?showtopic=7771

(converts .reg files to AutoIt code)

Thanks Nerdfencer, I'll try these also!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...