Gmaster123 Posted February 1, 2006 Share Posted February 1, 2006 Hello guys, I hope some one can help me with this issue. Actually I am new to this Autoitscript tool and need a help. I have to script for an application using the below scenarios. Scenario1- Installing the application. Let say I have an Exe file (ex: Google Web Accelerator) Using this Autoit tool i need to install that exe file in my PC Scenario2- Uninstalling the application Same as the above, as I need to uninstall the application using this tool by scripting. The problem is I dont know how to script for this using Autoit tool. If some one can, please help me in this. At least if you have some sample script it would be great. I can manage with that. Your comments will be more appreciable Link to comment Share on other sites More sharing options...
MHz Posted February 1, 2006 Share Posted February 1, 2006 Scenario1- Have you looked in the Helpfile for the Winzip installation example?Scenario2- Have a look in the registry under "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" for the uninstall string. Or you maybe able to automate the uninstall by the uninstall.exe (name can vary) within the programs directory. Link to comment Share on other sites More sharing options...
mikeytown2 Posted February 1, 2006 Share Posted February 1, 2006 You don't need to place the same post in multiple locations, thats not cool. here is a link on how to do it, with autoit exampleshttp://www.microsoft.com/resources/documen...us/msiexec.mspxif you want to make it a quiet install do something like thisRun(@ComSpec & " /C " & "msiexec " & "/qn " & "c:\google.msi", "", @SW_HIDE)to uninstallRun(@ComSpec & " /C " & "msiexec " & "/x " & "c:\google.msi", "", @SW_HIDE)The best way to learn autoit is from looking at the help file. it also helps to download scite and use the AU3recorder thats under tools. AU3info is helpfull as well for ControlClick. look up that command in the help file.here is an example of the powers of controlsRun("notepad.exe") WinWait("Untitled -") MsgBox("","","Hiding Window and adding text") WinSetState("Untitled -", "", @SW_HIDE) ControlSetText("Untitled -", "", "Edit1", "New Text Here" ) MsgBox("","","Text Added To Hidden Window") WinActivate("Untitled -") WinSetState("Untitled -", "", @SW_SHOW) Email: POP3 & SMTP using SSL/TLS (OpenSSL)Email: IMAPEmail: Base64 & SMTP login & Send email direct to MX Server (thanks blindwig)Win: Hook Registry ChangesWin: Read/Write to Alternate Data Streams (ini example)Utility: GPS Distance Calculations, Vincenty and Haversine formulas; angles and elevationUtility: Dell Laser Printer (3000-5100) - Print LoggerUtility: Reset Router when Wireless Link FailsUtility: ImageMagick Batch jpg ProcessorVideo HCenc Batch FrontendVideo: *DEAD* YouTube Video Encoder (avs/avi to flv)Software On CD's I Like<<back|track3 Ultimate Boot CD for Windows SpinRite Ubuntu ophcrack 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