neo_3333 Posted August 1, 2004 Share Posted August 1, 2004 Hey mazin,Does the "WshShell.Run" line work with spaces in the path ? Because I've tried the following syntax and it doesn't work.var Run = WshShell.Run("%SystemDrive%\\Winamp 5.04 Pro\\winamp504_pro.exe"); Link to comment Share on other sites More sharing options...
mazin Posted August 1, 2004 Author Share Posted August 1, 2004 I've just updated the last post. It can be used like this:WshShell.Run("%SystemDrive%\\Winamp 5.04 Pro\\winamp504_pro.exe"); Link to comment Share on other sites More sharing options...
neo_3333 Posted August 1, 2004 Share Posted August 1, 2004 mazin,That doesn't work either. I found out you have to put quotes (\") like you would in reg files. Example.WshShell.Run("\"%SystemDrive%\\Winamp 5.04 Pro\\winamp504_pro.exe\""); Link to comment Share on other sites More sharing options...
piechdibi Posted August 1, 2004 Share Posted August 1, 2004 Hi ! I read the all thread, but couldn't find a solution...he is my problem.I launch the installation from my dvd. But as i also install dreamweaver, it associtaes.js files with it! so when I type start /wait .... winamp.jsit opens dream ! when i right click on the .js file, I've got "open with the script command" (not sure of the exact text, it's in french), witch is "c:\windows\system32\cscript.exe"So how do I call from my batch file cscript.exe ?I saw above the wscript command, but I've got this "line 13" error...This is driving me crasy ! Link to comment Share on other sites More sharing options...
mazin Posted August 1, 2004 Author Share Posted August 1, 2004 WshShell.Run("\"%SystemDrive%\\Winamp 5.04 Pro\\winamp504_pro.exe\"");neo_3333Yes, this is correct. I misunderstood your previous question. Sorry!piechdibistart /wait wscript.exe %systemdrive%\......\winamp.jsHowever, you'd better install Winamp before the other app.And, choose the method suitable to you among Update 6, 7 or 8 on the first page. Link to comment Share on other sites More sharing options...
piechdibi Posted August 1, 2004 Share Posted August 1, 2004 start /wait wscript.exe %systemdrive%\......\winamp.jsThanks, but it doesn't work... I still have the "line 13"" error Link to comment Share on other sites More sharing options...
mazin Posted August 1, 2004 Author Share Posted August 1, 2004 If you install from DVD, use bonedaddy's method. It's here:http://www.msfn.org/board/index.php?showto...ndpost&p=152660 Link to comment Share on other sites More sharing options...
jinkazamaa Posted August 2, 2004 Share Posted August 2, 2004 hi. i dont know this winamp setup for unnattended xp cd.. i want ready setup file and script file. pls. help. Link to comment Share on other sites More sharing options...
prathapml Posted August 2, 2004 Share Posted August 2, 2004 Well, everybody helps themselves here.To the best of my knowledge, paid help-desks are available to spoon-feed people.If you aren't already familiar with something, a willingness to learn can help. We all share our ideas/techniques, and it is up to individuals to use it. Link to comment Share on other sites More sharing options...
mazin Posted August 2, 2004 Author Share Posted August 2, 2004 Good pal, prathapml!Execuse the newbie.Well, jinkazamaa!What's your situation, bro?%SYSTEMDRIVE%?%CDROM%?CMD?RunOnceEX?What hurts, exactly? Emergency Desk is at your disposal. Come on! Link to comment Share on other sites More sharing options...
mazin Posted August 3, 2004 Author Share Posted August 3, 2004 Updated winamp.js var WshShell = WScript.CreateObject("WScript.Shell");WshShell.Run("%systemdrive%\\Install\\Winamp\\winamp.exe");WScript.Sleep(2000);//time needed by installer to extract its filesWshShell.AppActivate("Winamp Setup");//name of setup screenWScript.Sleep(500);//time to hold setup screenWshShell.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}");//bypassing Winamp LibraryWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Modern Skin SupportWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting Modern Skin SupportWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//bypassing User Interface ExtensionsWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//bypassing 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}");//bypassing 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 WinampWshShell.SendKeys ("%{F4}");//closing WinampWshShell.RegWrite ("HKLM\\SOFTWARE\\Nullsoft\\Winamp\\regkey", "xxxxx-xxxxx-xxxxx-xxxxx");WshShell.RegWrite ("HKLM\\SOFTWARE\\Nullsoft\\Winamp\\regname", "MyName"); Link to comment Share on other sites More sharing options...
jinkazamaa Posted August 3, 2004 Share Posted August 3, 2004 Good pal, prathapml!Execuse the newbie.Well, jinkazamaa!What's your situation, bro?%SYSTEMDRIVE%?%CDROM%?CMD?RunOnceEX?What hurts, exactly? Emergency Desk is at your disposal. Come on!%systemdriver% or RunOnceEx... Link to comment Share on other sites More sharing options...
mazin Posted August 3, 2004 Author Share Posted August 3, 2004 Here you go:http://www.msfn.org/board/index.php?showto...ndpost&p=157374 Link to comment Share on other sites More sharing options...
mazin Posted August 5, 2004 Author Share Posted August 5, 2004 %CDROM% Direct Installation: Batch Method.Now, we can run JS and winamp.exe from %CDROM% directly. Add these lines to your batch file:ECHO.ECHO Installing Winamp 5.04REG ADD HKLM\SOFTWARE\Nullsoft\Install /v EXE /d %CDROM%\Install\Winamp\Winamp.exeStart /wait %CDROM%\Install\Winamp\Winamp.jscopy %CDROM%\Install\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"ECHO.Change paths if your suorce path is different. Delete the last string if you don't have a customized Winamp.ini.var WshShell = WScript.CreateObject("WScript.Shell");WshShell.Run(WshShell.RegRead ("HKLM\\SOFTWARE\\Nullsoft\\Install\\EXE"));WScript.Sleep(3000);//time needed by installer to extract its filesWshShell.AppActivate("Winamp Setup");//name of setup screenWScript.Sleep(500);//time to hold setup screenWshShell.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}");//bypassing Winamp LibraryWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Modern Skin SupportWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting Modern Skin SupportWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//bypassing User Interface ExtensionsWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//bypassing 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}");//bypassing 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 WinampWshShell.SendKeys ("%{F4}");//closing WinampWshShell.RegWrite ("HKLM\\SOFTWARE\\Nullsoft\\Winamp\\regkey", "xxxxx-x...x-xxxxx");WshShell.RegWrite ("HKLM\\SOFTWARE\\Nullsoft\\Winamp\\regname", "MyName");WshShell.RegDelete ("HKLM\\SOFTWARE\\Nullsoft\\Install\\"); Link to comment Share on other sites More sharing options...
mazin Posted August 5, 2004 Author Share Posted August 5, 2004 %CDROM% Direct Installation: RunOnceEX Method.We can run JS and winamp.exe from %CDROM% directly. Add these lines to your RunOnceEX.cmd:REG ADD %KEY%\050 /VE /D "Winamp 5.04REG ADD %KEY%\050 /V 01 /D "%CDROM%\Install\Winamp\Winamp.jsREG ADD %KEY%\050 /V 02 /D "cmd.exe /c copy /Q %CDROM%\Install\Winamp\Winamp.ini \"%systemdrive%\Program Files\Winamp\""REG ADD HKLM\SOFTWARE\Nullsoft\Install /v EXE /d %CDROM%\Install\Winamp\Winamp.exeChange paths if your suorce path is different. Delete the third string if you don't have a customized Winamp.ini.var WshShell = WScript.CreateObject("WScript.Shell");WshShell.Run(WshShell.RegRead ("HKLM\\SOFTWARE\\Nullsoft\\Install\\EXE"));WScript.Sleep(3000);//time needed by installer to extract its filesWshShell.AppActivate("Winamp Setup");//name of setup screenWScript.Sleep(500);//time to hold setup screenWshShell.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}");//bypassing Winamp LibraryWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//highlighting Modern Skin SupportWScript.Sleep(500);WshShell.SendKeys (" ");//deselecting Modern Skin SupportWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//bypassing User Interface ExtensionsWScript.Sleep(500);WshShell.SendKeys ("{DOWN}");//bypassing 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}");//bypassing 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 WinampWshShell.SendKeys ("%{F4}");//closing WinampWshShell.RegWrite ("HKLM\\SOFTWARE\\Nullsoft\\Winamp\\regkey", "xxxxx-x...x-xxxxx");WshShell.RegWrite ("HKLM\\SOFTWARE\\Nullsoft\\Winamp\\regname", "MyName");WshShell.RegDelete ("HKLM\\SOFTWARE\\Nullsoft\\Install\\"); 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