Winamp - Selectable Features
#41
Posted 18 July 2004 - 11:37 AM
#42
Posted 18 July 2004 - 11:46 AM
Marty P, on Jul 18 2004, 08:37 PM, said:
Here's where to put sleep.exe
C:\XPCD\$OEM$\$$\System32\
#44
Posted 18 July 2004 - 02:18 PM
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 off
ECHO.
ECHO Installing Winamp 2.91
echo [WinampReg]>c:\Winamp\winamp.ini
echo IsFirstInst=>>c:\Winamp\winamp.ini
echo NeedReg=>>c:\Winamp\winamp.ini
CD c:\Winamp
start c:\Winamp\winamp.js
sleep 5
taskkill /F /IM WINAMP.EXE
copy 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?
#45
Posted 18 July 2004 - 04:44 PM
I've got v2.91 and I'll test your work and let you know.
#46
Posted 18 July 2004 - 07:18 PM
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.exe
C:\Install\Winamp\Winamp.js
C:\Install\Winamp\Winamp.ini
7- Create a CMD file to contain the following:
your batch said:
@echo off
ECHO.
ECHO Installing Winamp 2.91
CD %systemdrive%\Install\Winamp\
start %systemdrive%\Install\Winamp\winamp.js
sleep 20
taskkill /F /IM WINAMP.EXE
copy %systemdrive%\Install\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"
EXIT
Name it "main.cmd" or whatever you want. Put it inside the folder "Install". This means that the path to it is:
C:\Install\main.cmd
8- Close any open Windows, so that you see your desktop. Go to Start --> Run and type the following, then press Enter:
C:\Install\main.cmd
Stay tuned!
winamp.js said:
{
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();
#47
Posted 19 July 2004 - 04:43 AM
Can anyone re-post it, please?
Thanks a lot
PH
#48
Posted 19 July 2004 - 04:58 AM
#50
Posted 19 July 2004 - 05:16 AM
piechdibi, on Jul 19 2004, 02:02 PM, said:
NP! You're welcome.
#51
Posted 19 July 2004 - 11:15 AM
mazin, on Jul 19 2004, 04:18 AM, said:
0- Put sleep.exe in C:\Windows\System32\
....
.....
Still, you can simplify the installation process much more, by using this batch instead:
your batch said:
@echo off
ECHO.
ECHO Installing Winamp 2.91
CD %systemdrive%\Install\Winamp\
start /wait %systemdrive%\Install\Winamp\winamp.js
copy %systemdrive%\Install\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"
EXIT
Yes! 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...".
#52
Posted 19 July 2004 - 02:33 PM
#53
Posted 19 July 2004 - 02:43 PM
Marty P, on Jul 19 2004, 11:33 PM, said:
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.
#54
Posted 19 July 2004 - 08:04 PM
mazin, on Jul 19 2004, 02:43 PM, said:
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
#55
Posted 20 July 2004 - 02:50 AM
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.
#56
Posted 20 July 2004 - 05:27 AM
Quote
{
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();
Quote
@echo off
ECHO.
ECHO Installing Winamp 2.91
CD %systemdrive%\Install\Winamp\
start /wait %systemdrive%\Install\Winamp\winamp.js
copy %systemdrive%\Install\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"
EXIT
This batch is in dir: C:\Install
the .js/.exe/.ini is in dir C:\Install\Winamp
I disabled norton av.
the .ini file contains only this:
Quote
ID=096A2E6EAECD64469F774014838B5A76
RegDataLen=452
RegData2=0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007761322
E393100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000A2
Stats=00000001,00000018,00000018,00000005,00000003,00000005,00000000,
Well what the ... is my problem?
#57
Posted 20 July 2004 - 05:44 AM
Marty P, on Jul 20 2004, 02:27 PM, said:
the .ini file contains only this:
Quote
NeedReg=0
ID=096A2E6EAECD64469F774014838B5A76
RegDataLen=452
RegData2=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.
#58
Posted 20 July 2004 - 05:58 AM
Quote
Arrggh I'll drive MYSELF cracy
Well i tried it in safe modes. Same problem
disabled 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 option
I have sun java on my system. Should i adjust some preferences there?
#59
Posted 20 July 2004 - 06:49 AM
Marty P, on Jul 20 2004, 01:58 PM, said:
Quote
Arrggh I'll drive MYSELF cracy
Well i tried it in safe modes. Same problem
disabled 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 option
I 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....
#60
Posted 20 July 2004 - 07:09 AM
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



Help

Back to top









