Sign in to follow this  
Followers 0
YpR^

automaticly set-up a program ?

5 posts in this topic

Is it possible to automaticly set-up a program in the background ? ...

descripe:

1: u download a program and place at in folder x.

2: u run an autoit-script, which open the file placed in the folder x, and installs it.

3: then the program opens the program and click "here and there :idiot:" until til program is completly configurated for this user...

4: Is it possible to do all this in "silent" mode ? ... so it's runing and configurating in bagground ?...


Share this post


Link to post
Share on other sites



It depends on the program.

Some programs have thier own -silent Install functions. You can also use control commands on certain installs.

Bascially

urldownloadtofile("http://somesite.com/some.exe","c:\some.exe")

run("c:\some.exe","",@sw_hide)

winwait("some install","where")

controlsend("some install","where","Edit1","c:\program files\somedir\{enter}")

Something like that, but depends on the installer.


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

I think u only have to press enter at the install screen...

but im thinking about the "open-program-and-setup" thing :]


Share this post


Link to post
Share on other sites

There are no definite answer for this question. As ScriptKitty mentionned, some software allows silent or scripted installs, other do not.

By using the @sh_hide to run the install, you will have to get the name of all the controls (buttons, editboxes etc) then use the controlsend function to assign a value to these controls. Again as hinted by ScriptKitty.

If you are looking at intalling the same program many times, there are other options, such as wininstaller, or installright that keeps track of all file and registry changes, which you can re-package and run in no user input mode.

But if you are looking at installing many different programs only a few times, scripting is as time consuming as doing the install.


CheersNobby

Share this post


Link to post
Share on other sites

same program many times...

thanks for the answer's ... i'll try to play a little with it...


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