captedgar Posted August 8, 2010 Posted August 8, 2010 Hi there I'm trying to automate the following set of tasks using the AutoIt tool. This is kind of a software rollout to about 100 odd servers Doing this manually takes me about 3-4 hours to complete. This is also introduces the risk of human errors which i want to avoid The following are the set of manual tasks which i want to do it using AutoIt tool 1. Log onto the server 1 2. Set path i.e. set PATH=%SystemRoot%\Microsoft.NET\Framework\v2.0.50727;%PATH% 3. Change dir i.e. cd "c:\Program Files\Folder1\Software1" 4. Unregister Software1.dll using regasm command i.e. regasm /u /tlb SoftwareComp1.dll 5. UnInstall Software1 in c:\Program Files\Folder1\Software1\Software1.exe 6. Open the following folder on a shared drive i.e G:\Installs\Software2\ 7. Copy Software2.exe and Software2Addin.exe to Server1 8. Install the above two .exe's on Server1 9. Set path i.e. set PATH=%SystemRoot%\Microsoft.NET\Framework\v2.0.50727;%PATH% 10. Change dir i.e. cd "c:\Program Files\Folder1\Software2" 11. Register Software2.dll using regasm command i.e. regasm /tlb SoftwareComp2.dll 12. Log out of server 1 13. Repeat the step 1 to 12 to server 2 to 100 odd As seen above, i have converted the task to a batch file on most of them. Just need the resting doing it please guide me /advice me I have managed to sort step 5 and step 8 by writing basic .au3 scripts such as below For UnInstaller ; Run the Software1 Uninstaller Run("\\<ServerA>\c$\Program Files\Folder1\Software1\Software1.exe") ; Initial Uninstall Screen WinWaitActive("Software1 Uninstall", "&Next >") Send("!n") ; Uninstall Location WinWaitActive("Software1 Uninstall", "&Uninstall") Send("!u") ; Uninstall Complete WinWaitActive("Software1 Uninstall", "Uninstall was completed successfully.") Send("!n") ; Click Finish WinWaitActive("Software1 Uninstall", "Click Finish to close this wizard.") Send("{ENTER}") For Installer ; Run the Software2 installer Run("Software2.exe") ; Initial Setup Screen WinWaitActive("Software2 Setup", "&Next >") Send("!n") ; License Agreement WinWaitActive("Software2 Setup ", "I &Agree") Send("{ENTER}") ; Install location WinWaitActive("Software2 Setup ", "&Install") Send("{ENTER}") ; SetUp Complete WinWaitActive("Software2 Setup ", "Setup was completed successfully.") Send("!n") ; Activate User Manual WinWaitActive("Software2 Setup ", "User Manual") Send("{-}") Send("{ENTER}") Regards
notsure Posted August 9, 2010 Posted August 9, 2010 What are you trying to accomplish with 9. Set path i.e. set PATH=%SystemRoot%\Microsoft.NET\Framework\v2.0.50727;%PATH% 10. Change dir i.e. cd "c:\Program Files\Folder1\Software2" ? I dont really get it. Also if you run this command : Run("\\<ServerA>\c$\Program Files\Folder1\Software1\Software1.exe") without being logged into that server with a Virtual Machine or something. It will apply the settings to your own registry instead of the server's, i think. Please explain more about the goal you want to achieve. I dont think many people exactly get what you want.
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