idontevenlikenirvana Posted July 7, 2014 Posted July 7, 2014 Hi, I'm trying to copy the WinZip tutorial found on the site here, and I can get the script to work perfectly for Windows 7. However, Windows 8 will not run the script (I presume I'm not utilizing the "Run" function properly). I am running Windows 7/8 through a VM, but I'm not sure If that changes anything at all. Any help is very much appreciated, and thank you in advance! Here's the script in it's entirety: expandcollapse popup#include <MsgBoxConstants.au3> ;MsgBox($MB_SYSTEMMODAL, "", "The current working directory: " & @CRLF & @WorkingDir) Local $iPID = Run("winzip90.exe","C:\Users\Leo\Desktop\AutoIt") WinWaitActive("WinZip® 9.0 SR-1 Setup", "&Setup") Send("!s") WinWaitActive("WinZip Setup", "into the following folder") Send("{ENTER}") WinWaitActive("WinZip Setup - Google Tools", "You can also choose to install") Send("!t") Send("!d") Send("{ENTER}") WinWaitActive("WinZip Setup", "WinZip features include") Send("!n") WinWaitActive("License Agreement") Send("!y") WinWaitActive("WinZip Setup", "Quick Start Guide") Send("!n") WinWaitActive("WinZip Setup", "switch between the two interfaces") Send("!c") Send("!n") WinWaitActive("WinZip Setup", "&Express setup (recommended)") Send("!e") Send("!n") WinWaitActive("WinZip Setup", "WinZip needs to associate itself with your archives") Send("!n") ; Completed installation screen WinWaitActive("WinZip Setup", "Thank you for installing this evaluation version") Send("{ENTER}") ; Wait for winzip to load then close it WinWaitActive("WinZip (Evaluation Version)") WinClose("WinZip (Evaluation Version)")
idontevenlikenirvana Posted July 7, 2014 Author Posted July 7, 2014 EDIT: I figured it out, and for any wondering: If you include #RequireAdmin at the top the script seems to run fine. This must be related to the Windows 8 account controls in place, or not being able to right-click the script and selecting "Run-as-administrator"
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