You may have a look at their contributions here:
http://unattended.msfn.org/xp/applications/adaware6.htm
http://www.msfn.org/board/index.php?showtopic=14851
http://www.msfn.org/board/index.php?showtopic=14323
These are the steps:
1. Download the file "sleep.zip" from the link below.
http://unattended.msfn.org/files/sleep.zip
2. Create a folder inside your "Install" folder, and name it AAwP6181
3. Inside the folder "AAwP6181", put these files:
AdAware.exe --> the installation program renamed for simplicity
adaware.js --> a modified JavaScript file written originally by brent24
prefs.ini --> it's yours at C:\Program Files\Lavasoft\Ad-aware 6\
reflist.ref --> updated file downloadable from here.
sleep.exe --> extracted from step 1
This is what's written in adaware.js (replace the ####### with your password):
QUOTE
function getWin(win, inc)
{
var cntr = 0;
while (!WshShell.AppActivate(win))
{
if (cntr==12) return true;
cntr++;
WScript.Sleep(inc);
}
return true;
}
var WshShell = new ActiveXObject("WScript.Shell");
var oExec = WshShell.Exec("AdAware.exe /s");
while (oExec.Status == 0)
{
WScript.Sleep(500);
getWin("Password", 3000);
WshShell.SendKeys ("#######");
WScript.Sleep(500);
WshShell.SendKeys ("{ENTER}");
}
WScript.quit();
{
var cntr = 0;
while (!WshShell.AppActivate(win))
{
if (cntr==12) return true;
cntr++;
WScript.Sleep(inc);
}
return true;
}
var WshShell = new ActiveXObject("WScript.Shell");
var oExec = WshShell.Exec("AdAware.exe /s");
while (oExec.Status == 0)
{
WScript.Sleep(500);
getWin("Password", 3000);
WshShell.SendKeys ("#######");
WScript.Sleep(500);
WshShell.SendKeys ("{ENTER}");
}
WScript.quit();
This is your batch file:
QUOTE
cls
@echo off
ECHO.
ECHO Installing Ad-Aware Pro v6 Build 181
ECHO Please wait...
Copy %systemdrive%\Install\AAwP6181\sleep.exe %systemroot%\
Copy %systemdrive%\Install\AAwP6181\AdAware.exe %systemdrive%\
Copy %systemdrive%\Install\AAwP6181\adaware.js %systemdrive%\
sleep 1
CD %systemdrive%\
Start %systemdrive%\adaware.js
sleep 9
Copy /y "%systemdrive%\Install\AAwP6181\reflist.ref" "%systemdrive%\Program Files\Lavasoft\Ad-aware 6\"
Copy "%systemdrive%\Install\AAwP6181\prefs.ini" "%systemdrive%\Program Files\Lavasoft\Ad-aware 6\"
Del %systemdrive%\adaware.js
Del %systemdrive%\AdAware.exe
ECHO.
ECHO Shell Integration and Shortcut Deletion
REG ADD "HKCR\Drive\shell\Scan with Ad-aware...\Command" /ve /t REG_SZ /d "\"%systemdrive%\Program Files\Lavasoft\Ad-aware 6\Ad-aware.exe\" \"%%1\" \"+SD\"" /f
REG ADD "HKCR\Directory\shell\Scan with Ad-aware...\Command" /ve /t REG_SZ /d "\"%systemdrive%\Program Files\Lavasoft\Ad-aware 6\Ad-aware.exe\" \"%%1\" \"+SD\"" /f
del "%USERSPROFILE%\Desktop\Ad-aware 6.0.lnk"
del "%USERSPROFILE%\Desktop\Ad-watch 3.0.lnk"
exit
@echo off
ECHO.
ECHO Installing Ad-Aware Pro v6 Build 181
ECHO Please wait...
Copy %systemdrive%\Install\AAwP6181\sleep.exe %systemroot%\
Copy %systemdrive%\Install\AAwP6181\AdAware.exe %systemdrive%\
Copy %systemdrive%\Install\AAwP6181\adaware.js %systemdrive%\
sleep 1
CD %systemdrive%\
Start %systemdrive%\adaware.js
sleep 9
Copy /y "%systemdrive%\Install\AAwP6181\reflist.ref" "%systemdrive%\Program Files\Lavasoft\Ad-aware 6\"
Copy "%systemdrive%\Install\AAwP6181\prefs.ini" "%systemdrive%\Program Files\Lavasoft\Ad-aware 6\"
Del %systemdrive%\adaware.js
Del %systemdrive%\AdAware.exe
ECHO.
ECHO Shell Integration and Shortcut Deletion
REG ADD "HKCR\Drive\shell\Scan with Ad-aware...\Command" /ve /t REG_SZ /d "\"%systemdrive%\Program Files\Lavasoft\Ad-aware 6\Ad-aware.exe\" \"%%1\" \"+SD\"" /f
REG ADD "HKCR\Directory\shell\Scan with Ad-aware...\Command" /ve /t REG_SZ /d "\"%systemdrive%\Program Files\Lavasoft\Ad-aware 6\Ad-aware.exe\" \"%%1\" \"+SD\"" /f
del "%USERSPROFILE%\Desktop\Ad-aware 6.0.lnk"
del "%USERSPROFILE%\Desktop\Ad-watch 3.0.lnk"
exit
Note:
Ad-Aware uses internal calculator to check the password you type to install it. It never keeps that password in any place on your computer.
So, don't waste time searching for a registry value or a file hidden here or there. No way!
The file "prefs.ini" is automatically created by Ad-Aware on the first use. It will be automatically modified every time you change the program's settings or do a new scan.
Therefore, do a complete configuration for the program before you copy that file into your unattended CD.
For more information about Plugins:
http://www.msfn.org/board/index.php?showto...ndpost&p=129555
For more information about Languages:
http://www.msfn.org/board/index.php?showto...ndpost&p=129612
For more information about setting the default language:
http://www.msfn.org/board/index.php?showto...ndpost&p=149608
For more information about shell integration:
http://www.msfn.org/board/index.php?showto...ndpost&p=149437
My "prefs.ini" is uploaded for you, if you happen to need one.