mazin Posted July 19, 2004 Author Share Posted July 19, 2004 Please, do the following to make a real test:0- Put sleep.exe in C:\Windows\System32\1- Uninstall Winamp 2.91 if it's already installed on your computer.2- Go to C:\Windows\ and delete the file "winamp.ini".3- Go to C:\Program Files\ and delete the folder "Winamp" if it's still there.4- Create a folder in the root of drive C and name it "Install".5- Inside "Install", create a folder and name it "Winamp".6- Put these files inside the folder "Winamp":- Winamp.exe (renamed from winamp291_full.exe to winamp.exe)- winamp.js (posted below, according to your customized installation)- winamp.ini (not needed by installation itself, but to have Winamp pre-configured)This means that the three files are in this path:C:\Install\Winamp\Winamp.exeC:\Install\Winamp\Winamp.jsC:\Install\Winamp\Winamp.ini7- Create a CMD file to contain the following:CLS@echo offECHO.ECHO Installing Winamp 2.91CD %systemdrive%\Install\Winamp\start %systemdrive%\Install\Winamp\winamp.jssleep 20taskkill /F /IM WINAMP.EXEcopy %systemdrive%\Install\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"EXITName it "main.cmd" or whatever you want. Put it inside the folder "Install". This means that the path to it is:C:\Install\main.cmd8- Close any open Windows, so that you see your desktop. Go to Start --> Run and type the following, then press Enter:C:\Install\main.cmdStay tuned! 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(2000);getWin("Winamp Setup", 500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(500);WshShell.SendKeys ("{TAB 3}");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 ("{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 ("{ENTER}");WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(5000);WshShell.SendKeys ("{TAB 2}");WScript.Sleep(500);WshShell.SendKeys ("{DOWN 2}");WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{UP}");WScript.Sleep(500);WshShell.SendKeys (" ");WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");}WScript.quit(); Link to comment Share on other sites More sharing options...
piechdibi Posted July 19, 2004 Share Posted July 19, 2004 HI! I've got a problem downloading the pdf file on the first post, apparently, it is corrupted... Can anyone re-post it, please?Thanks a lotPH Link to comment Share on other sites More sharing options...
mazin Posted July 19, 2004 Author Share Posted July 19, 2004 Right-click and Save Target As... from the shortcut menu. Link to comment Share on other sites More sharing options...
piechdibi Posted July 19, 2004 Share Posted July 19, 2004 I was using Firefox, but with IE it works. Weird !!! Link to comment Share on other sites More sharing options...
mazin Posted July 19, 2004 Author Share Posted July 19, 2004 I was using Firefox, but with IE it works. Weird !!! NP! You're welcome. Link to comment Share on other sites More sharing options...
mazin Posted July 19, 2004 Author Share Posted July 19, 2004 Please, do the following to make a real test:0- Put sleep.exe in C:\Windows\System32\.........Still, you can simplify the installation process much more, by using this batch instead:CLS@echo offECHO.ECHO Installing Winamp 2.91CD %systemdrive%\Install\Winamp\start /wait %systemdrive%\Install\Winamp\winamp.jscopy %systemdrive%\Install\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"EXITYes! No sleep and no taskkill!Then, add these two lines at the end of your script:WScript.Sleep(2000);WshShell.SendKeys ("%{F4}");This means that the last part in your script looks like this:WScript.Sleep(2000);WshShell.SendKeys ("%{F4}");}WScript.quit();Other things remain unchanged.______________________________________________________________Well!Because some setup screens of v2.91 are different from v5.0x, here's another PDF tutorial for v2.91 and similar versions. Right-click and "Save Target As...". Link to comment Share on other sites More sharing options...
Marty P Posted July 19, 2004 Share Posted July 19, 2004 well i tried it your way and still no succes. The winamp.ini is still needed? When the batch runs i see installing winamp 2.91 en the winamp.js pops-up. then nothing happens Link to comment Share on other sites More sharing options...
mazin Posted July 19, 2004 Author Share Posted July 19, 2004 well i tried it your way and still no succes. The winamp.ini is still needed? When the batch runs i see installing winamp 2.91 en the winamp.js pops-up. then nothing happens Pardon! I doubt it!Probably, you didn't follow the instructions well.Both methods were tested on my PC, with and without sleep & taskkill.And, what do you mean by "winamp.js pops-up"? Do you have some antivirus program running at the time of installation?winamp.js does not show itself up in any way.EDIT:Also, you might have installed the lite version of WinXP, so some components are missing from your system.Look in C:\Windows\system32\ for the file "wscript.exe". This file is needed if you're going to run scripts. Link to comment Share on other sites More sharing options...
Marty P Posted July 20, 2004 Share Posted July 20, 2004 [quote name= And' date=' what do you mean by "winamp.js pops-up"? Do you have some antivirus program running at the time of installation? winamp.js does not show itself up in any way.Also, you might have installed the lite version of WinXP, so some components are missing from your system.Look in C:\Windows\system32\ for the file "wscript.exe". This file is needed if you're going to run scripts.Yes i think i had norton running at the time of testing. I will shut it down the next time. wscript.exe i have in my xp version. But i used nlite. but i think wscript is still in it. but my winamp.ini ..... first instal winamp and then get the winamp.ine file and after that copy it to c:\instal\winamp.. and after that delete the file from c:\windows. thats the wright way to do it hu Link to comment Share on other sites More sharing options...
mazin Posted July 20, 2004 Author Share Posted July 20, 2004 Some antivirus programs disallow running scripts. This is not limited to JScripts only, but any scripts.If you follow instructions on the last page, you'll have no problem at all. And you'll be pleased with the results.After you do it successfully, we'll talk about your XPCD afterwards. It looks like you're new to this issue. Link to comment Share on other sites More sharing options...
Marty P Posted July 20, 2004 Share Posted July 20, 2004 This is my winamp.js. Is this one wrong? no I don't think so.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(2000);getWin("Winamp Setup", 500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(500);WshShell.SendKeys ("{TAB 3}");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 ("{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 ("{ENTER}");WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(5000);WshShell.SendKeys ("{TAB 2}");WScript.Sleep(500);WshShell.SendKeys ("{DOWN 2}");WScript.Sleep(500);WshShell.SendKeys ("{TAB}");WScript.Sleep(500);WshShell.SendKeys ("{UP}");WScript.Sleep(500);WshShell.SendKeys (" ");WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");WScript.Sleep(2000);WshShell.SendKeys ("%{F4}");}WScript.quit();This is my batch CLS@echo offECHO.ECHO Installing Winamp 2.91CD %systemdrive%\Install\Winamp\start /wait %systemdrive%\Install\Winamp\winamp.jscopy %systemdrive%\Install\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"EXITThis batch is in dir: C:\Installthe .js/.exe/.ini is in dir C:\Install\WinampI disabled norton av.the .ini file contains only this:[WinampReg]NeedReg=0ID=096A2E6EAECD64469F774014838B5A76RegDataLen=452RegData2=0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007761322E39310000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000A2Stats=00000001,00000018,00000018,00000005,00000003,00000005,00000000,Well what the ... is my problem? Link to comment Share on other sites More sharing options...
mazin Posted July 20, 2004 Author Share Posted July 20, 2004 I disabled norton av.the .ini file contains only this:[WinampReg]NeedReg=0ID=096A2E6EAECD64469F774014838B5A76RegDataLen=452RegData2=0000000000....................................................Well what the ... is my problem? You'll drive me crazy! This is not the correct winamp.ini, winamp.ini is meant to be that one from C:\Program Files\Winamp\winamp.ini! This is mentioned in the first post.However, this can't cause the installation to be stopped. Still, I think ScriptBlocking is enabled by your AV.Listen! Uninstall your AV, then try again. Link to comment Share on other sites More sharing options...
Marty P Posted July 20, 2004 Share Posted July 20, 2004 You'll drive me crazy!Arrggh I'll drive MYSELF cracy Well i tried it in safe modes. Same problemdisabled script blocking in Norton. Same problem.Has windows itself a scriptblocker? If that doesn work i'll uninstall the AV. (but i don't like that optionI have sun java on my system. Should i adjust some preferences there? Link to comment Share on other sites More sharing options...
Solid as a rock Posted July 20, 2004 Share Posted July 20, 2004 You'll drive me crazy!Arrggh I'll drive MYSELF cracy Well i tried it in safe modes. Same problemdisabled script blocking in Norton. Same problem.Has windows itself a scriptblocker? If that doesn work i'll uninstall the AV. (but i don't like that optionI have sun java on my system. Should i adjust some preferences there? i think you both need a pause before drive each crazy....no SUN java dont give that trouble... its more probally norton. mazin already say. uninstall norton. you can disable norton but some services cant disabled, so norton is still do his work....after the test install norton again and you know it if mazin was right.... but please, give it the time before driving yourself crazy.... Link to comment Share on other sites More sharing options...
Marty P Posted July 20, 2004 Share Posted July 20, 2004 uninstalled Norton AV. restart. winamp.cmd... same problem!!! Maybe i have a service disabled dat i need for the process? I think this method is not made for me. I'll try the winamp.msi method. This one is taking too much time!!!! Sorry Mazin 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