Jump to content

Winamp - Selectable Features


mazin

Recommended Posts


thats correct no more internet connection, ha ha!

I just never clicked down down at that point , I felt

I was connected to the net via lan and it should stay

that way, just not thinking.

bonedaddy

EDIT

I forgot to ask if I could pm you with something to look at,

I need some advice on how to get rid of "ECHO IS OFF" in

textsetup and dosnet after applying a command. Oh yes I made

an autoit for avg it seems very similar to js, no reason I couldn't

use js instead is there?

Link to comment
Share on other sites

Here's a simpler instance for the batch and JScript of Winamp v5.03a. Follow the same instructions in the first post. In this instance, you won't need sleep.exe nor taskkill.
cls

@echo off

ECHO.

ECHO Installing Winamp 5.03a

CD %systemdrive%\Install\Winamp\

Start /wait %systemdrive%\Install\Winamp\winamp.js

copy %systemdrive%\Install\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"

ECHO.

ECHO Registering for the Pro Version

REG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regname /d YourName /f

REG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regkey /d xxxxx-xxxxx-xxxxx-xxxxx /f

exit

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");//name of your installer

while (oExec.Status == 0)

{

WScript.Sleep(2000);//time needed by installer to extract its files

getWin("Winamp Setup", 500);//name of setup screen and time to hold it

WshShell.SendKeys ("{ENTER}");//hitting Agree button

WScript.Sleep(500);//time to wait before executing next keystroke

WshShell.SendKeys ("{TAB}");//moving tabstop to the features pane

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Winamp Agent

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting Winamp Agent

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Winamp Library

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Modern Skin Support

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting Modern Skin Support

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting User Interface Extensions

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Audio File Support

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Video File Support

WScript.Sleep(500);

WshShell.SendKeys ("%{RIGHT}");//expanding Video File Support

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Nullsoft Video

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting AVI/MPG/ASF

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting AVI/MPG/ASF

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");//hitting Next button

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");//hitting Next button

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Desktop Icon

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting Desktop Icon

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");//hitting Next button

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN 2}");//setting Internet Connection to Not connected...

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");//hitting Next button

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");//hitting Install button

WScript.Sleep(45000);//time to install Winamp, so no need to sleep.exe NEW

WshShell.SendKeys ("%{F4}");//Closing Winamp, so no need to taskkill NEW

}

WScript.quit();

i have use this and every time i get a error during setup. see pic for the error. when i read this line (13th) in .js i see nothing important....

i use this:

start /wait %systemdrive%\Install\Applications\Winamp\winamp.js
copy %systemdrive%\Install\Applications\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"

the files winamp.js winamp.ini winamp.exe are all in the same map \Install\Applications\Winamp\

this is my line 13 in the winamp.js

var oExec = WshShell.Exec("winamp.exe");//name of your installer

Link to comment
Share on other sites

I think you forgot to add this entry to your batch:

CD %systemdrive%\Install\Applications\Winamp\

So, JS can't know where to be guided to winamp.exe! (line 13)

Link to comment
Share on other sites

I think you forgot to add this entry to your batch:

CD %systemdrive%\Install\Applications\Winamp\

So, JS can't know where to be guided to winamp.exe! (line 13)

ohw... i never use CD. i known it means change directory but i dont understand why i need this with the winamp install only :) but ok i will try it now....

Link to comment
Share on other sites

We use CD to tell wscript.exe the Current Directory of JS.

Also, take care of this (in red) if you have a non-English WinXP:

copy %systemdrive%\Install\Applications\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"

Link to comment
Share on other sites

We use CD to tell wscript.exe the Current Directory of JS.

Also, take care of this (in red) if you have a non-English WinXP:

copy %systemdrive%\Install\Applications\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"

in dutch it is called program files too....

Link to comment
Share on other sites

Good. I didn't know it.

i am sorry i forget to post here if it works or not. yes the CD line is very essential and it works without problems. 45000 i bring down to 5000 so it stay open 2 a 3 sec. winamp isnt able to place a lnk in quicklaunchbar? ( i think because the quicklaunch bar dont exist at that moment? also the folder \install\applications\winamp wont be deleted after installing everything. i have heard from someone if i call the scripteditor i need a pskill to kill the scripteditor.....?

i have asked a few friend to watch at the unattend winamp setup. they say:"whooohooo automatically moving and clicking.... nice!!!" :)

Link to comment
Share on other sites

Good news! I just wanted to know if you still have problems.

I think using taskkill /F /IM wscript.exe should terminate wscript.exe running in the background in your case. This should allow "\install\applications\winamp" to be deleted. However, it doesn't occur to me that "\install\applications\winamp" isn't deleted.

Thanks for your feedback.

Link to comment
Share on other sites

Dedicated to SolidasRock and whoever uses it! :) This example is for v5.03a or v5.04!

Now, you can call JS from anywhere. No CD needed! No sleep.exe! No taskkill! What else, guys?!

cls

@echo off

ECHO.

ECHO Installing Winamp 5.03a

Start /wait %systemdrive%\Install\Winamp\winamp.js

copy %systemdrive%\Install\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"

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");

WshShell.Run("%systemdrive%\\Install\\Winamp\\winamp.exe");

{

WScript.Sleep(2000);//time needed by installer to extract its files

getWin("Winamp Setup", 500);//name of setup screen and time to hold it

WshShell.SendKeys ("{ENTER}");//hitting Agree button

WScript.Sleep(500);//time to wait before executing next keystroke

WshShell.SendKeys ("{TAB}");//moving tabstop to the features pane

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Winamp Agent

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting Winamp Agent

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Winamp Library

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Modern Skin Support

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting Modern Skin Support

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting User Interface Extensions

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Audio File Support

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Video File Support

WScript.Sleep(500);

WshShell.SendKeys ("%{RIGHT}");//expanding Video File Support

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Nullsoft Video

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting AVI/MPG/ASF

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting AVI/MPG/ASF

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");//hitting Next button

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");//hitting Next button

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Desktop Icon

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting Desktop Icon

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");//hitting Next button

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN 2}");//setting Internet Connection to Not connected...

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");//hitting Next button

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");//hitting Install button

WScript.Sleep(45000);//time to install Winamp, so no need to sleep.exe NEW

WshShell.SendKeys ("%{F4}");//Closing Winamp, so no need to taskkill NEW

}

var WshShell = WScript.CreateObject("WScript.Shell");//registering for the Pro version

WshShell.RegWrite ("HKLM\\SOFTWARE\\Nullsoft\\Winamp\\regkey", "xxxxx-xxxxx-xxxxx-xxxxx");

WshShell.RegWrite ("HKLM\\SOFTWARE\\Nullsoft\\Winamp\\regname", "MyName");

WScript.quit();

Link to comment
Share on other sites

hi. just noticed that winamp has been updated to 5.0.4. will the javascript workaround work with this new release? thanks. :)

Anyone knows how to install Winamp, using his keyboard only, he can definitely write his own JScript, whatever the version is.

If you need help, download the PDF. It should explain the logic behind the JS. And it's easy.

However, I'll download the new version. Thanks for the link.

EDIT:

v5.04 is exactly the same components as v5.03a. Nothing special, although it's 4.35 MB while v5.03a was 4.20 MB.

Even "eMusic" isn't included in v5.04, while it was in v5.03c.

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