Hi all,

Long time lurker first time contributor (so be gentle please rolleyes.gif ).

Here is my (cheap and nasty) AutoIt script to install Soundblaster Web Updates (drivers and apps).

I don't integrate the drivers using Vlite but instead run the installer (using the /s switch, from memory the silent install .iss files are already there) as part of my application installation steps

Tested on Vista and a SoundBlaster XFi card. Does not work for Creative MediaSource 5 Player as the window titles are not the same as the other installs.

Usage instructions:

  1. Download and install autoit3
  2. Create and compile this script
  3. Run this script BEFORE the installer (must be non-blocking as this script only finishes when the installer does)
  4. Run the xfi driver installer script in unattended mode (using /s)
  5. Sit back and enjoy the ride
  6. ???
  7. Profit!


CODE
#cs ----------------------------------------------------------------------------

AutoIt Version: 3.2.12.1

Autoresposes to Sound Blaster Web Update setup prompts

#ce ----------------------------------------------------------------------------

while True
    
    opt("WinTitleMatchMode", 2)
    
    if Winexists(" - InstallShield Wizard", "Choose Setup Language") then
        WinActivate(" - InstallShield Wizard", "Choose Setup Language")
        send("!n")
    EndIf
    
    opt("WinTitleMatchMode", 1)
    
    if Winexists("Setup", "Click [OK] to continue or [Cancel] to exit installation") then
        WinActivate("Setup", "Click [OK] to continue or [Cancel] to exit installation")
        send("{enter}")
    EndIf

    if Winexists("Installation Wizard", "Press the PAGE DOWN key to read the entire agreement") then
        WinActivate("Installation Wizard", "Press the PAGE DOWN key to read the entire agreement")
        send("{enter}")
    EndIf
        
    if Winexists("Installation Wizard", "Please read through the contents of the readme file shown below") then
        WinActivate("Installation Wizard", "Please read through the contents of the readme file shown below")
        send("{enter}")
    EndIf
        
    if Winexists("Question", "Setup has found the same version of ") then
        WinActivate("Question", "Setup has found the same version of ")
        send("!y")
    EndIf

    if Winexists("Setup", "Setup has found a newer version of ") then
        WinActivate("Setup", "Setup has found a newer version of ")
        send("{enter}")
    EndIf
    
    if Winexists("Installation Wizard", "Setup will install the software in the folder shown below") then
        WinActivate("Installation Wizard", "Setup will install the software in the folder shown below")
        send("{enter}")
    EndIf
        
    if Winexists("Installation Wizard", "Setup has enough information to start copying the program files") then
        WinActivate("Installation Wizard", "Setup has enough information to start copying the program files")
        send("{enter}")
    EndIf
                
    if Winexists("Installation Wizard", "Your computer system has to be restarted for the changes to take effect") then
        WinActivate("Installation Wizard", "Your computer system has to be restarted for the changes to take effect")
        send("{down}{enter}")
        exitloop
    EndIf
        
    if Winexists("Installation Wizard", "Setup has finished installing ") then
        WinActivate("Installation Wizard", "Setup has finished installing ")
        send("{enter}")
        exitloop
    EndIf
        
    if Winexists("Error", "Please reboot and try again") then
        WinActivate("Error", "Please reboot and try again")
        send("{enter}")
        exitloop
    EndIf
        
    sleep(2000)

wEnd


Edit - added some more details about usage