bonedaddy Posted July 17, 2004 Share Posted July 17, 2004 Ok now it works with runonceEx, batch file, and RunOnceEx from cd.use this for runonceex from cdREG ADD %KEY%\055 /VE /D "Installing Winamp 5.03a"REG ADD %KEY%\055 /V 01 /D "cmd.exe /c copy %CDROM%\software\Winamp\winamp.exe %systemdrive%\REG ADD %KEY%\055 /V 02 /D "cmd.exe /c copy %CDROM%\software\Winamp\winamp.js %systemdrive%\REG ADD %KEY%\055 /V 03 /D "cmd.exe /c echo [WinampReg]>%systemroot%\winamp.iniREG ADD %KEY%\055 /V 04 /D "cmd.exe /c echo IsFirstInst=>>%systemroot%\winamp.iniREG ADD %KEY%\055 /V 05 /D "cmd.exe /c echo NeedReg=>>%systemroot%\winamp.iniREG ADD %KEY%\055 /V 06 /D "sleep 2REG ADD %KEY%\055 /V 07 /D "cmd.exe /c CD %systemdrive%\REG ADD %KEY%\055 /V 08 /D "taskkill /F /IM IEXPLORE.EXEREG ADD %KEY%\055 /V 09 /D "%systemdrive%\winamp.jsREG ADD %KEY%\055 /V 10 /D "sleep 60REG ADD %KEY%\055 /V 11 /D "taskkill /F /IM WINAMP.EXEREG ADD %KEY%\055 /V 12 /D "cmd.exe /c del /Q %systemdrive%\winamp.jsREG ADD %KEY%\055 /V 13 /D "cmd.exe /c del /Q %systemdrive%\winamp.exeREG ADD %KEY%\055 /V 14 /D "cmd.exe /c copy %CDROM%\software\Winamp\Winamp.ini \"%systemdrive%\Program Files\Winamp\""REG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regname /t REG_SZ /d "NAME" /fREG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regkey /t REG_SZ /d "XXXXX-XXXXX-XXXXX-XXXXX" /fjust moved taskkill IE to a location above .js file works fine.thanks again mazinbonedaddy Link to comment Share on other sites More sharing options...
mazin Posted July 17, 2004 Author Share Posted July 17, 2004 Good work, bonedaddy.Thank you for your time. Link to comment Share on other sites More sharing options...
esp Posted July 17, 2004 Share Posted July 17, 2004 hello,you have a strange way of using the " signs.Why put a beginning and an end for the first lineREG ADD %KEY%\055 /VE /D "Installing Winamp 5.03a"And later you don't close them anymore. (nor do you put an /f at the end)REG ADD %KEY%\055 /V 06 /D "sleep 2REG ADD %KEY%\055 /V 08 /D "taskkill /F /IM IEXPLORE.EXEbtw, what do the /F /IM codes stand for?thanks Link to comment Share on other sites More sharing options...
mazin Posted July 17, 2004 Author Share Posted July 17, 2004 Just variety!/F --> Force (termination)/IM --> Image (i.e., process or program) Link to comment Share on other sites More sharing options...
Marty P Posted July 18, 2004 Share Posted July 18, 2004 I've deleted the cwd= path in the the winamp.ini. Do i also have to delete the RecentURL1 (2,3,4,5,...)=http:**********?? And what about the last_shorturl=http:// Link to comment Share on other sites More sharing options...
mazin Posted July 18, 2004 Author Share Posted July 18, 2004 I've deleted the cwd= path in the the winamp.ini. Do i also have to delete the RecentURL1 (2,3,4,5,...)=http:**********?? And what about the last_shorturl=http://Deleting absolute paths inside your INI is required if you're going to install Winamp into a drive other than C or whatever.NB: In the PDF tutorial, there's explained how to install Winamp in a drive other than your system drive.Winamp will write those paths again after installation, according to the drive it's installed to.But web links are not a problem in anyway. So, leave them there if you need them or delete if you don't need them. It's up to you. Link to comment Share on other sites More sharing options...
Marty P Posted July 18, 2004 Share Posted July 18, 2004 Oke i've made my script (winamp.js). But when i try to do a silent install i get an error. sleep.exe is not found. So where can i get it? And after the sleep error i get an error about WINAMP.JS. That file can't be found either. This is my cmd: ECHO Installing Winamp 2.91echo [WinampReg]>%systemroot%\winamp.iniecho IsFirstInst=>>%systemroot%\winamp.iniecho NeedReg=>>%systemroot%\winamp.iniCD %systemdrive%\install\applications\Winamp\Start %systemdrive%\install\applications\Winamp\winamp.jssleep 60taskkill /F /IM WINAMP.EXEcopy %systemdrive%\install\applications\Winamp.ini "%systemdrive%\Program Files\Winamp\"ECHO. Link to comment Share on other sites More sharing options...
doobie Posted July 18, 2004 Share Posted July 18, 2004 Oke i've made my script (winamp.js). But when i try to do a silent install i get an error. sleep.exe is not found. So where can i get it? And after the sleep error i get an error about WINAMP.JS. That file can't be found either. This is my cmd: ECHO Installing Winamp 2.91echo [WinampReg]>%systemroot%\winamp.iniecho IsFirstInst=>>%systemroot%\winamp.iniecho NeedReg=>>%systemroot%\winamp.iniCD %systemdrive%\install\applications\Winamp\Start %systemdrive%\install\applications\Winamp\winamp.jssleep 60taskkill /F /IM WINAMP.EXEcopy %systemdrive%\install\applications\Winamp.ini "%systemdrive%\Program Files\Winamp\"ECHO.There is this fabulous website called Google that lets you search the internet. Give it a try… might work. /end sarcasm Link to comment Share on other sites More sharing options...
Marty P Posted July 18, 2004 Share Posted July 18, 2004 Thanks for the help You could try to help instead of the sarcasm. Yes i can find sleep.exe with google but will that solve the other problem or is there something wrong in my cmd? Link to comment Share on other sites More sharing options...
mazin Posted July 18, 2004 Author Share Posted July 18, 2004 Oke i've made my script (winamp.js). But when i try to do a silent install i get an error. sleep.exe is not found. So where can i get it? And after the sleep error i get an error about WINAMP.JS. That file can't be found either. This is my cmd: ECHO Installing Winamp 2.91echo [WinampReg]>%systemroot%\winamp.iniecho IsFirstInst=>>%systemroot%\winamp.iniecho NeedReg=>>%systemroot%\winamp.iniCD %systemdrive%\install\applications\Winamp\Start %systemdrive%\install\applications\Winamp\winamp.jssleep 60taskkill /F /IM WINAMP.EXEcopy %systemdrive%\install\applications\Winamp.ini "%systemdrive%\Program Files\Winamp\"ECHO.Here's sleep.exe: http://unattended.msfn.org/files/sleep.zipExtract it from zip archive and put it in system32 before you run the batch.I'm not sure wether you put the files in the place your batch says.If those paths are what you use, then the following files should be in this directory %systemdrive%\install\applications\Winamp\:- winamp.exe- winamp.js- winamp.iniThey should be there before you run the batch. Link to comment Share on other sites More sharing options...
Marty P Posted July 18, 2004 Share Posted July 18, 2004 I've put the sleep.exe in my \XP\CD-ROOT\I386\SYSTEM32 directory. But when i run the batch i get the error again. Can't find the sleep file. Do i have to put the sleep.exe in a main.cmd to extract it in the system32 dir? Link to comment Share on other sites More sharing options...
mazin Posted July 18, 2004 Author Share Posted July 18, 2004 I've put the sleep.exe in my \XP\CD-ROOT\I386\SYSTEM32 directory. But when i run the batch i get the error again. Can't find the sleep file. Do i have to put the sleep.exe in a main.cmd to extract it in the system32 dir?Here's where to put sleep.exeC:\XPCD\$OEM$\$$\System32\ Link to comment Share on other sites More sharing options...
Marty P Posted July 18, 2004 Share Posted July 18, 2004 Oke thanx, i'll try that Link to comment Share on other sites More sharing options...
Marty P Posted July 18, 2004 Share Posted July 18, 2004 I dont understand it. I'm testing the batch on my pc (not a complete unattended cd in vmware), with these settings: the winamp.js file for winamp 2.91------------------------------------------------------------------------function getWin(win, inc){var cntr = 0;while (!WshShell.AppActivate(win)){if (cntr==12) return true;cntr++;WScript.Sleep(inc);}return true;}var WshShell = new ActiveXObject("WScript.Shell");var oExec = WshShell.Exec("winamp.exe");while (oExec.Status == 0){WScript.Sleep(4000);getWin("Winamp Setup", 500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{DOWN}");WScript.Sleep(500);WshShell.SendKeys (" ");WScript.Sleep(500);WshShell.SendKeys ("{DOWN}");WScript.Sleep(500);WshShell.SendKeys (" ");WScript.Sleep(500);WshShell.SendKeys ("{DOWN}");WScript.Sleep(500);WshShell.SendKeys ("{DOWN}");WScript.Sleep(500);WshShell.SendKeys ("%{RIGHT}");WScript.Sleep(500);WshShell.SendKeys ("{DOWN}");WScript.Sleep(500);WshShell.SendKeys (" ");WScript.Sleep(500);WshShell.SendKeys ("{DOWN}");WScript.Sleep(500);WshShell.SendKeys (" ");WScript.Sleep(500);WshShell.SendKeys ("{DOWN}");WScript.Sleep(500);WshShell.SendKeys (" ");WScript.Sleep(500);WshShell.SendKeys ("{DOWN}");WScript.Sleep(500);WshShell.SendKeys ("{DOWN}");WScript.Sleep(500);WshShell.SendKeys (" ");WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(900);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{DOWN}");WScript.Sleep(500);WshShell.SendKeys ("{UP}");WScript.Sleep(500);WshShell.SendKeys (" ");WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{DOWN}");WScript.Sleep(500);WshShell.SendKeys ("{DOWN}");WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(500);}WScript.quit();---------------------------------------------------------------------------------------and this is the winamp.cmd:---------------------------------------------------------------------------------------CLS@echo offECHO.ECHO Installing Winamp 2.91echo [WinampReg]>c:\Winamp\winamp.iniecho IsFirstInst=>>c:\Winamp\winamp.iniecho NeedReg=>>c:\Winamp\winamp.iniCD c:\Winampstart c:\Winamp\winamp.jssleep 5taskkill /F /IM WINAMP.EXEcopy c:\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"ECHO.when the batch begins the winamp.js pops-up and i see the cmd :installing winamp 2.91. That last for 60 sec. and then the cmd stops and nothing happend!!! What am i doing wrong? Link to comment Share on other sites More sharing options...
mazin Posted July 18, 2004 Author Share Posted July 18, 2004 Well!I've got v2.91 and I'll test your work and let you know. Link to comment Share on other sites More sharing options...
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