Alanoll Posted July 29, 2004 Share Posted July 29, 2004 Alrighty, here it is. 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.For more information, if you don't understand anything here (besides the INI part) refer to here: http://www.msfn.org/board/index.php?showtopic=17412Switches: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.Additional switches areXfull = Install ALL components.XName = Username for Pro registrationXKey = Product Key for Pro registrationXDesktop = Creates the Desktop shortcut; Default is 1XQuicklaunch = Creates the Quicklaunch shortcut; Default is 0XStartmenu = Creates the Startmenu shortcuts; Default is 1XAllShort = Creates all shortcuts; Default is 0XSkinsetting = Specify the SKIN to use in Winamp.XINET = Specifies what internet connection you want. 0 = Always; 1 = Modem; 2 = Not Connect. Default is 2Usage: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 Videowinamp.msi Xaudio=1 Xvideo=1To install Agentwinamp.msi Xagent=1If you wanted EVERYTHING then usewinamp.msi Xfull=1and everything will be installed.The ONLY ones this does not apply to are XUser,XKey, and XSkinsetting. They are all strings, so use whatever you're supposed. If you used "Joe User" to register Winamp, then use winamp.msi Xuser="Joe User" XKey="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"INI Usage: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:[SETUP]XAUDIO=1XVIDEO=1XNAME=Joe UserXKEY=XXXXX-XXXXX-XXXXX-XXXXX-XXXXXI 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 ANYTHING[/] you want. As long as you know where and what it's called.After you have create your INI file, start the install withwinamp.msi INI="%CDROM%\Unattend\winamp.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 winamp.msi INI="%systemdrive%\install\winamp\winamp.ini"I think that's all.....ohyeah.....this screen was added to the installer.....Download Link: LinkageLast Update: 8/13 16:48 GMT Link to comment Share on other sites More sharing options...
Solid as a rock Posted July 29, 2004 Share Posted July 29, 2004 there are a mistyped part in your example:[SETUP]XAUDIO=1XVIDO=1i have download it and i dont have the time to test it but you will be the first to hear what my experience is with the msi Link to comment Share on other sites More sharing options...
Alanoll Posted July 29, 2004 Author Share Posted July 29, 2004 blast it all. I was hoping people read the whole thing There isn't a typo in the MSI though There are other typos in the post, but hopefully people understand colum is column Link to comment Share on other sites More sharing options...
SiMoNsAyS Posted July 29, 2004 Share Posted July 29, 2004 @Alanoll good work dude! specially the .ini part , but tell me if this would work:winamp.msi Xfull=1 Xagent=0 Xuser="Me" XKey="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX"ps: the skin screenshots during installation rules!! Link to comment Share on other sites More sharing options...
Alanoll Posted July 29, 2004 Author Share Posted July 29, 2004 hate to tell you, but no that line won't work. I didn't want to get into complex boolean expressions, so it's simple OR's (if that meant anything to ya )Xfull=1 overrides Xagent=0 basically.One reason INI is good.....don't need that really long commandline to accomplish that. If there are enough bugs in this installer, I'll see about adding in more checking for switches or if I get bored tonight (which is what this installer is, I was bored last night).... Link to comment Share on other sites More sharing options...
Solid as a rock Posted July 30, 2004 Share Posted July 30, 2004 hate to tell you, but no that line won't work. I didn't want to get into complex boolean expressions, so it's simple OR's (if that meant anything to ya )Xfull=1 overrides Xagent=0 basically.One reason INI is good.....don't need that really long commandline to accomplish that. If there are enough bugs in this installer, I'll see about adding in more checking for switches or if I get bored tonight (which is what this installer is, I was bored last night)....ok... i want to check if i understand it all good. the msi u have created is 5.04 and i can remove my own winamp? and i can choose between 2 ways to install winamp. with ini i can more specify my wishes?i create a winamp.ini with inside:[setup]Xintex=1Xmodernskin=1Xaudio=1Xvisual=1Xextra=1Xdircont=1and other things are disabled by default? (i dont know what xintex and xdircont are but if i dont like them i remove them the next time...)and in my cmd come a line with: start /wait %systemdrive%\Install\Applications\Winamp\winamp.msi /qbbecause you say NOTE: This installer is not SILENT by default. You must still use /qb or /qn like you normally would.have i understand this all right? Link to comment Share on other sites More sharing options...
Alanoll Posted July 30, 2004 Author Share Posted July 30, 2004 look at the above screen shot. If you tell setup to install something that has child (Audio for example), if you specify xaudio=1 but xwma=0, xwma will still be installed because the parent setting overrides the child.But yes, ANYTHING you don't set =1 will not get installed, as long as you do not set =1 to the parent with =0 to the child. If you don't want all Audio for example, then just exclude it and select the children you want to install.you put the slash wrong. it's /qb not \qb The INI and commandline do the same things. INI is just cleaner as there isn't a command that goes over 100 characters in length.But you must specify the path to the INI file to use with INI="PATHTOINI\winamp.ini" when calling the msi. Link to comment Share on other sites More sharing options...
Solid as a rock Posted July 30, 2004 Share Posted July 30, 2004 look at the above screen shot. If you tell setup to install something that has child (Audio for example), if you specify xaudio=1 but xwma=0, xwma will still be installed because the parent setting overrides the child.But yes, ANYTHING you don't set =1 will not get installed, as long as you do not set =1 to the parent with =0 to the child. If you don't want all Audio for example, then just exclude it and select the children you want to install.you put the slash wrong. it's /qb not \qb The INI and commandline do the same things. INI is just cleaner as there isn't a command that goes over 100 characters in length.But you must specify the path to the INI file to use with INI="PATHTOINI\winamp.ini" when calling the msi.ok i have understanding it all good.... i knew that about the switches who overides the smaller switches. so i go build the msi now in.... after that i go to sleep. tommorow i will be back edit: i dont noticed your last lineso it must be:start /wait %systemdrive%\Install\Applications\Winamp\winamp.msi /qb /INI="install\applications\winamp.ini"?edit: ahhh i am sorry. it is 3.31 in the night here and i am a bit sleepy but i mean ofcourse this start /wait %systemdrive%\Install\Applications\Winamp\winamp.msi /qb /INI="%systemdrive%\install\applications\winamp\winamp.ini" Link to comment Share on other sites More sharing options...
Alanoll Posted July 30, 2004 Author Share Posted July 30, 2004 start /wait %systemdrive%\Install\Applications\Winamp\winamp.msi /qb /INI="%systemdrive%\install\applications\winamp.ini" Full path must be specified in INI file. I couldn't quite get the code write to use an INI file in MSI directory or anything. Link to comment Share on other sites More sharing options...
SiMoNsAyS Posted July 30, 2004 Share Posted July 30, 2004 hate to tell you, but no that line won't work. I didn't want to get into complex boolean expressions, so it's simple OR's (if that meant anything to ya tongue.gif)Xfull=1 overrides Xagent=0 basically.of course , that was what i thought but i want to full install winamp without winamp agent and i don't wanted to set all the others switches to 1 ok thanks Alanoll [...] downloading and building the .ini file... Link to comment Share on other sites More sharing options...
1chaoticadult Posted July 30, 2004 Share Posted July 30, 2004 the switches don't work for me in VMware or otherwise. Maybe its nLite fault. Oh well I will keep trying. nevermind i got it. Alanoll good work with msi. It works great. Link to comment Share on other sites More sharing options...
jrzycrim Posted July 30, 2004 Share Posted July 30, 2004 //deleted Link to comment Share on other sites More sharing options...
1chaoticadult Posted July 30, 2004 Share Posted July 30, 2004 (edited) *Update* Xuser doesnt put my name in registry instead there is a 0 in its place. I tried with and without the ini. It puts the Xkey value in the registry but thats it. Edited July 30, 2004 by drthawhizkid Link to comment Share on other sites More sharing options...
1chaoticadult Posted July 30, 2004 Share Posted July 30, 2004 Installs quicklaunch in systemroot which has this directory structure C:\C:\Application Data\Microsoft\Internet Explorer\Quick Launch\Winamp.lnkAnother error I found. Still its not serious just a minor quirk. Again Alanoll thanks for your efforts. Link to comment Share on other sites More sharing options...
Echolomax Posted July 30, 2004 Share Posted July 30, 2004 Good job!!! 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