QUOTE (C.RAZY @ Dec 27 2005, 12:36 PM)

I just like to avoid AutoIt wherever possible (nothing personal, I just *think* that the keypresses in the installers are more consistent between version changes, and they are so easy to do with a little and clear-to-read wsh-script...), and besides that, someone asked for a non-AutoIt possibility

Greetings,
C.RAZY
Some here just want a one line with /S without any windows shown at all. Good luck to them

as I am glad to use other methods.
I do not understand what is so clearer about a Wsh script ? Atleast say it is more native to the OS and then I may believe you some more. Wsh scripts are fine to me for some things, but looking at those Sleeps to control the flow looks so blind and unreliable. Seriously, 18.5 seconds before a (blind) Send ? If I did that with Sleeps and Sends in AutoIt, then I would perhaps not even bother with using it. Amongst the AutoIt standard install is a Dll called AutoItX3.dll. This Dll can help assist other languages. An 85 Kb Dll to make Wsh into a reliable install automator is a good investment IMHO.
Example VBS with AutoItX3
CODE
Set oAutoIt = WScript.CreateObject("AutoItX3.Control")
oAutoIt.Run "DivXCreate.exe"
oAutoIt.WinWait "Language selection", "Please select the language"
oAutoIt.ControlClick "Language selection", "Please select the language", "Button1"
oAutoIt.WinWait "DivX Create Bundle", "Welcome"
oAutoIt.ControlClick "DivX Create Bundle", "Welcome", "Button2"
oAutoIt.WinWait "DivX Create Bundle", "License Agreement"
oAutoIt.ControlCommand "DivX Create Bundle", "License Agreement", "Button4", "Check", ""
oAutoIt.ControlClick "DivX Create Bundle", "License Agreement", "Button2"
oAutoIt.WinWait "DivX Create Bundle", "Choose Components"
oAutoIt.ControlClick "DivX Create Bundle", "Choose Components", "Button2"
oAutoIt.WinWait "DivX Create Bundle", "Selecting an installation folder"
oAutoIt.ControlClick "DivX Create Bundle", "Selecting an installation folder", "Button2"
oAutoIt.WinWait "DivX Create Bundle", "Free! Google Toolbar"
oAutoIt.ControlCommand "DivX Create Bundle", "Free! Google Toolbar", "Button4", "UnCheck", ""
oAutoIt.ControlClick "DivX Create Bundle", "Free! Google Toolbar", "Button2"
oAutoIt.WinWait "DivX Create Bundle", "Free! Google Desktop"
oAutoIt.ControlClick "DivX Create Bundle", "Free! Google Desktop", "Button5"
oAutoIt.ControlClick "DivX Create Bundle", "Free! Google Desktop", "Button2"
oAutoIt.WinWait "DivX Create Bundle", "Installation Complete"
oAutoIt.ControlClick "DivX Create Bundle", "Installation Complete", "Button2"
Set oAutoIt = Nothing
It will reliably wait for each window and clicks the buttons and checkboxes directly without any need to be active.

@BoardBabe
Easy to take out the working directory which is the shortcut directory.

CODE
; Remove shortcuts.
If _MainShortcut('DivX Codec\Decoder Configuration Utility.lnk') Then
DirRemove(@WorkingDir, 1); <---- remove shortcut directory
_Desktop('DivX Converter.lnk')
_Desktop('DivX Movies.lnk')
_Desktop('DivX Player.lnk')
EndIf
The _MainShortcut() function changes the working directory as does the _Desktop() and the _QuickLaunch() functions also.