I got AdAware running with this script. You have to have AdAware installed for it to work. I get "error while loading definitions." I tried running it from ramdisk, copying extra files (log, unregaaw.exe, uninstall exe) and didn't fix it. Any ideas?
AdAwareSE.script 2.69KB
458 downloads
AdAware.script
Started by
Olri
, Jul 23 2006 02:38 PM
2 replies to this topic
#1
Posted 23 July 2006 - 02:38 PM
#2
Posted 23 July 2006 - 02:59 PM
Congratulations, it's a nice script!
d4vros might have figured out the reason why it gives the error:
original post
This might prove the need to add a new variable type in open builder: %userprofile%
A workaround to get this value is using the shellexecute command and cmd.exe:
It will output the value of %userprofile% into a text file, from where you read it to get the path to your definitions file.
You can also type just "echo %userprofile%" on the cmd.exe to see how this works..
This is a way long road just to get a small value, I'll probably add this as a %variable% on the next build..
btw: I liked the concept, but if the files aren't included, you should check if the directory or files exist - in order to give a more complete output message saying something like: "Adaware is not installed, please install it before using this script" when the program is not available.. (perhaps even adding the option to directly download it from the lavasoft server? 7zip can directly extract all sort of files from setup.exe files..)
Here's an interesting link on this:
http://www.911cd.net...showtopic=12162
d4vros might have figured out the reason why it gives the error:
It tries to use the settings in %userprofile%\Application Data\Lavasoft\Ad-Aware\ - if the config file there is pointing to a different location for the definitions, that probably could cause your error.
If you're running the pro version then you can specify the definitions in command line
+ref:drive:\path\defs.ref
original post
This might prove the need to add a new variable type in open builder: %userprofile%
A workaround to get this value is using the shellexecute command and cmd.exe:
FileCreateBlank,path.txt shellexecute,cmd.exe,hide,"/c echo [Path] > path.txt" shellexecute,cmd.exe,hide,"echo user=%userprofile% >> path.txt"
It will output the value of %userprofile% into a text file, from where you read it to get the path to your definitions file.
You can also type just "echo %userprofile%" on the cmd.exe to see how this works..
This is a way long road just to get a small value, I'll probably add this as a %variable% on the next build..
btw: I liked the concept, but if the files aren't included, you should check if the directory or files exist - in order to give a more complete output message saying something like: "Adaware is not installed, please install it before using this script" when the program is not available.. (perhaps even adding the option to directly download it from the lavasoft server? 7zip can directly extract all sort of files from setup.exe files..)
Here's an interesting link on this:
http://www.911cd.net...showtopic=12162
#3
Posted 24 July 2006 - 11:38 AM
Ad-Aware saves it's settings file here:
I pre-configured all my settings, and copy that file into that directory when ad-aware is run.
Example:
I'm not sure if the +ref command works in the free version.
%UserProfile%\Application Data\Lavasoft\Ad-Aware\settings.awcIt's possible if that directory isn't created ad-aware might have issues.
I pre-configured all my settings, and copy that file into that directory when ad-aware is run.
Example:
xcopy %ProgramFiles%\RunScanner\settings.awc "%UserProfile%\Application Data\Lavasoft\Ad-Aware\"
I'm not sure if the +ref command works in the free version.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users