darkzeus Posted April 1, 2010 Share Posted April 1, 2010 sory for my dump question.. i am new in autoit, i try to make uninstall tools for some antivirus.. for uninstall this antivirus i must change the registry to remove password protection.. here my autoit.. #RequireAdmin $Key="HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion\Misc." $ExeFile="C:\Program Files\Trend Micro\OfficeScan Client\ntrmv.exe" $read = RegRead ($key, "Allow Uninstall_") If FileExists ($ExeFile) Then RegWrite ($Key,"Allow Uninstall", "REG_DWORD", "1") if $read = 0 then Run ($ExeFile, @SW_MINIMIZE) EndIf EndIf the exefile still running but why registry cannot changed??? sorry for my bad english... Link to comment Share on other sites More sharing options...
jchd Posted April 1, 2010 Share Posted April 1, 2010 Is the extra underscore in RegRead key an error? Do you have sufficient rights to write to this key? This wonderful site allows debugging and testing regular expressions (many flavors available). An absolute must have in your bookmarks.Another excellent RegExp tutorial. Don't forget downloading your copy of up-to-date pcretest.exe and pcregrep.exe hereRegExp tutorial: enough to get startedPCRE v8.33 regexp documentation latest available release and currently implemented in AutoIt beta. SQLitespeed is another feature-rich premier SQLite manager (includes import/export). Well worth a try.SQLite Expert (freeware Personal Edition or payware Pro version) is a very useful SQLite database manager.An excellent eBook covering almost every aspect of SQLite3: a must-read for anyone doing serious work.SQL tutorial (covers "generic" SQL, but most of it applies to SQLite as well)A work-in-progress SQLite3 tutorial. Don't miss other LxyzTHW pages!SQLite official website with full documentation (may be newer than the SQLite library that comes standard with AutoIt) Link to comment Share on other sites More sharing options...
darkzeus Posted April 1, 2010 Author Share Posted April 1, 2010 Is the extra underscore in RegRead key an error? Do you have sufficient rights to write to this key? thanks for your reply yup.. there is extra underscore.. for sufficient rights?? of course... because administrator user.. before that i am try to write same registry key using ShellExecuteWait("RegEdit.exe", "/S filename.reg", "", "", @SW_Hide) and its work.. but i want to try using regwrite... any advice again?? Link to comment Share on other sites More sharing options...
zorphnog Posted April 1, 2010 Share Posted April 1, 2010 What OS are you using? Link to comment Share on other sites More sharing options...
darkzeus Posted April 13, 2010 Author Share Posted April 13, 2010 What OS are you using?Windows XP 32 bit... Link to comment Share on other sites More sharing options...
nitekram Posted April 13, 2010 Share Posted April 13, 2010 Does this work? #RequireAdmin $Key="HKEY_LOCAL_MACHINE\SOFTWARE\TrendMicro\PC-cillinNTCorp\CurrentVersion\Misc." $ExeFile="C:\Program Files\Trend Micro\OfficeScan Client\ntrmv.exe" $read = RegRead ($key, "Allow Uninstall_") If FileExists ($ExeFile) Then RegWrite ($Key,"Allow Uninstall_", "REG_DWORD", "1") if $read = 0 then Run ($ExeFile, @SW_MINIMIZE) EndIf EndIf 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator 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