MSFN Forum: AutoIT, Trying to Install SW To Different Drive... - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

AutoIT, Trying to Install SW To Different Drive... Rate Topic: -----

#1 User is offline   Mikeboy 

  • Group: Members
  • Posts: 6
  • Joined: 21-March 05

Posted 26 September 2005 - 07:06 AM

Hi , I've been lurking and reading for a while, particularly over the last weekend.

I've been following the MSFN Unattended XP CD How-To guide, and so far it has been going well.

I always install most of my programs to my second partition, D:\. The CD will always/only be used for my computer, so there's no worries of the D: ever changing.

So I've made this script with AutoIT for PowerDVD6. Obviously it is not finished yet, but I'm having trouble entering the install path 'D:\Program Files\CyberLink\PowerDVD'

$MYPATH= "D:\Program Files\CyberLink\PowerDVD"

Run("PowerDVD6.exe")

; Wait for Initial Setup Screen
WinWaitActive("CyberLink PowerDVD  v6.0 Setup...", "&Next >")
Send("!n")
;Send Alt+N

WinWaitActive("CyberLink PowerDVD  v6.0 Setup...", "License Agreement")
Send("!y")

WinWaitActive("CyberLink PowerDVD  v6.0 Setup...", "default media player for the following file types")
send("!n")

WinWaitActive("CyberLink PowerDVD  v6.0 Setup...", "Setup will install the following programs")
send("!n")

WinWaitActive("CyberLink PowerDVD  v6.0 Setup...", "Customer Information")
send("!n")

WinWaitActive("CyberLink PowerDVD  v6.0 Setup...", "Choose Destination Location")
send("!r")

WinWaitActive("Choose Folder", "Choose Destination Location")
Send($MYPATH);---------------------------------------------PROBLEM
Send("{Enter}")

WinWaitActive("CyberLink PowerDVD  v6.0 Setup...", "Confirm Destination")
send("!n")


At the WinWaitActive("Choose Folder", "Choose Destination Location") stage, the path is pre-selected (as Attachment) - so I thought if I just send the new path it would overwrite it, and then press <enter> to confirm it? But it doesn't work - it stops at this point. I've tried Send("D:\Program Files\CyberLink\PowerDVD") too without success..

I've browsed through the help file but that got a bit heavy going (+ I'm a very slow reader) and it wasn't really relevant.

Hope someone can put this right and that it isn't anything difficult. Keep in mind I'm completely new to AutoIT - only started using it last night.

Thanks in advance :)

Attached File(s)


This post has been edited by Mikeboy: 26 September 2005 - 07:10 AM



#2 User is offline   InTheWayBoy 

  • Friend of MSFN
  • PipPipPipPipPip
  • Group: Members
  • Posts: 709
  • Joined: 16-August 04

Posted 26 September 2005 - 10:24 AM

Would double qoutes be the problem? You might wanna change this:

$MYPATH= "D:\Program Files\CyberLink\PowerDVD"

To this:

$MYPATH= ""D:\Program Files\CyberLink\PowerDVD""

But I'm probably wrong :) Give it a shot!

#3 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 26 September 2005 - 10:27 AM

Quote

WinWaitActive("Choose Folder", "Please choose the installation folder")
Send($MYPATH);---------------------------------------------PROBLEM
Send("{Enter}")


You are using the text of the parent window which is not active instead of the text of the child window which is active. Your WinWaitActive function needs the correct text to continue onwards. :rolleyes:

#4 User is offline   Mikeboy 

  • Group: Members
  • Posts: 6
  • Joined: 21-March 05

Posted 26 September 2005 - 01:27 PM

YYYYYES ! Thank you so much both :D

MHz that works perfect - I didn't realise you could actually reference a field like that - I thought the text in the 2nd argument thing in the WinWaitActive could be anything you choose as long as its unique..

I know that is not the case now , Thanks :thumbup

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy