Background:
This MSI is meant as a complete replacement for the NSIS installer for Winamp. It is a complete recreation of the installer in the Windows Installer format. This conversion allows for command-line switches to be used.
NOTE: This installer is not SILENT by default. You must still use /qb or /qn like you normally would.
Switches:
I'm lazy, and don't want to type up ALL the switches individually, so I believe I'll use an image.
The switches are in the colum just to the RIGHT of all the components. They match up with the components they're in line with.
CODE
Xfull = Install ALL components.
XName = Username for Pro registration
XKey = Product Key for Pro registration
XDesktop = Creates the Desktop shortcut; Default is 1
XQuicklaunch = Creates the Quicklaunch shortcut; Default is 0
XStartmenu = Creates the Startmenu shortcuts; Default is 1
XAllShort = Creates all shortcuts; Default is 0
XSkinsetting = Specify the SKIN to use in Winamp.
XINET = Specifies what internet connection you want. 0 = Always; 1 = Modem; 2 = Not Connect. Default is 2
XREGAUD = Associate Audio extensions. Default = 0; Any other will disable
XREGVID = Associate Video extensions. Default = 0; Any other will disable
XSEPPROFILES = Seperate Profiles for each User. Default = 0; =1 will Enable
Attached is an RTF file containing ALL available switches. You can also press the Help button on the Custom Setup screen, or type
CODE
msiexec.exe /a Winamp.msi
[code]
To bring up the same Help window.
To install a component, you MUST tell the installer to install it. By DEFAULT only the main executable (winamp.exe) is installed. All switches are =0. To signal to the installer to install a component, add the switch to the command line with =1.
Examples:
To install Audio and Video
CODE
winamp.msi Xaudio=1 Xvideo=1
To install Agent
CODE
winamp.msi Xagent=1
If you wanted EVERYTHING then use
CODE
winamp.msi Xfull=1
and everything will be installed.
The ONLY ones this does not apply to are XName,XKey, and XSkinsetting. They are all strings, so use whatever you're supposed. If you used "Joe User" to register Winamp, then use
Now for the fun part. New in this release is the ability to use an INI file rather then type it all out at the command line. This file can be called anything, and can be anywhere, because you specify where it is. If the path is not correct and it can't find the file, then the installer may perhaps error out on you.
INI Syntax:
CODE
[SETUP]
XAUDIO=1
XVIDEO=1
XNAME=Joe User
XKEY=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
I only included a set of the of arguments you could use. They are the exact same names and usage as from command line from above.
Save this file ANYWHERE you want, and call it [b]ANYTHING[/] you want. As long as you know where and what it's called.
After you have create your INI file, start the install with
CODE
winamp.msi INI="%CDROM%\Unattend\MyINIFile.ini"
the quotes ( " ) are only neccesary when there are spaces, and when used MUST enclose the whole argument. %CDROM% does NOT have to be %CDROM%. If you're files are in %systemdrive%\install\winamp, then use