nateklomp Posted May 21, 2004 Posted May 21, 2004 Hello All,I use Netzero for backup dial-up connection, and would like to include the client in my unattended installs. Here's what I've got so far:ECHO Installing NetZero 7.0 Client...ECHO Please wait...start /wait %systemdrive%\Apps\Netzero.exe /SECHO.ECHO Killing Netzero.exe processtaskkill.exe /F /IM exec.exeIt works ok except that the installer opens a pop-up alert box warning to "close all browser windows before proceeding" which has to closed before batch can continue; what I'd like to know is how to disable it...
WwTIPPYwW Posted May 22, 2004 Posted May 22, 2004 maybe close.vbs?close.vbsSet WshShell = WScript.CreateObject("WScript.Shell")WScript.Sleep 1000WshShell.Sendkeys "%{F4}"do this:ECHO Installing NetZero 7.0 Client...ECHO Please wait...start /wait %systemdrive%\Apps\Netzero.exe /Sstart /wait %systemdrive%\Apps\close.vbsECHO.ECHO Killing Netzero.exe processtaskkill.exe /F /IM exec.exeof course if you put close.vbs in \$OEM$\$$\System32 you'd just need to do start /wait close.vbsAlso - install this before any antivirus software - otherwise the vbs script will probably be blocked.
nateklomp Posted May 25, 2004 Author Posted May 25, 2004 Thanks Mate,Unfortunately it doesn't work as intended, rather it "corrupts" the application install.Also, it can't be run with a start /wait previous--it won't kick off until after the /wait is reconciled, so you have to click on the alert box anyway.Ah, well...some things just have to be manually installed, I guess.
nateklomp Posted May 25, 2004 Author Posted May 25, 2004 Hey,Great, finally got it to work...Install.cmd:---ECHO .Installing NetZero free internet access client...start %systemdrive%\INSTALL\Netzero.exe /SECHO Completing Installation...start %systemdrive%\INSTALL\close.vbsECHO. Closing Netzero Client...start %systemdrive%\INSTALL\close.vbsECHO .Killing Netzero application...TASKKILL.EXE /F /IM exec.exe---close.vbs:---Set WshShell=WScript.CreateObject("WScript.Shell")WScript.Sleep 1000WshShell.Sendkeys"~"---Seems obvious, now that you've shown me how to use a VBS.Alternately, I suppose I could have done this:close.vbs:---Set WshShell=WScript.CreateObject("WScript.Shell")WScript.Sleep 1000WshShell.Sendkeys"~"WScript.Sleep 5000WshShell.Sendkeys"%{F4}"---Unfortunately, it seems kinda risky in an unattended setup.Thanks again!
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