mazin Posted July 15, 2004 Author Posted July 15, 2004 Using RunOnceEX: [Yes, without /fs and with a single double-quote! ]Dedicated to neo_3333 and bonedaddy and who ever uses it. REG ADD %KEY%\050 /VE /D "Winamp 5.03aREG 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.iniREG ADD %KEY%\050 /V 04 /D "cmd.exe /c echo IsFirstInst=>>%systemroot%\winamp.iniREG ADD %KEY%\050 /V 05 /D "cmd.exe /c echo NeedReg=>>%systemroot%\winamp.iniREG ADD %KEY%\050 /V 06 /D "sleep 2REG ADD %KEY%\050 /V 07 /D "cmd.exe /c CD %systemdrive%\REG ADD %KEY%\050 /V 08 /D "%systemdrive%\winamp.jsREG ADD %KEY%\050 /V 09 /D "sleep 60REG ADD %KEY%\050 /V 10 /D "taskkill /F /IM WINAMP.EXEREG ADD %KEY%\050 /V 11 /D "cmd.exe /c del /Q %systemdrive%\winamp.jsREG ADD %KEY%\050 /V 12 /D "cmd.exe /c del /Q %systemdrive%\winamp.exeREG 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 YourNameREG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regkey /d xxxxx-xxxxx-xxxxx-xxxxxCMD windows appear, so you can use some utility to hide CMD windows.
bonedaddy Posted July 15, 2004 Posted July 15, 2004 Hey MazinI swear I love watching that program install, clicking down ticking offitems and changing pages, what a gas. thanks again for it. My question isdo you think the runOnce method will work from CD? I'm going to try and I'lllet you know. By the way as far as registering I had already exported minefrom 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 againthe bonedaddy
Alanoll Posted July 15, 2004 Posted July 15, 2004 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.....
mazin Posted July 15, 2004 Author Posted July 15, 2004 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.
mazin Posted July 15, 2004 Author Posted July 15, 2004 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.
mazin Posted July 15, 2004 Author Posted July 15, 2004 @mazinchanges to be incorporated - winamp.ini --> no bothers neededIn your batch fileecho [WinampReg]>%systemroot%\winamp.iniecho IsFirstInst=0>>%systemroot%\winamp.iniecho NeedReg=0>>%systemroot%\winamp.iniYour 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.iniecho 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.
neo_3333 Posted July 16, 2004 Posted July 16, 2004 Hey mazin, Can a path to winamp.exe in the winamp.js be specified and with an enviroment variable ?
mazin Posted July 16, 2004 Author Posted July 16, 2004 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
bonedaddy Posted July 16, 2004 Posted July 16, 2004 Ok it worked from the runonceex CD. sort of, installed and worksfine, 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
bonedaddy Posted July 16, 2004 Posted July 16, 2004 Well Mazin if you don't find what causes IE to opendon't worry I just pointed taskkill at it and poof gone.here it is. EDIT see following pagebut don't get to see player come up and LLama intro play anymore. thanks bonedaddy
mazin Posted July 16, 2004 Author Posted July 16, 2004 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 offECHO.ECHO Installing Winamp 5.03aecho [WinampReg]>%systemroot%\winamp.iniecho IsFirstInst=>>%systemroot%\winamp.iniecho NeedReg=>>%systemroot%\winamp.iniCD %systemdrive%\Install\Winamp\Start %systemdrive%\Install\Winamp\winamp.jssleep 60taskkill /F /IM WINAMP.EXEcopy %systemdrive%\Install\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"ECHO.ECHO Registering for the Pro VersionREG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regname /d YourName /fREG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regkey /d xxxxx-xxxxx-xxxxx-xxxxx /fThis 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!
bonedaddy Posted July 16, 2004 Posted July 16, 2004 So how do I kill IE sooner, not that it's that important, becauseit works with\batch, runonceEx and runonceEx from CD. It's justthat it would be cleaner. Relocate taskkill up just above sleep?bonedaddy
mazin Posted July 16, 2004 Author Posted July 16, 2004 So how do I kill IE sooner, not that it's that important, becauseit works with\batch, runonceEx and runonceEx from CD. It's justthat it would be cleaner. Relocate taskkill up just above sleep?bonedaddyExecuse me!I updated all batch instances with some new changes. It's now much simpler.My previous post was updated, too.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now