Jump to content
Sign in to follow this  
goodbyeplanet

Install one program at a time. How do i do that? thanks

Recommended Posts

goodbyeplanet

I have more than 20 different applications to be installed and I created a folder with a main calling script and inside that folder is another folder which containts 20 different sub folders each with the exe files and the autoit script. If i run the main script it automatically parses through all the subfolders alphabetically and invokes the resident application autoit installation script until it finishes with the final folder, but the main problem is that all the 20 applications are invoked at once and chaos results.

main calling script(parses main folder containing 20 folders each with the exe and an autoitscript.

#RequireAdmin
$search = FileFindFirstFile("adobe automated updates\*")
If $search = -1 Then
MsgBox(0, "Error", "folder not found!")
Exit
EndIf

While 1

$dir = FileFindNextFile($search)
If @error Then ExitLoop

runwait("adobe automated updates\" & $dir & "\installapp.exe","adobe automated updates\" & $dir)    

WEnd

script found in each application. its all the same for 20 applications because its basically the photoshop updates. so its a matter of running the exe file only.

#RequireAdmin
$search=Filefindfirstfile("Installation\*.exe")
$exe=filefindnextfile($search)

run("Installation\" & $exe)

Share this post


Link to post
Share on other sites
jdelaney

if the script you call is only 'run'ing, then of course it will finish quickly. So your runwait command will also end just as quickly.

either the script you call has to also runwait, or you have to loop for the process you 'run' to close.


IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window.

Share this post


Link to post
Share on other sites
goodbyeplanet

if the script you call is only 'run'ing, then of course it will finish quickly. So your runwait command will also end just as quickly.

either the script you call has to also runwait, or you have to loop for the process you 'run' to close.

but i tried runwait yesterday in the called script and i got the same result.

Share this post


Link to post
Share on other sites
goodbyeplanet

please may you help me

Share this post


Link to post
Share on other sites
skysel

Use the search function on this forum .. for example ;-)

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  

×