Im using the following script to install ACDSee Classic:
CODE
start E:\AIODVD\SETUP\XP\Professional\SOFTWARE\Applications\AcdSeeClassic\acdseeclassic.exe
start /min /wait cscript E:\AIODVD\SETUP\XP\Professional\SOFTWARE\Applications\AcdSeeClassic\SendKeys.vb script: (start.cmd)
[code]
ECHO Installing Ad-Aware Pro v6 Build 181
ECHO Please wait...
Copy E:\AIODVD\SETUP\XP\Professional\SOFTWARE\Applications\AAwP6181\sleep.exe %systemroot%\
Copy E:\AIODVD\SETUP\XP\Professional\SOFTWARE\Applications\AAwP6181\AdAware.exe %systemdrive%\
Copy E:\AIODVD\SETUP\XP\Professional\SOFTWARE\Applications\AAwP6181\adaware.js %systemdrive%\
sleep 1
CD %systemdrive%\
Start %systemdrive%\adaware.js
sleep 9
Copy /y "E:\AIODVD\SETUP\XP\Professional\SOFTWARE\Applications\AAwP6181\reflist.ref" "%systemdrive%\Program Files\Lavasoft\Ad-aware 6\"
Copy "E:\AIODVD\SETUP\XP\Professional\SOFTWARE\Applications\AAwP6181\prefs.ini" "%systemdrive%\Program Files\Lavasoft\Ad-aware 6\"
Del %systemdrive%\adaware.js
Del %systemdrive%\AdAware.exe
exit
adware.js file:
CODE
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 ("XXXXXXX");
WScript.Sleep(500);
WshShell.SendKeys ("{ENTER}");
}
WScript.quit();
but Windows says it cant open the file and asks me to choose an application to open it.
for Winamp /S switch I got the "Incorrect Command Line Parameters." message.
Added Code tages for easier reading