Jump to content

Winamp - Selectable Features


mazin

Recommended Posts

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.exe

C:\Install\Winamp\Winamp.js

C:\Install\Winamp\Winamp.ini

7- Create a CMD file to contain the following:

CLS

@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! :)

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


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 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...".

Link to comment
Share on other sites

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

[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

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

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 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:

[WinampReg]NeedReg=0

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?

:)

Link to comment
Share on other sites

I disabled norton av.

the .ini file contains only this:

[WinampReg]

NeedReg=0

ID=096A2E6EAECD64469F774014838B5A76

RegDataLen=452

RegData2=0000000000........

............................................

Well what the ... is my problem?

:)

You'll drive me crazy! :rolleyes:

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

You'll drive me crazy!

Arrggh I'll drive MYSELF cracy :rolleyes:

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? :)

Link to comment
Share on other sites

You'll drive me crazy!

Arrggh I'll drive MYSELF cracy :rolleyes:

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....

Link to comment
Share on other sites

uninstalled Norton AV. restart. winamp.cmd... same problem!!! Maybe i have a service disabled dat i need for the process? :rolleyes:

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...