Page 1 of 1 1
Topic Options
#8172 - 2001-04-19 12:32 AM Unattended install of an .exe
BNutz Offline
Fresh Scripter

Registered: 2001-04-19
Posts: 12
Loc: Washington D.C. USA
How can I run an executable in unattended mode. In other words, how can I have kixtart automatically answer questions generated from an .exe?
Top
#8173 - 2001-04-19 11:42 AM Re: Unattended install of an .exe
Anonymous
Unregistered


Hi,

You can make an install package with SMS-installer.
www.microsoft.com/smsmgmt/downloads/install.asp

Top
#8174 - 2001-04-19 11:46 AM Re: Unattended install of an .exe
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
BNutz,

this could get tricky .. but if you know all the Titles of the Windows returned by the installation it could be done with SetFocus
and SendKeys functions ...
sample:

code:

run "\\path\blah.exe"
$nul = SetFocus("WindowTitle1")
while @error <> 0
sleep 1
$nul = SetFocus("WindowTitle1")
loop
$nul = SendKeys("{TAB}{ENTER}")

$nul = SetFocus("WindowTitle2")
while @error <> 0
sleep 1
$nul = SetFocus("WindowTitle2")
loop
$nul = SendKeys("whatever")

etc...


Jochen

P.S.: Or use sms-installer ... i fergot

[This message has been edited by jpols (edited 19 April 2001).]

_________________________



Top
#8175 - 2001-04-19 03:22 PM Re: Unattended install of an .exe
BNutz Offline
Fresh Scripter

Registered: 2001-04-19
Posts: 12
Loc: Washington D.C. USA
The only problem with the SMS installer, is that I dont have that option yet. We are in the mists of pushing SMS 2.0, but this other install needs to be completed sooner then SMS. I'll toy around with SetFocus.

Thank you both.

Top
#8176 - 2001-04-19 05:30 PM Re: Unattended install of an .exe
Bryce Offline
KiX Supporter
*****

Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
If you are going to go the setfocus route, I suggest that you use the program AutoIt.

AutoIt surpasses kix's own abilities for these type of tasks.

http://www.hiddensoft.com/AutoIt/

Bryce

------------------
kix.isorg.net

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 781 anonymous users online.
Newest Members
Sir_Barrington, batdk82, StuTheCoder, M_Moore, BeeEm
17886 Registered Users

Generated in 0.125 seconds in which 0.1 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org