Jump to content

Recommended Posts

Posted

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

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

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.


Posted

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

Posted

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

Posted

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.

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

Posted
@mazin

changes to be incorporated

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

And your corrections are wrong because these lines won't be written to winamp.ini:

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

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

Try it, too.

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

No. Please, leave it there.

Posted
Hey mazin,

Can a path to winamp.exe in the winamp.js be specified and with an enviroment variable ?

Please, don't change it.

At least, I haven't tested that.

EDIT:

Now, yes! Use this inside the JS:

%systemdrive%\\Install\\Winamp\\winamp.exe

Posted

Ok it worked from the runonceex CD. sort of, installed and works

fine, but it accessed winamp web site in the middle of install. I wonder

if taskill works ok from CD? Any way here's what I did......

thanks again bonedaddy

edit see following page

Posted

Well Mazin if you don't find what causes IE to open

don't worry I just pointed taskkill at it and poof gone.

here it is.

EDIT see following page

but don't get to see player come up and LLama intro play anymore. :)

thanks bonedaddy

Posted
but don't get to see player come up and LLama intro play anymore.  :)

The solution is:

1- increase sleep time to 60 seconds.

2- add one more "down" for Internet Connection, like this:

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");

I've already updated the first post for the extra "down".

3- inside the JS, increase the first sleep time from 2000 to 5000.

I developed the batch method and tested it:

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

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

This updated batch didn't work under RunOnceEX! But it worked when imported as a batch (winamp.cmd).

On page 2 (1st post), you'd find a description of that.

EDIT: Oh! I updated this post after you've posted. Sorry!

Posted

So how do I kill IE sooner, not that it's that important, because

it works with\batch, runonceEx and runonceEx from CD. It's just

that it would be cleaner. Relocate taskkill up just above sleep?

bonedaddy

Posted
So how do I kill IE sooner, not that it's that important, because

it works with\batch, runonceEx and runonceEx from CD. It's just

that it would be cleaner. Relocate taskkill up just above sleep?

bonedaddy

Execuse me!

I updated all batch instances with some new changes. It's now much simpler.

My previous post was updated, too.

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