SeekAndMod Posted February 27, 2014 Share Posted February 27, 2014 So I am trying to recreate what Iobit does after a general uninstallation of a software package which is seek out left overs and erase them. I am super new to AutoIt and need a little guidance if possible the first line of code works beautifuly however when I try useing DirRemove and RegDelete nothing happens. Please help if you have any pointers thus far my end goal is to uninstall SEP 11 and invoke Symantec.cloud installer from the same directory this exe will be located. RunAsWait("user", "domain", "password", 0, "msiexec /uninstall {5E2E4797-502A-4FFD-81EC-F9BA8BF0C581} /passive /norestart") DirRemove("c:program filessymantec", 1) DirRemove("c:documents and settingsall usersapplication datasymantec", 1) RegDelete("HKEY_Local_MachinesystemCurrentControlSetserviceseventlogApplicationSescLU") Link to comment Share on other sites More sharing options...
JohnOne Posted February 27, 2014 Share Posted February 27, 2014 add =requireadmin AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
SeekAndMod Posted February 27, 2014 Author Share Posted February 27, 2014 Another Idea -- Can RunAs resolve this as I need admin to do anything in these folder locations is there a admin statement other than requiresadmin or isadmin which I can specify domain admin credentials to effectively delete the left over junk? Link to comment Share on other sites More sharing options...
SeekAndMod Posted February 27, 2014 Author Share Posted February 27, 2014 added RequireAdmin and it works but the user which is logged in is an admin will this ask for credentials if the user is standard as this will be a mass deploy. and needs to be completely unattended. Link to comment Share on other sites More sharing options...
Moderators JLogan3o13 Posted February 27, 2014 Moderators Share Posted February 27, 2014 How are you deploying it, Altiris, SCCM? If you're using a management suite, you should be able to set it to run as Admin. If you mean you're just going to be copying it (which is not the same as deploying), that is a different story. "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum! Link to comment Share on other sites More sharing options...
SeekAndMod Posted February 27, 2014 Author Share Posted February 27, 2014 It will running through a global share on every users login. I am going to run it through group policy login script which will inturn be running as system or NT authority which should negate need for such password precautions but I am dealing with windows here not Linux so I figure err on the side of caution and write in all potential need. this is what the end will generally look like. RunAsWait("DomainAdmin", "Domain", "Password", 0, "msiexec /uninstall {5E2E4797-502A-4FFD-81EC-F9BA8BF0C581} /passive /norestart") #RequireAdmin DirRemove("c:program filessymantec", 1) DirRemove("c:documents and settingsall usersapplication datasymantec", 1) DirRemove("c:program filesCommon FilesSymantec Shared", 1) RegDelete("HKEY_Local_MachinesystemCurrentControlSetserviceseventlogApplicationSescLU") RegDelete("HKEY_Local_MachineSoftwareSymantec") RegDelete("HKEY_Current_UserSoftwareSymantec") RunAsWait("DomainAdmin", "Domain", "Password", 0, "N:SymexSymRedistributable.exe" "-silent") Link to comment Share on other sites More sharing options...
JohnOne Posted February 27, 2014 Share Posted February 27, 2014 As far as I know, vista + does not run all processes with admin privileges just because user is admin, so I believe it is required. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
SeekAndMod Posted February 27, 2014 Author Share Posted February 27, 2014 (edited) Yes I am figureing on UAC beeing the bane of this exes lifespan so the AD push should take care of that mess but users with no install rights will most likely have and issue. I swear I need a Autoit for utter idiots now my Installer is not working wit the silent switch which is specified by the install package. Edited February 27, 2014 by SeekAndMod Link to comment Share on other sites More sharing options...
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