Jump to content

Winamp - Selectable Features


mazin

Recommended Posts

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.

when watching at winamp.comthere is no 5.04 so it is not official or it is not from them....

but ermmmm.... emusic is not included anymore in 5.03c :rolleyes:

Link to comment
Share on other sites


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

Hey mazin, you've got a nice discussion going - and I'm a late entrant into the JS-method install. But where's the PDF? I sure would like to have a read of it!

(it looks like you hosted it at geocities, and they have stopped all downloads from your account, considering it as misuse)

Link to comment
Share on other sites

(it looks like you hosted it at geocities, and they have stopped all downloads from your account, considering it as misuse)

NO! Just right-click and save target as...

This works in IE but not in firefox, as said by someone before.

If you still can't download it, I can send it to you by email. NP! But it's still downloadable.

Link to comment
Share on other sites

Imagine, bonedaddy!

RunOnceEX strings can be shrunk to these lines only if we add a path inside JS:

REG ADD %KEY%\050 /VE /D "Winamp 5.03a

REG ADD %KEY%\050 /V 01 /D "%systemdrive%\Install\Winamp\winamp.js

REG ADD %KEY%\050 /V 02 /D "cmd.exe /c copy /Q %systemdrive%\Install\Winamp\Winamp.ini \"%systemdrive%\Program Files\Winamp\""

Notice the path in JS. Also, notice Run, and the line below it is deleted.

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(4000);//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}");//bypassing 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}");//bypassing User Interface Extensions

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//bypassing 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}");//bypassing 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 needed to install Winamp

WshShell.SendKeys ("%{F4}");//closing Winamp

}

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

I wonder if you can have time to test it from CD. I think you can, now, run it from CD directly without having to copy it to your hard disk first.

Link to comment
Share on other sites

hey mazin here is some info

REG ADD %KEY%\050 /VE /D "Installing Winamp 5.04

REG ADD %KEY%\050 /V 01 /D "%CDROM%\software\Winamp\winamp.js

REG ADD %KEY%\050 /V 02 /D "cmd.exe /c copy /Q %CDROM%\software\Winamp\Winamp.ini \"%systemdrive%\Program Files\Winamp\""

REG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regname /d "my name"

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

------------------------------------------------------------------------------------------------------

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 Run = WshShell.Run("%CDROM%\\software\\Winamp\\winamp.exe"); <---- line 13 not found----------

{

WScript.Sleep(3000);

getWin("Winamp Setup", 500);

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

WScript.Sleep(500);

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

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//

WScript.Sleep(500);

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

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting Library

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN 4}");//bypassing 4 features

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting Video

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting visualizations

WScript.Sleep(500);

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

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");//hitting Next for Destination Folder

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting start menu

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting desk top icon

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN 4}");//bypassing four features

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting playlist

WScript.Sleep(500);

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

WScript.Sleep(500);

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

WScript.Sleep(500);

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

WScript.Sleep(500);

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

WScript.Sleep(25000);

WshShell.SendKeys ("%{F4}");//closing Winamp

}

WScript.quit();

Link to comment
Share on other sites

bonedaddy

We still have your previous working way to install from CDROM. I'll manage the new method that you posted a pic for.

However, there's some good news. Now, we can insert reg data for Pro version via the JS itself.

I added these lines (in blue) to JS to register Winamp for the Pro version:

WshShell.SendKeys ("%{F4}");//closing Winamp

}

var WshShell = WScript.CreateObject("WScript.Shell");

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

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

WScript.quit();

So, no need to add those reg data to the CMD file.

Link to comment
Share on other sites

The problem is that I knew the problem? SWEET?! :)

I mean when we advertize the CDROM var inside the CMD, it's advertized inside the CMD only. You see.

I mean it's not advertized as a usable var by other programs. This is why there's a utility on the unattended site for this purpose. It could solve the problem, I think.

But what I want to do is define the CDROM var inside the JS, too. This way, the JS can see the CDROM. Right now, I don't know how to do that. But I'll keep thinking.

This should, also, help in copying the INI via JS too; instead of using the CMD to copy it.

Actually, I want JS to do everything, so that CMD only has got one line in.

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