Jump to content

Winamp - Selectable Features


mazin

Recommended Posts

  • 2 months later...

  • 1 month later...
  • 1 month later...

Hi Men, I have read the post, is a great work.

i have seen that amazin has updated the js script for winamp 5.04, and i decided to update mine for winamp 2.91, i did few changes. but the problem when i execute it, in the second execution, it tells me error in the line 10: i search the line 10 and i see that is wright.

i have the files .js associated to the wscript.exe, also i has sleep.exe in the folder system32.

dibujo1wa.th.jpg

Here is my RunOnceEx.cmd

cmdow @ /HID

@echo off

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installing application" /f

REG ADD %KEY%\002 /VE /D "Winamp 2.91" /f

REG ADD %KEY%\002 /V 1 /D "%systemdrive%\install\winamp.js"

exit

and my winamp.js
var WshShell = WScript.CreateObject ("WScript.Shell");

var path = WScript.ScriptFullName;//getting the path to this script

var CDROM = path.substring(0,2);//extracting (DriveLetter:) from the path

WshShell.RUN (CDROM + "\\Install\\winamp291_full.exe");//running exe

WScript.Sleep(3000);//time needed by installer to extract its files

WshShell.AppActivate("Winamp Setup");//name of setup screen

WScript.Sleep(500);//time to hold setup screen

WshShell.SendKeys ("{ENTER}");//hitting Agree button

WScript.Sleep(500);

WshShell.SendKeys ("{TAB3}");//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}");//bypassing Winamp Library

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//bypassing 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}");//bypassing 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 ("{DOWN2}");//bypassing 2 features

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN}");//highlighting Put AOL Music Icons on Desktop

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselecting Put AOL Music Icons on Desktop

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");//hitting Next button

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");//hitting Next button

WScript.Sleep(5000);

WshShell.SendKeys ("{TAB 2}");

WScript.Sleep(500);

WshShell.SendKeys ("{DOWN 2}");//setting Internet Connection to Not connected...

WScript.Sleep(500);

WshShell.SendKeys ("{TAB}");

WScript.Sleep(500);

WshShell.SendKeys ("{UP}");//highlighting Desktop Icon

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselect "Add desktop icon"

WScript.Sleep(500);

WshShell.SendKeys ("{UP}");//highlighting "Add start menu icons

WScript.Sleep(500);

WshShell.SendKeys (" ");//deselect "Add start menu icons"

WScript.Sleep(500);

WshShell.SendKeys ("{ENTER}");

WScript.Sleep(2000);

WshShell.SendKeys ("%{F4}");

var MySys = WshShell.Environment("process");//needed to expand ProgramFiles var

var FSO = WScript.CreateObject("Scripting.FileSystemObject");//needed for CopyFile

FSO.CopyFile((CDROM + "\\Install\\Winamp\\winamp.ini") , (MySys("ProgramFiles") + "\\Winamp\\"));//copying winamp.ini

any suggestions please

Link to comment
Share on other sites

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