Jump to content

srcdir help


Recommended Posts

hi

i have created unattended installation for a software here is the lines

Opt("WinWaitDelay",100)

Opt("WinTitleMatchMode",4)

Opt("WinDetectHiddenText",1)

Opt("MouseCoordMode",0)

Run('C:\Documents and Settings\amir\Desktop\New Folder\setup.exe')

WinWait("Welcome to the MathWorks Installer","")

If Not WinActive("Welcome to the MathWorks Installer","") Then WinActivate("Welcome to the MathWorks Installer","")

WinWaitActive("Welcome to the MathWorks Installer","")

Send("{ENTER}")

WinWait("License Information","")

If Not WinActive("License Information","") Then WinActivate("License Information","")

WinWaitActive("License Information","")

Send("amir{TAB}ali{TAB}")

WinWait("Program Manager","")

If Not WinActive("Program Manager","") Then WinActivate("Program Manager","")

WinWaitActive("Program Manager","")

WinWait("License Information","")

If Not WinActive("License Information","") Then WinActivate("License Information","")

WinWaitActive("License Information","")

Send("xxx{TAB}{TAB}{TAB}{ENTER}")

WinWait("MathWorks Account","")

If Not WinActive("MathWorks Account","") Then WinActivate("MathWorks Account","")

WinWaitActive("MathWorks Account","")

Send("{SPACE}{TAB}{TAB}{SPACE}{ENTER}")

WinWait("License Agreement","")

If Not WinActive("License Agreement","") Then WinActivate("License Agreement","")

WinWaitActive("License Agreement","")

Send("{SPACE}{ENTER}")

WinWait("Installation Type","")

If Not WinActive("Installation Type","") Then WinActivate("Installation Type","")

WinWaitActive("Installation Type","")

Send("{ENTER}")

WinWait("Folder Selection","")

If Not WinActive("Folder Selection","") Then WinActivate("Folder Selection","")

WinWaitActive("Folder Selection","")

WinWait("Confirmation","")

If Not WinActive("Confirmation","") Then WinActivate("Confirmation","")

WinWaitActive("Confirmation","")

Send("{ENTER}")

but the problem is i want to put it on cd so when the autorun start and after that script it perform the installation from there but the autoit script gives me error i have changed the path with the command srcdir this way :

<SrcDir>\Run('<SrcDir>\setup.exe')

so the script must execute setup.exe from cd but is doesnot and gives me error

unable to execute the external program

the system cannot find the file specified

can someone help me plz ?

th very much

Link to comment
Share on other sites

Why dont you include the install file in the script and decompress to a temp folder?

maybe vars with @ could help too!

Cheers

Old Scriptology

Visual Ping 1.8 - Mass Ping Program with export to txt delimited.

Desktop 2 RGB and YMCK - Pick a color in the desktop and get the RGB and YMCK code.

Desktop 2 RGB - Pick a color in the desktop and get the RGB code.

ShootIT 1.0 - Screen Capture full and partial screen

[font="'Arial Black';"]Remember Remember The Fifth of November.[/font]

Link to comment
Share on other sites

hi again

excuse me i have another quesyion too( seems good place to learn) :)

i want to add line to the script so that when at any point of installation i exit the the script exit too

can u tell me what should i add to script?

thanks

Link to comment
Share on other sites

hi again

excuse me i have another quesyion too( seems good place to learn) :)

i want to add line to the script so that when at any point of installation i exit the the script exit too

can u tell me what should i add to script?

thanks

If WinExists("Your Installation Title or Hwd")=0 Then Exit
Link to comment
Share on other sites

sorry

where should i add this command in which line??

and something else the install process have more than one windows ( one after one)and every windows has its own name do i have to write this command for every windows?

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...