robbie2 Posted January 5, 2005 Posted January 5, 2005 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 Posted January 5, 2005 Posted January 5, 2005 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$1 > Documents and Settings > All Users > Start Menu > (copy over ad-aware installation folder to here)hope that makes sense
Confused Amused Posted January 5, 2005 Posted January 5, 2005 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.DEL "%UserProfile%\Desktop\Ad-Aware SE Professional.lnk" /qDEL "%UserProfile%\Desktop\Ad-Watch SE Professional.lnk" /qMOVE "%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
robbie2 Posted January 5, 2005 Author Posted January 5, 2005 could you show me how id incorporate that in to this runonce cmd?cmdow @ /HID@Echo OffFOR %%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\RunOnceExREG ADD %KEY% /V TITLE /D "Installing programs" /fREG ADD %KEY%\000 /VE /D "WinRAR 3.40" /fREG ADD %KEY%\000 /V 1 /D "c:\Install\wrar340corp.exe /S" /fREG ADD %KEY%\001 /VE /D "Ad-Aware Pro" /fREG ADD %KEY%\001 /V 1 /D "C:\Install\aawsepro.exe /S" /fREG ADD %KEY%\001 /V 2 /D "taskkill /IM Adaware.exe /F" /fREG ADD %KEY%\001 /V 3 /D "taskkill /IM hh.exe /F" /fREG ADD %KEY%\001 /V 4 /D "taskkill /IM Ad-Aware.exe /F" /fREG ADD %KEY%\002 /VE /D "Google Toolbar (without advanced features)" /fREG ADD %KEY%\002 /V 1 /D "C:\Install\GoogleToolbarInstaller.exe /q /d" /fREG ADD %KEY%\003 /VE /D "PC Cillin" /fREG ADD %KEY%\003 /V 1 /D "C:\install\PCCILLIN\pcc.msi /qb REBOOT=Supress" /fREG ADD %KEY%\004 /VE /D "VideoLAN 0.8.1" /fREG ADD %KEY%\004 /V 1 /D "C:\install\vlc.exe /S" /fREG ADD %KEY%\005 /VE /D "Windows Media Player 10" /fREG ADD %KEY%\005 /V 1 /D "C:\Install\WMP\MP10silent.exe" /fREG ADD %KEY%\006 /VE /D "Registry Tweaks" /fREG ADD %KEY%\006 /V 1 /D "REGEDIT /S C:\Install\tweaks.reg" /fREG ADD %KEY%\007 /VE /D "Kazaa Codec Pack" /fREG ADD %KEY%\007 /V 1 /D "C:\Install\klmcodec116.exe /silent" /fREG ADD %KEY%\008 /VE /D "Sun Java VM 1.4.2" /fREG ADD %KEY%\008 /V 1 /D "C:\Install\j2re-1_4_2_01-windows-i586.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1"" /fEXITcheers
rendrag Posted January 5, 2005 Posted January 5, 2005 the easiest way you could accomplish this.1. create a cmd file (i.e. startmenu.cmd) consisting ofMOVE "%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 /qand add that to your runonce, for example here:REG ADD %KEY%\001 /VE /D "Ad-Aware Pro" /fREG ADD %KEY%\001 /V 1 /D "C:\Install\aawsepro.exe /S" /fREG ADD %KEY%\001 /V 2 /D "taskkill /IM Adaware.exe /F" /fREG ADD %KEY%\001 /V 3 /D "taskkill /IM hh.exe /F" /fREG ADD %KEY%\001 /V 4 /D "taskkill /IM Ad-Aware.exe /F" /fREG ADD %KEY%\001 /V 5 /D "startmenu.cmd" /f
vcBlackBox Posted January 5, 2005 Posted January 5, 2005 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 propertiesAd-Aware SE Professional.lnkTarget: "%ProgramFiles%\Lavasoft\Ad-Aware SE Professional\Ad-Aware.exe"Start in: %ProgramFiles%\Lavasoft\AD-AWA~1\Ad-Watch SE Professional.lnkTarget: "%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.lnkAs 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.
Astalavista Posted January 5, 2005 Posted January 5, 2005 all u need to do is email rarlabs they will send u a help file on how to do it
vcBlackBox Posted January 5, 2005 Posted January 5, 2005 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now