Sign in to follow this  
Followers 0
idontevenlikenirvana

Script Working on Windows 7, but not on Windows 8

2 posts in this topic

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:

#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)")

Share this post


Link to post
Share on other sites



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"

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0