I want to install, update, and run adaware silently. or at least by just using the batch script.
So far, I've gotten the install, and a manual update. (I d/l the ref file in advance).
I'm having trouble making the switches work.
My code looks like this so far
"C:\Program Files\Lavasoft\Ad-aware 6\Ad-Aware.exe" "C:" +a +0
The program starts, and exits immediatly.
Ad-aware.exe [Path to scan][Options]
The first parameter must be the full path and executable name of the Ad-aware core application, the second specifies the directory or drive which is to be scanned.
If you run a batch-file from within the Ad-aware 6 Folder, you only need to specify the executable name ("Ad-aware.exe")
An example batch file could look like this:
C:\Lavasoft\Ad-aware\Ad-Aware.exe "C:\Program files\Unzip" +L:"N:\" +a +0
The parameters have the following function:
+A: perform all automatically (scan, remove and clean)
+S: Silent mode, minimize Ad-aware during the operation
+0: don't use in-depth scan
+1: use in-depth scan
if neither +0 nor +1 is used, the last user setting will be used.
NOTE: to send parameters to an already running instance, add the +SD parameter.
The following parameters are supported by the Professional edition:
+L:"pathname" - path where the logfiles are directed to. if none specified, the path is read from the pref.ini file
+R:"refname" - path+filename to the reffile used for this scan.if none specified, the path is read from the pref.ini file
+P:"prefname" - path+filename to the preference-file (default name "prefs.ini" used for this scan.if none specified, pref.ini within the Ad-aware folder is used.
C:\Lavasoft\Ad-aware\Ad-Aware.EXE "C:\My documents" +L:"C:Logs\" +a +1 +R:"C:\testreflist.ref" +S +P:"D:\safeprefs.ini"
This example will load Ad-aware from C:\Lavasoft\Ad-aware\Ad-Aware.EXE, scans C:\My documents in silent, full automated-mode, using indepth scan, using the following reference file : C:\testreflist.ref , loading a particular preferencefile from D:\safeprefs.ini.