06.03.2013 Views

opsi Version 3.3.1 - opsi Download - uib

opsi Version 3.3.1 - opsi Download - uib

opsi Version 3.3.1 - opsi Download - uib

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4. Localboot products: automatic software distribution with <strong>opsi</strong><br />

http://www.german-nlite.de/files/guides/regshot/regshot.html<br />

4.3.1.5. Integration with automated answers for the setup program<br />

Another fast way of integration is to provide an automated answer file for the setup<br />

process. To be more precise, the answer file is used by a control tool, which waits for<br />

the setup to come up with interactive windows and then passes input to these windows<br />

as defined in the answer file. As a control tool we recommend 'AutoIt'. The AutoIt<br />

program and the documentation you will find in the <strong>opsi</strong>-integtools or at the website:<br />

http://www.hiddensoft.com/autoit3.<br />

Here is a (very simple) example for using AutoIt:<br />

Automated integration of 'TightVNC' with the help of AutoIt.<br />

; start the setup<br />

Run, tightvnc-1.2.9-setup.exe<br />

; wait for the first window titled „Setup - TightVNC“<br />

WinWait, Setup - TightVNC<br />

; Send „Enter“ to that window:<br />

Send, {ENTER}<br />

; and so on ... send ENTER for default processing:<br />

WinWait, Setup - TightVNC<br />

Send, {ENTER}<br />

WinWait, Setup - TightVNC<br />

Send, {ENTER}<br />

WinWait, Setup - TightVNC<br />

Send, {ENTER}<br />

WinWait, Setup - TightVNC<br />

Send, {ENTER}<br />

WinWait, Setup - TightVNC<br />

Send, {ENTER}<br />

WinWait, Setup - TightVNC<br />

Send, {ENTER}<br />

; at that point the installation has started<br />

WinWait, Setup - TightVNC<br />

; send F for Finish<br />

Send, F<br />

exit<br />

At the start of 'autoit.exe' the name of the control file is passed as an argument.<br />

Following screen shots correspond with the answer file. As you can see, sending “Enter”<br />

to every window proceeds the default installation:<br />

49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!