Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

Running Ad Aware silently?

- - - - -

  • Please log in to reply
12 replies to this topic

#1
dkreifus

dkreifus

    dkreifus

  • Member
  • PipPip
  • 292 posts
I am tryin to make a batch file to help with my debugging.

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.


There are 10 kinds of people in this world. Those who understand binary, and those don't.

__________________
Posted Image


How to remove advertisement from MSFN

#2
ZoSTeR

ZoSTeR

    Member

  • Member
  • PipPip
  • 227 posts
From the Lavasoft forums:

In order to make any command line driven scans take place, first the default setting of 'No automated scanning' must be changed to either 'Use custom scan settings' or 'Perform smart system-scan.' These are found in the Configuration/Automation section under 'Startup scan mode.'

#3
dkreifus

dkreifus

    dkreifus

  • Member
  • PipPip
  • 292 posts
I have that all set up. But as soon as the window pops up, it vanishes in a second.
There are 10 kinds of people in this world. Those who understand binary, and those don't.

__________________
Posted Image

#4
Solid as a rock

Solid as a rock

    So solid as a rock is

  • Member
  • PipPipPipPipPip
  • 718 posts

I have that all set up. But as soon as the window pops up, it vanishes in a second.

i have noticed when using +SD it wont popup for a second anymore. but wont do anything automatically :)

NOTE: to send parameters to an already running instance, add the +SD parameter.


ahhh i have found it.
ad-aware.exe "C:\" +A +SD +0
works fine for me

but erm... it is much slower scanning then when do it handmatically, dont know why...?

#5
dkreifus

dkreifus

    dkreifus

  • Member
  • PipPip
  • 292 posts
Yea, it definately is slower. I dont like that. But I guess unattended, who cares?

It also doesn't automatically clean.

I guess they need to touch up the switches
There are 10 kinds of people in this world. Those who understand binary, and those don't.

__________________
Posted Image

#6
mapoupier

mapoupier
  • Member
  • 9 posts
i'm not sure if anybody is still looking at this post, but did anybody figured how to scan the registry automatically?

Marc

#7
spachtler

spachtler

    Member

  • Member
  • PipPip
  • 140 posts
i installed it on a running system,
then grab all files from the installed folder to a folder
on my later dvd, and then i can run it without install it.
its fully regged and functional....

cmdow @ /HID
md %systemdrive%\temp2
xcopy programme\adaware6\*.*  %systemdrive%\temp2 /S /Y
attrib -r c:\temp2\*.* /S /D
%systemdrive%\temp2\ad-aware.exe
RD /S /Q %systemdrive%\temp2\
exit

during use it i had to copy to a temp folder,
because on a dvd or cd the files are write-protected
and some files dont let adaware running, if they are protected.

method above works fine.

#8
marko2002

marko2002

    Newbie

  • Member
  • 12 posts
Guys, these are the switches I use ONCE the app is installed to automatically start, update, scan and delete all traces of spyware, though I guess with a little thought it's possible to install it and then run the below command though for my purposes I would only be interested in the program updating itself rather than performing a scan which would involve using only the "+update" command. To have the program update itself and then exit immediately you would use both the "+update +auto" command.

Initialise, Auto Update Definitions, Full Scan, Exit

C:\PROGRA~1\Lavasoft\AD-AWA~1\Ad-Aware.exe /full +update -mru +archives +auto


Hope this helps
Marko

#9
marko2002

marko2002

    Newbie

  • Member
  • 12 posts
As an after thought, the install switch for Ad-Aware SE Professional 1.06 is simply . . .

"%systemdrive%\Install\AdAware\AdAwarePro1.06.exe" /SILENT

Therefore I guess you could install the app using the above line, then run the update using . . .

C:\PROGRA~1\Lavasoft\AD-AWA~1\Ad-Aware.exe +update +auto


I'm trying this myself to see if this will work, will re-post my findings!
Cheers

#10
marko2002

marko2002

    Newbie

  • Member
  • 12 posts

As an after thought, the install switch for Ad-Aware SE Professional 1.06 is simply . . .

"%systemdrive%\Install\AdAware\AdAwarePro1.06.exe" /SILENT


Therefore I guess you could install the app using the above line, then run the update using . . .

C:\PROGRA~1\Lavasoft\AD-AWA~1\Ad-Aware.exe +update +auto

I'm trying this myself to see if this will work, will re-post my findings!
Cheers

<{POST_SNAPBACK}>


Hmm - does fine with the install and will actually execute Ad-Aware and attempt to update it, though it prompts you when asking 'Do you want to check for updates!!'. Even pressing yes then fails with an error explaining it can't connect to Lavasoft, guess it must be something to do with the fact that Windows isn't fully loaded at this stage.

Only other option is to basically install using the above switch, then create a batch file (for the Admin) and integrate this into the Startup folder on the installation files. Please correct me if anyone else can think of anything!

Cheers
Marko

#11
r0sWell

r0sWell

    Member

  • Member
  • PipPip
  • 179 posts
  • OS:Windows 7 x64
  • Country: Country Flag
i have strange things with my silent installation of Ad-aware 1.06 :

maybe you can help me.

i use this :
start /wait %CDROM%\Softwares\AdAware\ad-aware_se_1.06.exe /S
taskkill /F /IM Ad-Aware.exe /IM hh.exe

and in fact it doesn't install itself, but points to the Ad-aware installed on my 2nd HDD.
strange.
| i want to believe |

#12
cool400

cool400

    Junior

  • Member
  • Pip
  • 72 posts
@all

Could anybody tell me how to silently install Ad-Aware 1.06 SE and the languagepack using nLite?

I'm totally new to this and haven't found anything using the search-function :(

Thanks in advance!

Best regards

cool400 B)

#13
nimda79

nimda79
  • Member
  • 1 posts

@all

Could anybody tell me how to silently install Ad-Aware 1.06 SE and the languagepack using nLite?

I'm totally new to this and haven't found anything using the search-function :(

Thanks in advance!

Best regards

cool400 B)

http://www.ryanvm.ne...topic.php?t=641




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users



How to remove advertisement from MSFN