Using AutoIT to create Postinstall Scripts K2000
I am a decent AutoIT scripter, and was wondering if there are any good ways to use an AutoIT script as a answerfile of sorts to "manually" do "scripted" installs for software that don't work very well as K2000 Postinstall softwares.
I'm thinking :
Package the software installer Setup*.exe along with an autoit script compiled to an *.exe. Have K2000 run the AutoIT program that looks like this ;
Send("{ENTER}")
Sleep (1000)
Send("{TAB}")
Sleep (500)
Send("{TAB}")
It seems silly, but at least it's simple and should work. I say should because I haven't been able to get it to work.
Any input?
I'm thinking :
Package the software installer Setup*.exe along with an autoit script compiled to an *.exe. Have K2000 run the AutoIT program that looks like this ;
Send("{ENTER}")
Sleep (1000)
Send("{TAB}")
Sleep (500)
Send("{TAB}")
It seems silly, but at least it's simple and should work. I say should because I haven't been able to get it to work.
Any input?
0 Comments
[ + ] Show comments
Answers (2)
Answer Summary:
http://www.itninja.com/question/useful-xp-win7-scripted-installs-tips-tasks
http://www.itninja.com/question/useful-xp-win7-scripted-installs-tips-tasks
Please log in to answer
Posted by:
jverbosk
12 years ago
I'm using compiled AutoIT scripts for exactly this, as well as for some Windows config items that would be cumbersome via other means. For app installs, I just put the compiled AutoIT script in the same folder with the install file(s) and then invoke it in the post install command field (found using "start /wait" and pwarme's postinstall converter to help considerably with the Win7 postinstalls, but XP works fine without). Here's a post on the subject with some examples I did a couple of weeks ago, in case they might help.
http://www.itninja.com/question/useful-xp-win7-scripted-installs-tips-tasks
John
http://www.itninja.com/question/useful-xp-win7-scripted-installs-tips-tasks
John
Comments:
-
@jverbosk OMG! That is seriously the greatest little post in the world. Thank you so much. Super informative and well written. Thank you thank you thank you. - lan.pham 12 years ago
Posted by:
dchristian
12 years ago