MSFN Forum: Winamp - Selectable Features - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
  • 10 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Winamp - Selectable Features Rate Topic: -----

#1 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 12 July 2004 - 08:27 PM

-< Winamp is no problem anymore! >-

Update 1: PDF tutorial for v5.03c and similar versions. Right-click and "Save Target As...".
Update 2: PDF tutorial for v2.91 and similar versions. Right-click and "Save Target As...".
Update 3: Some antivirus programs disallow running scripts. So, you should run scripts before installting antivirus programs.
Update 4: Should you ever get any problem, read through the following posts. You should find an answer to your question.
Update 5: winamp.js is now commented. Keeping comments makes no problem.
Update 6: Batch method is now much more simple. No sleep.exe! No taskkill!
Update 7: Installing Winamp from %systemdrive% using RunOnceEX.
Update 8: Installing Winamp from %CDROM% using RunOnceEX. By bonedaddy.

Finally, we can exclude features and sub-features we don't want installed!!!

This JavaScript file works for any version of Winamp, as we will see. But, the example here is for Winamp 5.03a.

These are the steps

Put the following files in this directory: %systemdrive%\Install\Winamp\
If your source path is different, then change those in purple inside the batch.
On your unattended CD, this path is $OEM$\$1\Install\Winamp\, of course.

- winamp.exe --> your installer renamed for simplicity
- winamp.js --> explained below
- winamp.ini --> customized, from C:\Program Files\Winamp\winamp.ini

Clean winamp.ini by deleting any entries that refer to paths or directories like cwd=C:\Program Files\Winamp, for example.

This is your batch file said:

cls
@echo off
ECHO.
ECHO Installing Winamp 5.03a
echo [WinampReg]>%systemroot%\winamp.ini
echo IsFirstInst=>>%systemroot%\winamp.ini
echo NeedReg=>>%systemroot%\winamp.ini
CD %systemdrive%\Install\Winamp\
Start %systemdrive%\Install\Winamp\winamp.js
sleep 60
taskkill /F /IM WINAMP.EXE
taskkill /F /IM winampa.exe
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


Sleep time of 60 seconds might vary according to the features installed. However, it's sufficient if you install all features. You can test it before burning to your CD.
Of course, you're assumed to have sleep.exe in your system32 folder. On your unattended CD, you put it here: $OEM$\$$\System32\sleep.exe
If you exclude Winamp Agent from installation, do not add taskkill /F /IM winampa.exe to your batch.
If your regname has spaces, consider adding quotes. This is an example: "Your Name".
Replace the Xs with your regkey. Dashes are included, if any.
You do not have to create a reg file to register Winamp for the Pro version. Your registration data is included in the batch as you saw. However, if you don't want to register for the Pro version, consider deleting the last three lines from the batch above.

This is your winamp.js said:

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


Sleep time of 500 (1/2 second) is not obligatory, unless you like watching :D, like me.
You can use 200, or more or less.

Keystroke legend:

Use ("{ENTER}") for hitting Next and Install buttons.
Use ("{TAB}") for browsing controls of setup screens.
Use ("{DOWN}") for pressing the down arrow on your keyboard.
Use (" ") for deselecting a feature.
Use ("%{RIGHT}") for expanding a main feature into its sub-features. :D :rolleyes: :)

Now, you see that the JS file above exclude these features:
- Winamp Agent
- Modern Skin Support
- AVI/MPG/ASF
- Desktop Icon

Also, it sets Internet Connection to "Not connected to the Internet".

Oh! Yes, you can modify the JS to fit your needs with the help of PDF tutorial.


#2 User is offline   Nologic 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 461
  • Joined: 07-October 03

Posted 12 July 2004 - 08:53 PM

mazin -

ahh good show, keep up the good work. :)

#3 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 13 July 2004 - 04:46 AM

Thanks, Nologic.

#4 User is offline   SkyyPunk 

  • Group: Members
  • Posts: 7
  • Joined: 04-June 04

Posted 13 July 2004 - 05:48 PM

so then this script could be used for many other installs then too, correct? (obviously just changing the keys passed?) or is there something about the winamp install that makes it special?

#5 User is offline   neo_3333 

  • Junior
  • Pip
  • Group: Members
  • Posts: 51
  • Joined: 11-June 04

Posted 13 July 2004 - 08:38 PM

Do you have to use a batchfile to use this selectable feature for winamp install? Can you use a inf file instead, mazin ?

#6 User is offline   XtremeMaC 

  • MSFN SuperB
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 5,070
  • Joined: 13-October 03

Posted 14 July 2004 - 12:23 AM

neo_3333, on Jul 13 2004, 09:38 PM, said:

Do you have to use a batchfile ? Can you use a inf file instead, SkyyPunk ?

sorry but what does that mean? and what does it have to do with SkyyPunk, a batchfile and an inf?

anyways, I, too don't see how this is helpful to ppl

everyone right from the start, right from the release of winamp could write a vbs and choose the components like that. that's how I had been installing after 1 day I don't wanted it...

I think u should ..... :rolleyes: :) and do something more usefull with other software..

#7 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 14 July 2004 - 01:03 AM

SkyyPunk, on Jul 14 2004, 02:48 AM, said:

so then this script could be used for many other installs then too, correct? (obviously just changing the keys passed?) or is there something about the winamp install that makes it special?

You can use it with any app. The setup screens are your guide for needed keystrokes.

#8 User is offline   bonedaddy 

  • Bonafide Member
  • PipPipPip
  • Group: Members
  • Posts: 454
  • Joined: 20-October 03

Posted 14 July 2004 - 08:33 AM

WOW this is great! After a few pm's with mazin he figured out

why it wouldn't work, (hint; don't install after an AntiVirus program)

and I taught myself how to set it up with keystrokes it installs perfect.

hint; get the latest Winamp and while installing do the keystroke thing, if

you make a mistake, just install again, follow mazin's js till you get the hang

of it. The text here is for noobs to js like myself.


bonedaddy :)

#9 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 14 July 2004 - 10:41 AM

Thanks, bonedaddy.

Cheers! :)

#10 User is offline   neo_3333 

  • Junior
  • Pip
  • Group: Members
  • Posts: 51
  • Joined: 11-June 04

Posted 14 July 2004 - 09:36 PM

mazin,
Do you have to use a batchfile to execute this selectable feature for winamp install? Can you use a inf file instead, mazin ?

#11 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 15 July 2004 - 03:06 AM

neo_3333, on Jul 15 2004, 06:36 AM, said:

mazin,
Do you have to use a batchfile to execute this selectable feature for winamp install? Can you use a inf file instead, mazin ?

Execuse me, I didn't try it. You can give it a try and see what happens.

However, you should keep the same conditions as in the batch.

If I were to use the RunOnceEx method, I'd do the following:
1- Create winamp.cmd containing the same contents of the batch from the first post.
2- Create winamp.js but increase the first sleep time from 2000 to 5000.
3- Clean winamp.ini by deleting any entries that refer to paths or directories like cwd=C:\Program Files\Winamp, for example.

4- Then, I put these files in this directory: %systemdrive%\Install\Winamp\

- winamp.exe
- winamp.js
- winamp.ini
- winamp.cmd

5- Next, I add these lines to my RunOnceEx.cmd:

Quote

REG ADD %KEY%\050 /VE /D "Winamp" /f
REG ADD %KEY%\050 /V 1 /D "%systemdrive%\Install\Winamp\winamp.cmd" /f


Actually, I don't use RunOnceEx method. If you are familiar with inf files that are used in conjunction with RunOnceEx method, then you know how to adapt the whole process.

I hope this helps.

#12 User is offline   neo_3333 

  • Junior
  • Pip
  • Group: Members
  • Posts: 51
  • Joined: 11-June 04

Posted 15 July 2004 - 10:27 AM

Thanks mazin,
One question. How would I include the sleep function in your winamp.cmd into the inf ?

#13 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 15 July 2004 - 10:48 AM

neo_3333, on Jul 15 2004, 07:27 PM, said:

Thanks mazin,
One question. How would I include the sleep function in your winamp.cmd into the inf ?

It's already included in winamp.cmd, so you don't need to include it again in any other place.

However, under RunOnceEx method, it could be "sleep 60" /f assuming you've put sleep.exe in your system32 folder or even in Windows folder. Both work.

Please be aware of these lines inside the batch:
echo [WinampReg]>%systemroot%\winamp.ini
echo IsFirstInst=>>%systemroot%\winamp.ini
echo NeedReg=>>%systemroot%\winamp.ini

They create another winamp.ini inside your Windows folder.

#14 User is offline   prathapml 

  • Follow the rules please :-)
  • Group: Patrons
  • Posts: 6,791
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 15 July 2004 - 11:32 AM

@mazin
changes to be incorporated

mazin, on Jul 13 2004, 07:57 AM, said:

- winamp.ini --> no bothers needed

In your batch file
echo [WinampReg]>%systemroot%\winamp.ini
echo IsFirstInst=0>>%systemroot%\winamp.ini
echo NeedReg=0>>%systemroot%\winamp.ini
Your first post has a few errors.
Do have a look at the quoted corrected post, and update it.
Once you finish editing the first post to how the corrected one says, do PM me (so that I can edit my own pointing-out-the-error post to blank).

If you are too tired out to figure out what needs fixing, this is what was wrong:
IsFirstInst=0
NeedReg=0
That's how it should have been.



Just killing the installer after a pre-defined time may turn out bad (on slower machines) as you already say. Also,
REG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regkey /t REG_SZ /d xxxxx-xxxxx-xxxxx-xxxxx /f
will not work, because winamp does not store your actual key - it just puts a validation hash in the registry (like WinXP's WPA). The only way to have winamp pro registration pre-enabled is to export that key after entering your key.


As for whether the correction is needed, let me say it is a *MUST*.
I should know, for I was the one who evolved this idea in the first place...... Winamp 5 Pro

I hope you don't flame me, thinking of this as a fight to see who's superior. I'm just pointing this out, because without the corrections, the purpose of echoing winamp.ini is not served.

#15 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 15 July 2004 - 01:14 PM

prathapml, on Jul 15 2004, 08:32 PM, said:

If you are too tired out to figure out what needs fixing, this is what was wrong:
IsFirstInst=0
NeedReg=0
That's how it should have been.

Well!

I never saw that post. I have had the MUF document for two years now. And I got that idea from there.

Plus, winamp.ini works this way. You probably haven't tried it.

I won't change it because it works. I even tested it under RunOnceEX method and it worked, too.

I'll post it soon for peolpe who are interested. I'll just have my dinner.

Thanks alot and you're welcome.

AND THE KEY WORKS THIS WAY, TOO. Try it.

#16 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 15 July 2004 - 02:09 PM

Using RunOnceEX: [Yes, without /fs and with a single double-quote! :)]

Dedicated to neo_3333 and bonedaddy and who ever uses it. :rolleyes:

Add these lines to your RunOnceEX.cmd said:

REG ADD %KEY%\050 /VE /D "Winamp 5.03a
REG ADD %KEY%\050 /V 01 /D "cmd.exe /c copy %systemdrive%\Install\Winamp\winamp.exe %systemdrive%\
REG ADD %KEY%\050 /V 02 /D "cmd.exe /c copy %systemdrive%\Install\Winamp\winamp.js %systemdrive%\
REG ADD %KEY%\050 /V 03 /D "cmd.exe /c echo [WinampReg]>%systemroot%\winamp.ini
REG ADD %KEY%\050 /V 04 /D "cmd.exe /c echo IsFirstInst=>>%systemroot%\winamp.ini
REG ADD %KEY%\050 /V 05 /D "cmd.exe /c echo NeedReg=>>%systemroot%\winamp.ini
REG ADD %KEY%\050 /V 06 /D "sleep 2
REG ADD %KEY%\050 /V 07 /D "cmd.exe /c CD %systemdrive%\
REG ADD %KEY%\050 /V 08 /D "%systemdrive%\winamp.js
REG ADD %KEY%\050 /V 09 /D "sleep 60
REG ADD %KEY%\050 /V 10 /D "taskkill /F /IM WINAMP.EXE
REG ADD %KEY%\050 /V 11 /D "cmd.exe /c del /Q %systemdrive%\winamp.js
REG ADD %KEY%\050 /V 12 /D "cmd.exe /c del /Q %systemdrive%\winamp.exe
REG ADD %KEY%\050 /V 13 /D "cmd.exe /c copy %systemdrive%\Install\Winamp\Winamp.ini \"%systemdrive%\Program Files\Winamp\""
REG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regname /d YourName
REG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regkey /d xxxxx-xxxxx-xxxxx-xxxxx


CMD windows appear, so you can use some utility to hide CMD windows.

#17 User is offline   bonedaddy 

  • Bonafide Member
  • PipPipPip
  • Group: Members
  • Posts: 454
  • Joined: 20-October 03

Posted 15 July 2004 - 02:53 PM

Hey Mazin

I swear I love watching that program install, clicking down ticking off

items and changing pages, what a gas. thanks again for it. My question is

do you think the runOnce method will work from CD? I'm going to try and I'll

let you know. By the way as far as registering I had already exported mine

from the REG, so did that way, can't confirm if it works with just serial number.


I'll let you know if from CD works........

thanks again

the bonedaddy

#18 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 15 July 2004 - 03:05 PM

I should point out, that I have in my INF file, the unhashed version of my key to registry Winamp and it works fine......

oh well.....

#19 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 15 July 2004 - 03:05 PM

Hi bonedaddy!

This is the first time in my life to use or even type something related to RunOnceEX.

From CD, it should work. Why not?

I tested RunOnceEX three times to make sure that pre-importing of regname and regkey does not affect installation.

It's worthful to try it from CD. And let me know, so I can benefit, too.

Thanks a million for your feedback.

#20 User is offline   mazin 

  • MSFN Addict
  • Group: Supreme Sponsor
  • Posts: 1,952
  • Joined: 12-January 04

Posted 15 July 2004 - 03:10 PM

Alanoll, on Jul 16 2004, 12:05 AM, said:

I should point out, that I have in my INF file, the unhashed version of my key to registry Winamp and it works fine......

oh well.....

yeah ... I think prathapml didn't try it himself. Or he might read complaints somewhere, so he decided to talk in confirmation tone.

However, I tested everything several times before posting. And I wish if prathapml could post his feedback after he tries it himself.

Share this topic:


  • 10 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy