Solid as a rock Posted July 28, 2004 Posted July 28, 2004 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
mazin Posted July 28, 2004 Author Posted July 28, 2004 But the link is to their site:http://download.nullsoft.com/winamp/client...amp504_full.exeI intstalled it and it says v5.04 on 27/7/2004.
prathapml Posted July 28, 2004 Posted July 28, 2004 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)
Kleopatra Posted July 28, 2004 Posted July 28, 2004 It is official.See this http://forums.winamp.com/showthread.php?s=&threadid=188034.The main site is mostly non up to date.
mazin Posted July 28, 2004 Author Posted July 28, 2004 (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.
mazin Posted July 28, 2004 Author Posted July 28, 2004 The main site is mostly non up to date.Yes! You're right.
bonedaddy Posted July 28, 2004 Posted July 28, 2004 just installed 504 using the same js and works fine.
mazin Posted July 28, 2004 Author Posted July 28, 2004 just installed 504 using the same js and works fine.COOL!
mazin Posted July 29, 2004 Author Posted July 29, 2004 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.03aREG ADD %KEY%\050 /V 01 /D "%systemdrive%\Install\Winamp\winamp.jsREG 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 filesgetWin("Winamp Setup", 500);//name of setup screen and time to hold itWshShell.SendKeys ("{ENTER}");//hitting Agree buttonWScript.Sleep(500);//time to wait before executing next keystrokeWshShell.SendKeys ("{TAB}");//moving tabstop to the features paneWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Winamp AgentWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting Winamp AgentWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//bypassing Winamp LibraryWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Modern Skin SupportWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting Modern Skin SupportWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//bypassing User Interface ExtensionsWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//bypassing Audio File SupportWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Video File SupportWScript.Sleep(500);WshShell.SendKeys ("%{RIGHT}");//expanding Video File SupportWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//bypassing Nullsoft VideoWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting AVI/MPG/ASFWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting AVI/MPG/ASFWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Desktop IconWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting Desktop IconWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(500);WshShell.SendKeys ("{DOWN 2}");//setting Internet Connection to Not connected...WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Install buttonWScript.Sleep(45000);//time needed to install WinampWshShell.SendKeys ("%{F4}");//closing Winamp}var WshShell = WScript.CreateObject("WScript.Shell");//registering for the Pro versionWshShell.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.
bonedaddy Posted July 29, 2004 Posted July 29, 2004 sure one of the test machines is ready, I'll let you know.
mazin Posted July 29, 2004 Author Posted July 29, 2004 sure one of the test machines is ready, I'll let you know.Thanks bonedaddy. I'll be waiting.
bonedaddy Posted July 29, 2004 Posted July 29, 2004 hey mazin here is some infoREG ADD %KEY%\050 /VE /D "Installing Winamp 5.04REG ADD %KEY%\050 /V 01 /D "%CDROM%\software\Winamp\winamp.jsREG 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}");//AgreeWScript.Sleep(500);WshShell.SendKeys ("{TAB}");//moving tabstop to features paneWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//WScript.Sleep(500);WshShell.SendKeys (" ");//deselecting AgentWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//WScript.Sleep(500);WshShell.SendKeys (" ");//deselecting LibraryWScript.Sleep(500);WshShell.SendKeys ("{DOWN 4}");//bypassing 4 featuresWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting VideoWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//WScript.Sleep(500);WshShell.SendKeys (" ");//deselecting visualizationsWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting NextWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next for Destination FolderWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting start menuWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//WScript.Sleep(500);WshShell.SendKeys (" ");//deselecting desk top iconWScript.Sleep(500);WshShell.SendKeys ("{DOWN 4}");//bypassing four featuresWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting playlistWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting NextWScript.Sleep(500);WshShell.SendKeys ("{DOWN 2}");//setting Internet to no Connection...WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting NextWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting InstallWScript.Sleep(25000);WshShell.SendKeys ("%{F4}");//closing Winamp}WScript.quit();
mazin Posted August 1, 2004 Author Posted August 1, 2004 bonedaddyWe 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.
bonedaddy Posted August 1, 2004 Posted August 1, 2004 @ Mazincool I'll add it, don't worry about the other like you saidI have a working method.bonedaddy
mazin Posted August 1, 2004 Author Posted August 1, 2004 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.
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now