williamk Posted July 29, 2009 Posted July 29, 2009 In Windows you can navigate to the C:\Windows\Downloaded Program Files folder, right click on an object you want to remove and click on remove. This action unistalls and deletes the control. I am trying to do the same thing with an Autoit script. I tried the below. It unregisters the objects, but does not delete them. They then show up in the folder as unknown objects. Is there a way to do this correctly? ShellExecuteWait("C:\Windows\system32\regsvr32.exe", '-u "C:\Windows\Downloaded Program Files\abraControllerPod111.dll"') ShellExecuteWait("C:\Windows\system32\regsvr32.exe", '-u "C:\Windows\Downloaded Program Files\abraControls111.OCX"') FileDelete("C:\Windows\Downloaded Program Files\abraControllerPod111.dll") FileDelete("C:\Windows\Downloaded Program Files\abraControls111.OCX")
Authenticity Posted July 29, 2009 Posted July 29, 2009 Global Const $sFile = "C:\Windows\Downloaded Program Files\abraControllerPod111.dll" FileSetAttrib($sFile, '-rs') FileDelete($sFile)
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