Jump to content

Winamp - Selectable Features


mazin

Recommended Posts

Hey mazin,

Does the "WshShell.Run" line work with spaces in the path ? Because I've tried the following syntax and it doesn't work.

var Run = WshShell.Run("%SystemDrive%\\Winamp 5.04 Pro\\winamp504_pro.exe");

Link to comment
Share on other sites


Hi ! I read the all thread, but couldn't find a solution...

he is my problem.

I launch the installation from my dvd.

But as i also install dreamweaver, it associtaes.js files with it! so when I type

start /wait .... winamp.js

it opens dream ! :)

when i right click on the .js file, I've got "open with the script command" (not sure of the exact text, it's in french), witch is "c:\windows\system32\cscript.exe"

So how do I call from my batch file cscript.exe ?

I saw above the wscript command, but I've got this "line 13" error...

This is driving me crasy !

Link to comment
Share on other sites

WshShell.Run("\"%SystemDrive%\\Winamp 5.04 Pro\\winamp504_pro.exe\"");

neo_3333

Yes, this is correct. I misunderstood your previous question. Sorry!

piechdibi

start /wait wscript.exe %systemdrive%\......\winamp.js

However, you'd better install Winamp before the other app.

And, choose the method suitable to you among Update 6, 7 or 8 on the first page.

Link to comment
Share on other sites

Well, everybody helps themselves here.

To the best of my knowledge, paid help-desks are available to spoon-feed people.

If you aren't already familiar with something, a willingness to learn can help. We all share our ideas/techniques, and it is up to individuals to use it.

Link to comment
Share on other sites

Good pal, prathapml!

Execuse the newbie.

Well, jinkazamaa!

What's your situation, bro?

%SYSTEMDRIVE%?

%CDROM%?

CMD?

RunOnceEX?

What hurts, exactly? Emergency Desk is at your disposal. Come on!

Link to comment
Share on other sites

Updated winamp.js :)

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

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

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

WshShell.AppActivate("Winamp Setup");//name of setup screen

WScript.Sleep(500);//time to hold setup screen

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 to install Winamp

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

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

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

Link to comment
Share on other sites

%CDROM% Direct Installation: Batch Method.

Now, we can run JS and winamp.exe from %CDROM% directly. Add these lines to your batch file:

ECHO.

ECHO Installing Winamp 5.04

REG ADD HKLM\SOFTWARE\Nullsoft\Install /v EXE /d %CDROM%\Install\Winamp\Winamp.exe

Start /wait %CDROM%\Install\Winamp\Winamp.js

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

ECHO.

Change paths if your suorce path is different. Delete the last string if you don't have a customized Winamp.ini.

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

WshShell.Run(WshShell.RegRead ("HKLM\\SOFTWARE\\Nullsoft\\Install\\EXE"));

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

WshShell.AppActivate("Winamp Setup");//name of setup screen

WScript.Sleep(500);//time to hold setup screen

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 to install Winamp

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

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

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

WshShell.RegDelete ("HKLM\\SOFTWARE\\Nullsoft\\Install\\");

Link to comment
Share on other sites

%CDROM% Direct Installation: RunOnceEX Method.

We can run JS and winamp.exe from %CDROM% directly. Add these lines to your RunOnceEX.cmd:

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

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

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

REG ADD HKLM\SOFTWARE\Nullsoft\Install /v EXE /d %CDROM%\Install\Winamp\Winamp.exe

Change paths if your suorce path is different. Delete the third string if you don't have a customized Winamp.ini.

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

WshShell.Run(WshShell.RegRead ("HKLM\\SOFTWARE\\Nullsoft\\Install\\EXE"));

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

WshShell.AppActivate("Winamp Setup");//name of setup screen

WScript.Sleep(500);//time to hold setup screen

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 to install Winamp

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

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

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

WshShell.RegDelete ("HKLM\\SOFTWARE\\Nullsoft\\Install\\");

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