mazin Posted July 24, 2004 Author Share Posted July 24, 2004 thanks!!!!You're welcome. Link to comment Share on other sites More sharing options...
bonedaddy Posted July 24, 2004 Share Posted July 24, 2004 thats correct no more internet connection, ha ha!I just never clicked down down at that point , I feltI was connected to the net via lan and it should staythat way, just not thinking.bonedaddyEDITI forgot to ask if I could pm you with something to look at,I need some advice on how to get rid of "ECHO IS OFF" intextsetup and dosnet after applying a command. Oh yes I madean autoit for avg it seems very similar to js, no reason I couldn't use js instead is there? Link to comment Share on other sites More sharing options...
mazin Posted July 24, 2004 Author Share Posted July 24, 2004 textsetup?! and dosnet?! OH GOD! Email me. Or you'd better ask bush, sorry gosh. Tour de Lance? Have you left bones? Link to comment Share on other sites More sharing options...
bonedaddy Posted July 24, 2004 Share Posted July 24, 2004 mail is in the box, thanks for looking, it's simple for you I'm surebonedaddyEDITare they not going to name it Tour de Lance now?? Link to comment Share on other sites More sharing options...
Solid as a rock Posted July 25, 2004 Share Posted July 25, 2004 Here's a simpler instance for the batch and JScript of Winamp v5.03a. Follow the same instructions in the first post. In this instance, you won't need sleep.exe nor taskkill.cls@echo offECHO.ECHO Installing Winamp 5.03aCD %systemdrive%\Install\Winamp\Start /wait %systemdrive%\Install\Winamp\winamp.jscopy %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 /fexitfunction 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 installerwhile (oExec.Status == 0){WScript.Sleep(2000);//time needed by installer to extract its filesgetWin("Winamp Setup", 500);//name of setup screen and time to hold itWshShell.SendKeys ("{ENTER}");//hitting Agree buttonWScript.Sleep(500);//time to wait before executing next keystrokeWshShell.SendKeys ("{TAB}");//moving tabstop to the features paneWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Winamp AgentWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting Winamp AgentWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Winamp LibraryWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Modern Skin SupportWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting Modern Skin SupportWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting User Interface ExtensionsWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Audio File SupportWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Video File SupportWScript.Sleep(500);WshShell.SendKeys ("%{RIGHT}");//expanding Video File SupportWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Nullsoft VideoWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting AVI/MPG/ASFWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting AVI/MPG/ASFWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Desktop IconWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting Desktop IconWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(500);WshShell.SendKeys ("{DOWN 2}");//setting Internet Connection to Not connected...WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Install buttonWScript.Sleep(45000);//time to install Winamp, so no need to sleep.exe NEWWshShell.SendKeys ("%{F4}");//Closing Winamp, so no need to taskkill NEW}WScript.quit();i have use this and every time i get a error during setup. see pic for the error. when i read this line (13th) in .js i see nothing important....i use this: start /wait %systemdrive%\Install\Applications\Winamp\winamp.jscopy %systemdrive%\Install\Applications\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"the files winamp.js winamp.ini winamp.exe are all in the same map \Install\Applications\Winamp\this is my line 13 in the winamp.js var oExec = WshShell.Exec("winamp.exe");//name of your installer Link to comment Share on other sites More sharing options...
mazin Posted July 25, 2004 Author Share Posted July 25, 2004 I think you forgot to add this entry to your batch:CD %systemdrive%\Install\Applications\Winamp\So, JS can't know where to be guided to winamp.exe! (line 13) Link to comment Share on other sites More sharing options...
Solid as a rock Posted July 25, 2004 Share Posted July 25, 2004 I think you forgot to add this entry to your batch:CD %systemdrive%\Install\Applications\Winamp\So, JS can't know where to be guided to winamp.exe! (line 13)ohw... i never use CD. i known it means change directory but i dont understand why i need this with the winamp install only but ok i will try it now.... Link to comment Share on other sites More sharing options...
mazin Posted July 25, 2004 Author Share Posted July 25, 2004 We use CD to tell wscript.exe the Current Directory of JS.Also, take care of this (in red) if you have a non-English WinXP:copy %systemdrive%\Install\Applications\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\" Link to comment Share on other sites More sharing options...
Solid as a rock Posted July 25, 2004 Share Posted July 25, 2004 We use CD to tell wscript.exe the Current Directory of JS.Also, take care of this (in red) if you have a non-English WinXP:copy %systemdrive%\Install\Applications\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"in dutch it is called program files too.... Link to comment Share on other sites More sharing options...
mazin Posted July 25, 2004 Author Share Posted July 25, 2004 Good. I didn't know it. Link to comment Share on other sites More sharing options...
Solid as a rock Posted July 27, 2004 Share Posted July 27, 2004 Good. I didn't know it.i am sorry i forget to post here if it works or not. yes the CD line is very essential and it works without problems. 45000 i bring down to 5000 so it stay open 2 a 3 sec. winamp isnt able to place a lnk in quicklaunchbar? ( i think because the quicklaunch bar dont exist at that moment? also the folder \install\applications\winamp wont be deleted after installing everything. i have heard from someone if i call the scripteditor i need a pskill to kill the scripteditor.....?i have asked a few friend to watch at the unattend winamp setup. they say:"whooohooo automatically moving and clicking.... nice!!!" Link to comment Share on other sites More sharing options...
mazin Posted July 27, 2004 Author Share Posted July 27, 2004 Good news! I just wanted to know if you still have problems.I think using taskkill /F /IM wscript.exe should terminate wscript.exe running in the background in your case. This should allow "\install\applications\winamp" to be deleted. However, it doesn't occur to me that "\install\applications\winamp" isn't deleted.Thanks for your feedback. Link to comment Share on other sites More sharing options...
mazin Posted July 27, 2004 Author Share Posted July 27, 2004 Dedicated to SolidasRock and whoever uses it! This example is for v5.03a or v5.04!Now, you can call JS from anywhere. No CD needed! No sleep.exe! No taskkill! What else, guys?!cls@echo offECHO.ECHO Installing Winamp 5.03aStart /wait %systemdrive%\Install\Winamp\winamp.jscopy %systemdrive%\Install\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"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");WshShell.Run("%systemdrive%\\Install\\Winamp\\winamp.exe");{WScript.Sleep(2000);//time needed by installer to extract its filesgetWin("Winamp Setup", 500);//name of setup screen and time to hold itWshShell.SendKeys ("{ENTER}");//hitting Agree buttonWScript.Sleep(500);//time to wait before executing next keystrokeWshShell.SendKeys ("{TAB}");//moving tabstop to the features paneWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Winamp AgentWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting Winamp AgentWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Winamp LibraryWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Modern Skin SupportWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting Modern Skin SupportWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting User Interface ExtensionsWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Audio File SupportWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Video File SupportWScript.Sleep(500);WshShell.SendKeys ("%{RIGHT}");//expanding Video File SupportWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Nullsoft VideoWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting AVI/MPG/ASFWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting AVI/MPG/ASFWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Desktop IconWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting Desktop IconWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(500);WshShell.SendKeys ("{DOWN 2}");//setting Internet Connection to Not connected...WScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Next buttonWScript.Sleep(500);WshShell.SendKeys ("{ENTER}");//hitting Install buttonWScript.Sleep(45000);//time to install Winamp, so no need to sleep.exe NEWWshShell.SendKeys ("%{F4}");//Closing Winamp, so no need to taskkill NEW}var WshShell = WScript.CreateObject("WScript.Shell");//registering for the Pro versionWshShell.RegWrite ("HKLM\\SOFTWARE\\Nullsoft\\Winamp\\regkey", "xxxxx-xxxxx-xxxxx-xxxxx");WshShell.RegWrite ("HKLM\\SOFTWARE\\Nullsoft\\Winamp\\regname", "MyName");WScript.quit(); Link to comment Share on other sites More sharing options...
edmoncu Posted July 28, 2004 Share Posted July 28, 2004 hi. just noticed that winamp has been updated to 5.0.4. will the javascript workaround work with this new release? thanks. Link to comment Share on other sites More sharing options...
mazin Posted July 28, 2004 Author Share Posted July 28, 2004 hi. just noticed that winamp has been updated to 5.0.4. will the javascript workaround work with this new release? thanks. Anyone knows how to install Winamp, using his keyboard only, he can definitely write his own JScript, whatever the version is.If you need help, download the PDF. It should explain the logic behind the JS. And it's easy.However, I'll download the new version. Thanks for the link.EDIT:v5.04 is exactly the same components as v5.03a. Nothing special, although it's 4.35 MB while v5.03a was 4.20 MB.Even "eMusic" isn't included in v5.04, while it was in v5.03c. Link to comment Share on other sites More sharing options...
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