Jump to content

Winamp - Selectable Features


mazin

Recommended Posts

Ok now it works with runonceEx, batch file, and RunOnceEx from cd.

use this for runonceex from cd

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

REG ADD %KEY%\055 /V 01 /D "cmd.exe /c copy %CDROM%\software\Winamp\winamp.exe %systemdrive%\

REG ADD %KEY%\055 /V 02 /D "cmd.exe /c copy %CDROM%\software\Winamp\winamp.js %systemdrive%\

REG ADD %KEY%\055 /V 03 /D "cmd.exe /c echo [WinampReg]>%systemroot%\winamp.ini

REG ADD %KEY%\055 /V 04 /D "cmd.exe /c echo IsFirstInst=>>%systemroot%\winamp.ini

REG ADD %KEY%\055 /V 05 /D "cmd.exe /c echo NeedReg=>>%systemroot%\winamp.ini

REG ADD %KEY%\055 /V 06 /D "sleep 2

REG ADD %KEY%\055 /V 07 /D "cmd.exe /c CD %systemdrive%\

REG ADD %KEY%\055 /V 08 /D "taskkill /F /IM IEXPLORE.EXE

REG ADD %KEY%\055 /V 09 /D "%systemdrive%\winamp.js

REG ADD %KEY%\055 /V 10 /D "sleep 60

REG ADD %KEY%\055 /V 11 /D "taskkill /F /IM WINAMP.EXE

REG ADD %KEY%\055 /V 12 /D "cmd.exe /c del /Q %systemdrive%\winamp.js

REG ADD %KEY%\055 /V 13 /D "cmd.exe /c del /Q %systemdrive%\winamp.exe

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

REG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regname /t REG_SZ /d "NAME" /f

REG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regkey /t REG_SZ /d "XXXXX-XXXXX-XXXXX-XXXXX" /f

just moved taskkill IE to a location above .js file works fine.

thanks again mazin

bonedaddy

Link to comment
Share on other sites


hello,

you have a strange way of using the " signs.

Why put a beginning and an end for the first line

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

And later you don't close them anymore. (nor do you put an /f at the end)

REG ADD %KEY%\055 /V 06 /D "sleep 2

REG ADD %KEY%\055 /V 08 /D "taskkill /F /IM IEXPLORE.EXE

btw, what do the /F /IM codes stand for?

thanks

Link to comment
Share on other sites

I've deleted the cwd= path in the the winamp.ini. Do i also have to delete the RecentURL1 (2,3,4,5,...)=http:**********?? And what about the last_shorturl=http://

Deleting absolute paths inside your INI is required if you're going to install Winamp into a drive other than C or whatever.

NB: In the PDF tutorial, there's explained how to install Winamp in a drive other than your system drive.

Winamp will write those paths again after installation, according to the drive it's installed to.

But web links are not a problem in anyway. So, leave them there if you need them or delete if you don't need them. It's up to you.

Link to comment
Share on other sites

Oke i've made my script (winamp.js). But when i try to do a silent install i get an error. sleep.exe is not found. So where can i get it? And after the sleep error i get an error about WINAMP.JS. That file can't be found either. This is my cmd:

ECHO Installing Winamp 2.91

echo [WinampReg]>%systemroot%\winamp.ini

echo IsFirstInst=>>%systemroot%\winamp.ini

echo NeedReg=>>%systemroot%\winamp.ini

CD %systemdrive%\install\applications\Winamp\

Start %systemdrive%\install\applications\Winamp\winamp.js

sleep 60

taskkill /F /IM WINAMP.EXE

copy %systemdrive%\install\applications\Winamp.ini "%systemdrive%\Program Files\Winamp\"

ECHO.

Link to comment
Share on other sites

Oke i've made my script (winamp.js). But when i try to do a silent install i get an error. sleep.exe is not found. So where can i get it? And after the sleep error i get an error about WINAMP.JS. That file can't be found either. This is my cmd:

ECHO Installing Winamp 2.91

echo [WinampReg]>%systemroot%\winamp.ini

echo IsFirstInst=>>%systemroot%\winamp.ini

echo NeedReg=>>%systemroot%\winamp.ini

CD %systemdrive%\install\applications\Winamp\

Start %systemdrive%\install\applications\Winamp\winamp.js

sleep 60

taskkill /F /IM WINAMP.EXE

copy %systemdrive%\install\applications\Winamp.ini "%systemdrive%\Program Files\Winamp\"

ECHO.

There is this fabulous website called Google that lets you search the internet. Give it a try… might work. :)

/end sarcasm

Link to comment
Share on other sites

Oke i've made my script (winamp.js). But when i try to do a silent install i get an error. sleep.exe is not found. So where can i get it? And after the sleep error i get an error about WINAMP.JS. That file can't be found either. This is my cmd:

ECHO Installing Winamp 2.91

echo [WinampReg]>%systemroot%\winamp.ini

echo IsFirstInst=>>%systemroot%\winamp.ini

echo NeedReg=>>%systemroot%\winamp.ini

CD %systemdrive%\install\applications\Winamp\

Start %systemdrive%\install\applications\Winamp\winamp.js

sleep 60

taskkill /F /IM WINAMP.EXE

copy %systemdrive%\install\applications\Winamp.ini "%systemdrive%\Program Files\Winamp\"

ECHO.

Here's sleep.exe: http://unattended.msfn.org/files/sleep.zip

Extract it from zip archive and put it in system32 before you run the batch.

I'm not sure wether you put the files in the place your batch says.

If those paths are what you use, then the following files should be in this directory %systemdrive%\install\applications\Winamp\:

- winamp.exe

- winamp.js

- winamp.ini

They should be there before you run the batch.

Link to comment
Share on other sites

I've put the sleep.exe in my \XP\CD-ROOT\I386\SYSTEM32 directory. But when i run the batch i get the error again. Can't find the sleep file. Do i have to put the sleep.exe in a main.cmd to extract it in the system32 dir?

Link to comment
Share on other sites

I've put the sleep.exe in my \XP\CD-ROOT\I386\SYSTEM32 directory. But when i run the batch i get the error again. Can't find the sleep file. Do i have to put the sleep.exe in a main.cmd to extract it in the system32 dir?

Here's where to put sleep.exe

C:\XPCD\$OEM$\$$\System32\

Link to comment
Share on other sites

I dont understand it. I'm testing the batch on my pc (not a complete unattended cd in vmware), with these settings:

the winamp.js file for winamp 2.91

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

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

getWin("Winamp Setup", 500);

WshShell.SendKeys ("{ENTER}");

WScript.Sleep(500);

WshShell.SendKeys ("{TAB}");

WScript.Sleep(500);

WshShell.SendKeys ("{TAB}");

WScript.Sleep(500);

WshShell.SendKeys ("{TAB}");

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 ("%{RIGHT}");

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

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");

WScript.Sleep(500);

WshShell.SendKeys (" ");

WScript.Sleep(500);

WshShell.SendKeys ("{TAB}");

WScript.Sleep(500);

WshShell.SendKeys ("{TAB}");

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");

WScript.Sleep(900);

WshShell.SendKeys ("{TAB}");

WScript.Sleep(500);

WshShell.SendKeys ("{TAB}");

WScript.Sleep(500);

WshShell.SendKeys ("{TAB}");

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");

WScript.Sleep(500);

WshShell.SendKeys ("{UP}");

WScript.Sleep(500);

WshShell.SendKeys (" ");

WScript.Sleep(500);

WshShell.SendKeys ("{TAB}");

WScript.Sleep(500);

WshShell.SendKeys ("{TAB}");

WScript.Sleep(500);

WshShell.SendKeys ("{TAB}");

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");

WScript.Sleep(500);

WshShell.SendKeys ("{TAB}");

WScript.Sleep(500);

WshShell.SendKeys ("{TAB}");

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");

WScript.Sleep(500);

}

WScript.quit();

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

and this is the winamp.cmd:

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

CLS

@echo off

ECHO.

ECHO Installing Winamp 2.91

echo [WinampReg]>c:\Winamp\winamp.ini

echo IsFirstInst=>>c:\Winamp\winamp.ini

echo NeedReg=>>c:\Winamp\winamp.ini

CD c:\Winamp

start c:\Winamp\winamp.js

sleep 5

taskkill /F /IM WINAMP.EXE

copy c:\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"

ECHO.

when the batch begins the winamp.js pops-up and i see the cmd :installing winamp 2.91. That last for 60 sec. and then the cmd stops and nothing happend!!! What am i doing wrong? :)

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