Help - Search - Members - Calendar
Full Version: ad-aware silent pro prob
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   


Google Internet Forums Unattended CD/DVD Guide
robbie2
im using the runoncecmd for the silent install but when the computer is logged outta admin and in to the users's pc it doesnt show ad-aware in the users start menu how can i do this with out having to make a cmd script that copys the folder over?
rendrag
ad-aware only installs in the current user's profile, it does not install to all users. You could make folders in your $1 directory and rather than copy the programs and shortcuts etc.. over, you could have them in the %allusersprofile% directory already
CODE
$1 > Documents and Settings > All Users > Start Menu > (copy over ad-aware installation folder to here)


hope that makes sense
Confused Amused
Your easiest way is definitely a cleanup script. Here's my AdAware section although I move the AdAware and AdWatch shortcuts to a folder called System and delete the rest of the AdAware folder.

CODE
DEL "%UserProfile%\Desktop\Ad-Aware SE Professional.lnk" /q
DEL "%UserProfile%\Desktop\Ad-Watch SE Professional.lnk" /q

MOVE "%UserProfile%\Start Menu\Programs\Lavasoft Ad-Aware SE Professional\Ad-Aware SE Professional.lnk" "%AllUsersProfile%\Start Menu\Programs\System\Ad-Aware Professional.lnk"
RD "%UserProfile%\Start Menu\Programs\Lavasoft Ad-Aware SE Professional" /s /q
rendrag
yeah, that way seems much easier
robbie2
could you show me how id incorporate that in to this runonce cmd?

CODE
cmdow @ /HID
@Echo Off

FOR %%i IN (D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: ) DO IF EXIST %%i:\win51ip.SP2 SET CDROM=%%i:

SET PP=C:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing programs" /f

REG ADD %KEY%\000 /VE /D "WinRAR 3.40" /f
REG ADD %KEY%\000 /V 1 /D "c:\Install\wrar340corp.exe /S" /f

REG ADD %KEY%\001 /VE /D "Ad-Aware Pro" /f
REG ADD %KEY%\001 /V 1 /D "C:\Install\aawsepro.exe /S" /f
REG ADD %KEY%\001 /V 2 /D "taskkill /IM Adaware.exe /F" /f
REG ADD %KEY%\001 /V 3 /D "taskkill /IM hh.exe /F" /f
REG ADD %KEY%\001 /V 4 /D "taskkill /IM Ad-Aware.exe /F" /f

REG ADD %KEY%\002 /VE /D "Google Toolbar (without advanced features)" /f
REG ADD %KEY%\002 /V 1 /D "C:\Install\GoogleToolbarInstaller.exe /q /d" /f

REG ADD %KEY%\003 /VE /D "PC Cillin" /f
REG ADD %KEY%\003 /V 1 /D "C:\install\PCCILLIN\pcc.msi /qb REBOOT=Supress" /f

REG ADD %KEY%\004 /VE /D "VideoLAN 0.8.1" /f
REG ADD %KEY%\004 /V 1 /D "C:\install\vlc.exe /S" /f

REG ADD %KEY%\005 /VE /D "Windows Media Player 10" /f
REG ADD %KEY%\005 /V 1 /D "C:\Install\WMP\MP10silent.exe" /f

REG ADD %KEY%\006 /VE /D "Registry Tweaks" /f
REG ADD %KEY%\006 /V 1 /D "REGEDIT /S C:\Install\tweaks.reg" /f


REG ADD %KEY%\007 /VE /D "Kazaa Codec Pack" /f
REG ADD %KEY%\007 /V 1 /D "C:\Install\klmcodec116.exe /silent" /f

REG ADD %KEY%\008 /VE /D "Sun Java VM 1.4.2" /f
REG ADD %KEY%\008 /V 1 /D "C:\Install\j2re-1_4_2_01-windows-i586.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"" /f



EXIT


cheers
rendrag
the easiest way you could accomplish this.

1. create a cmd file (i.e. startmenu.cmd) consisting of
CODE
MOVE "%UserProfile%\Start Menu\Programs\Lavasoft Ad-Aware SE Professional\Ad-Aware SE Professional.lnk" "%AllUsersProfile%\Start Menu\Programs\System\Ad-Aware Professional.lnk"
RD "%UserProfile%\Start Menu\Programs\Lavasoft Ad-Aware SE Professional" /s /q


and add that to your runonce, for example here:


CODE
REG ADD %KEY%\001 /VE /D "Ad-Aware Pro" /f
REG ADD %KEY%\001 /V 1 /D "C:\Install\aawsepro.exe /S" /f
REG ADD %KEY%\001 /V 2 /D "taskkill /IM Adaware.exe /F" /f
REG ADD %KEY%\001 /V 3 /D "taskkill /IM hh.exe /F" /f
REG ADD %KEY%\001 /V 4 /D "taskkill /IM Ad-Aware.exe /F" /f
REG ADD %KEY%\001 /V 5 /D "startmenu.cmd" /f
robbie2
cheers thumbup.gif
vcBlackBox
This may or may not be helpful for some, but the other day when I used my UA cd, and it got to the Ad-aware setup there was an extra popup window telling me that the definitions were over 100+ days old, do u want to update ... blah blah. Needless to say, that sucks. I think my taskkill did not react quickly enough as the program was starting up.

But I think I found a way to solve it and have a cleaner setup routine without using any taskkill. You simply repackage the installed directory with winrar or 7-zip and create a couple of shortcuts for all users. That's basically it.

If you install Ad-Aware SE Professional Edition 1.05 normally, it does create some registry entries, however none of it is truelly relevant to the proper running and functioning of Ad-aware or the ad-watch program. It adds uninstall entries, right-click context scanning, and HKCU settings. The HKCU settings does not have to be there, because it will automatically self generate the default settings upon first use. And since it's retail, there are no keys added in the registry.

As for the shortcuts, I edited the properties

Ad-Aware SE Professional.lnk
Target: "%ProgramFiles%\Lavasoft\Ad-Aware SE Professional\Ad-Aware.exe"
Start in: %ProgramFiles%\Lavasoft\AD-AWA~1\

Ad-Watch SE Professional.lnk
Target: "%ProgramFiles%\Lavasoft\Ad-Aware SE Professional\Ad-Watch.exe"
Start in: %ProgramFiles%\Lavasoft\AD-AWA~1\

Placed them in $DOCS folder
$DOCS\All Users\Start Menu\Programs\Ad-Aware SE Professional.lnk
$DOCS\All Users\Start Menu\Programs\Ad-Watch SE Professional.lnk

As a side note, does anyone know how to use the "make shortcuts" feature in WinRAR. I've tried it a couple times with no success. It never creates the shortcut I desire. If someone has made it work for them, please post your example. Thanks. unsure.gif
Astalavista
all u need to do is email rarlabs they will send u a help file on how to do it
vcBlackBox
thanks for the info Astalavista. I know your winrar whiz, just hoping maybe u have made shortcuts before and could elaborate. Anyways I will give that a try.




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.