Help - Search - Members - Calendar
Full Version: Winamp 5.0.5 MSI release
MSFN Forums > Unattended Windows Discussion & Support > Application Installs
Pages: 1, 2, 3

   


Google Internet Forums Unattended CD/DVD Guide
Alanoll
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=17412

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.

Additional switches are
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


Usage:
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 XUser,XKey, and XSkinsetting. They are all strings, so use whatever you're supposed. If you used "Joe User" to register Winamp, then use
CODE
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:
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\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
CODE
winamp.msi INI="%systemdrive%\install\winamp\winamp.ini"


NOTE: IF you want to use CDDB functionality, you MUST set XINET to 0 or 1.

Updates
New MSI, fixed a couple of string error (wrong name). Also tried to make smaller, but probally didn't succeed.
Also uploaded a RAR file with the MSI broken down into CAB files. Delete the cab's you don't need. There should be ONE cab for each component switch. DON'T DELETE CORE.CAB!!

Download Link: MSI File __ CAB File Download
Last Update: 9/8 05:52 GMT
pegasus1010
thanks.. thumbup.gif
tewk_dawg
Trying it now using the INI method, will let you know in about an 20 minutes. Here's my command line in the runonce file and the ini is below.

REG ADD %KEY%\005 /V 2 /D "%systemdrive%\install\WINAMP\winamp505.msi /qb INI="%systemdrive%\install\WINAMP\winamp.ini"" /f

[SETUP]
XLIBRARY=1
XJUMP=1
XMODERNSKIN=1
XAUDIO=1
XNAME="xxxxxxxx xxxxxx"
XKEY="xxxxx-xxxxx-xxxxx-xxxxx"
XQUICKLAUNCH=1
INSTALLDIR=C:\Program files\Winamp
XSKINSETTING=Winamp Modern
battleangel3222
hi. if you please could, verify my runonceex line:

REG ADD %KEY%\065 /VE /D "Installing Winamp" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\winamp\winamp.msi Xfull=1 Xuser="S0me0nesmind1="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" /qb" /f
tewk_dawg
Works great! No problems to report. thumbup.gif
Alanoll
QUOTE (battleangel3222 @ Sep 6 2004, 07:47 PM)
hi. if you please could, verify my runonceex line:

REG ADD %KEY%\065 /VE /D "Installing Winamp" /f
REG ADD %KEY%\065 /V 1 /D "%systemdrive%\install\winamp\winamp.msi Xfull=1 Xuser="S0me0nesmind1="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" /qb" /f

incorrect. You forgot to specify XKey
Akolite
link to the 5.05 msi file?
pegasus1010
bottom of first post:

Download Link: Linkage
Last Update: 8/13 16:48 GMT....
--=ddSHADOW=--
TNX for the .msi Alanoll
Orsi
Im being able to make it work sad.gif
Something wrong with the INI file?

[SETUP]
Xfull=1
XNAME=xxxxxxx
XKEY=xxxxx-xxxxx-xxxxx-xxxxx

Or the command?
Winamp_5[1].0.5.msi INI=C:\winamp.ini /qb
Alanoll
QUOTE (pegasus1010 @ Sep 7 2004, 04:03 AM)
bottom of first post:

Download Link: Linkage
Last Update: 8/13 16:48 GMT....

whooops. the file is new, the date isn't. I copied the first post from teh other thread, and changed the link. My bad, will correct in a minute.


@Orsi
What doesn't work? Nothing?
try encasing the INI argument with quotes. ( INI="C:\winamp.ini" )
Orsi
worked! (dumb me smile.gif )

tks a lot
Cee-Kay
Great release as always Alanoll! I simply used my old Winamp.ini that I created from use with your Winamp 5.0.4 release.

Seems to work no problem. biggrin.gif
prathapml
OK, yeah - cool news Alanoll! biggrin.gif
You finally managed to get the 5.05 out the door.

There's one thing I've been thinking all along - since I so badly need to reduce space usage on my install images (and 4.x MB is not a help there tongue.gif) do you have any plans of a lite version of wa 5.05?
That'd be an interesting option - you could maybe put in only the features that the wa 5.05 lite installer (from nullsoft) gives; and what would it size up to? Sufficiently lesser installer size than the current one? (1.x MB would be perfect)

Heh...
Maybe this is why they say - "don't do something, because then they'll ask you to do everything". Never mind.... enjoy your day. thumbup.gif
XtremeMaC
well if u want specific components I'd say go with Mazin's method.
a specific lite version I'm sure could be done (I have 1 for myself, pretty lite smile.gif)
as u said lite as in nullsoft's lite would be more appropiate tongue.gif

I've 1 idea though I'm not sure how it'd be accomplished
maybe alanoll can put every component into a separate cab file and the msi would only install the one's that exist
so the folder contents will look like this
winamp.msi (about 300kb)
audio components.cab (1.5mb)
video components.cab (1.5mb)
and every main component could have its own sub components if alanoll's willing to spend his time on saving few mb's smile.gif
mp3.cab
wma.cab
modernskin.cab smile.gif
Alanoll
@Mac
That's a simple setting in InstallShield to make each component into it's own cab, so it's entirely likely. Of course, I'm not sure what will happen if you tell it to install something that's not present, but if that what you people want, I'll recompile tomorrow and rar it and upload it as a seperate link for people to respond back to.

As for removing stuff not in the original installer, everything is exact like the old. The problem is InstallShield's compression isn't as good as nullsoft's. And I can't find where to set it. I just see Optomize for size, and that's about it.....
Alanoll
First post Updated.
prathapml
@Alanoll
Fantastic. This just _may_ finally fix my long-time gripe. I'll tell if it doesn't work fine.
XtremeMaC
yes I know u can save them separetly, I'm also wondering what'd happen if 1 cab was not present. smile.gif
but I think it will be okay if the cab is not present and that component is not selected to install
just dled the rar. will give it a try now smile.gif
a06lp
I never tried this before, so let me know if this is ok.

I want to install SILENTLY. (assuming I replace name and key)


CODE
Winamp505.msi INI="%systemdrive%\install\winamp505\winamp.ini" /qb


winamp.ini
CODE
[SETUP]
XLIBRARY=1
Xhotkey=1
Xjump=1
XAUDIO=1
Xextra=1
XNAME="xxxxxxxx xxxxxx"
XKEY="xxxxx-xxxxx-xxxxx-xxxxx"
XQUICKLAUNCH=1
INSTALLDIR=C:\Program files\Winamp


Also, if I just leave out the "XNAME" and "XKEY", it will install a non-Pro version, but otherwise fully functional?

Thanks
Alanoll
technically, it installs the PRO version always, just if you don't have a KEY and NAME the features aren't activated.

the INI looks fine, but I don't guaranty INSTALLDIR will work. That and you specified the default directory anyways.
CrimsonKain
Just wanting to confirm that if I had a successful setup with the 5.04 msi I should just be able to replace it with the new one and be all set right? There hasn't been any major changes has there? (especially with the ini)
prathapml
Right - no major changes. Other than the version that is. newwink.gif
All the same old switches and whatever other processes you were doing for 5.04 should work with this one as well. Yes, Just need to replace the file (the new one).
Bouchehog
Is it possible to install this using a bat file? Using something like:

QUOTE
ECHO.
ECHO Installing Winamp v5.05
ECHO Please wait...
start /wait %systemdrive%\install\Applications\Winamp\winamp.msi /R /xname=xxxxx /xkey=xxxxx-xxxxx-xxxxx-xxxxx /xaudio=1 /xmodernskin=1 /xtray=1 /XDesktop=0 /XStartmenu=1 /XINET=2 /passive /norestart


I've not got around to running any runonceex things yet and I don't understand them as well as I understand bat files. smile.gif
Alanoll
you can, but I don't know waht /R is for though. or /norestart or /passive, as they're not MSI commands.

second....
QUOTE
winamp.msi Xaudio=1 Xvideo=1

Taken from above. Those are ALL batch command calls. just put start /wait infront of it. NOTHING in my post tells you how to do RunOnceEX, it's all assumed you use batch calls.
a06lp
Is there a way to save winamp settings (hotkeys, etc.) and them have them installed?

maybe a reg file or something?
Bouchehog
Thanks! I was being thick and putting the variables in as switches. smile.gif
Alanoll
QUOTE (a06lp @ Sep 9 2004, 08:11 AM)
Is there a way to save winamp settings (hotkeys, etc.) and them have them installed?

maybe a reg file or something?

copy the winamp.ini file form your current winamp directory. Copy that over after the MSI runs.
a06lp
QUOTE (Alanoll @ Sep 9 2004, 09:07 AM)
QUOTE (a06lp @ Sep 9 2004, 08:11 AM)
Is there a way to save winamp settings (hotkeys, etc.) and them have them installed?

maybe a reg file or something?

copy the winamp.ini file form your current winamp directory. Copy that over after the MSI runs.

i should copy the text from my current dir winamp.ini and add it to the setup winamp.ini after the [Setup] parameters? will that work?

Can I copy only the important parts, and Winamp will fill in the rest?
SiMoNsAyS
@Alanoll i've seen the option to remove the context menu options but... what about if i only want to remove some entries and left only for example "play with winamp", where are located these entries in the registry? anyway to prevent winamp to install those extensions?
beppemito
i use runonceex:
CODE
WshShell.regWrite(KeyBase + "\\75\\1", CDROM + "\install\\winamp5\\winamp505.msi INI=\"" + CDROM + "\install\\winamp5\\winamp.ini\" INSTALLDIR=\"%ProgramFiles%\\Winamp\\\" /qb", "REG_SZ");

is it right? blushing.gif
Alanoll
Regarding command calls. If it's not pure RUnOnceEX or Batch files (or even INF) than I'm not to sure. I'm tempted to say your own your own if you go to tother routes (beppemito), but I believe beppemito's it correct. I make no guarantee though. Try in Batch first then convert?

@a06lp
They are seperate files and go to different locations. I may in the next release add another command to copy it to install dir or something, but no guarantees. Just use a batch call to copy it over
CODE
copy %SETUPDIR%\winamp.ini %INSTALLDIR%\winamp.ini

Where %SETUPDIR% is the path to the winamp.ini file (the one to go in your Winamp directory. You can add it to your INI file for the setup, but who knows. %INSTALLDIR% is the directory winamp is installed to.

@SiMoNsAyS
I"m about to leave so no specfiices. But generally,
it's HKCR\WinampFile , and HKCR\Directory
a06lp
@Alanoll

I understand what you're saying, but I can't have two files named the same thing in the same dir... "winamp.ini" is my current Installation settings. If I copy my "winamp.ini" of prefs, it will overwrite...
Alanoll
so call one winamp5.ini and use that for the stuff in [SETUP] , the preference one winamp.ini

the one you specify in INI= can be called ANYTHING.
a06lp
QUOTE (Alanoll @ Sep 10 2004, 08:29 AM)
so call one winamp5.ini and use that for the stuff in [SETUP] , the preference one winamp.ini

the one you specify in INI= can be called ANYTHING.

blink.gif I'm an id***...

I knew that...

Sorry for the trouble.
beppemito
can i use a method like this?

runonceex (Window Post Install script: WPI)
CODE
WshShell.regWrite(KeyBase + "\\75\\1", "cmd.exe /c %systemdrive%\install\\winamp5\\install.cmd", "REG_SZ");


install.cmd
CODE
start /wait %systemdrive%\install\winamp5\winamp505.msi INI="%systemdrive%\install\winamp5\winamp.ini" /qb
EXIT


winamp.ini
CODE
[SETUP]
XAUDIO=1
Xmodernskin=1
Xextra=1
Xregopt=1
XNAME=xxxx
XKEY=xxxxx-xxxxx-xxxxx-xxxxx
SiMoNsAyS
QUOTE
@SiMoNsAyS
I"m about to leave so no specfiices. But generally,
it's HKCR\WinampFile , and HKCR\Directory

thanks Alanoll newwink.gif

edit: ok so here it's an example, this will left only "play in winamp" and "enque in winamp" removing the winamp bookmark entry on the right click menu for files and folders
CODE
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Winamp.File\shell\ListBookmark]

[-HKEY_CLASSES_ROOT\Directory\shell\Winamp.Bookmark]
Alanoll
@beppemito
let me be clear, it will work however you want to call it. I'm just not sure on the syntax for your WPI file. It looked correct before, so I"m not sure. However you call it, it should work. But you're just on your own on syntax for anything other then batch commands and INFs. tongue.gif
MtK
Hi,

Tried it & it Works great!!!


Can I use this to set other options, like:
Default File & playlist ICON
"Show winamp in: Systray..."
maybe add, additional skins & plugins...
Lucius Snow
QUOTE (SiMoNsAyS @ Sep 10 2004, 11:50 AM)
QUOTE
@SiMoNsAyS
I"m about to leave so no specfiices. But generally,
it's HKCR\WinampFile , and HKCR\Directory

thanks Alanoll newwink.gif

edit: ok so here it's an example, this will left only "play in winamp" and "enque in winamp" removing the winamp bookmark entry on the right click menu for files and folders
CODE
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Winamp.File\shell\ListBookmark]

[-HKEY_CLASSES_ROOT\Directory\shell\Winamp.Bookmark]

Thanks for the tip newwink.gif

Which key should i remove to suppress "Enqueue in Winamp" as well ? I only want to leave "Play in Winamp".

Also, i'd like to get rid of both "Add to Winamp bookmark's ..." and "Enqueue in Winamp" for the playlist files (*.m3u).

EDIT : Okay, i found out after searching a bit in the registry. So it is :

QUOTE
Windows Registry Editor Version 5.00

[-HKEY_CLASSES_ROOT\Winamp.File\shell\Enqueue][-HKEY_CLASSES_ROOT\Winamp.File\shell\ListBookmark]

[-HKEY_CLASSES_ROOT\Winamp.File\shell\open]

[-HKEY_CLASSES_ROOT\Winamp.PlayList\shell\Enqueue]

[-HKEY_CLASSES_ROOT\Winamp.PlayList\shell\ListBookmark]

[-HKEY_CLASSES_ROOT\Winamp.PlayList\shell\open]

[-HKEY_CLASSES_ROOT\Directory\shell\Winamp.Bookmark]


It'll only let "Play in Winamp" for both Winamp playlists and media type files.
Alanoll
@MTK
umm...
QUOTE
Default File & playlist ICON
Could be done most likely.

QUOTE
"Show winamp in: Systray..."

Not sure, buta gain, might be able to be done.

QUOTE
maybe add, additional skins & plugins...

I won't add those to the installer. But as a note, plugins (and their installers) are just copied to the plugin folder in Winamp, as are the skins (but in the Skins folder). You want to have your skin active upon first run, just set XSKINSETTING to the string that identifies your skin. (Open up winamp with it already loaded, right-click, select skin, and see what it's name in Winamp is)
rompom7
What am I doing wrong? It just comes up with an installation wizard, which isn't unattended at all.

RunOnceEx.cmd
CODE
REG ADD %KEY%\006 /VE /D "WinAmp 5.05" /f
REG ADD %KEY%\006 /V 1 /D "%CDROM%\SOFTWARE\winamp\winamp.msi INI="%CDROM%\SOFTWARE\winamp\winamp.ini"" /f

I have also tried this
RunOnceEx.cmd
CODE
REG ADD %KEY%\006 /VE /D "WinAmp 5.05" /f
REG ADD %KEY%\006 /V 1 /D "%CDROM%\SOFTWARE\winamp\winamp.msi INI=\"%CDROM%\SOFTWARE\winamp\winamp.ini\"" /f

And my WinAmp Setup INI...
winamp.ini
CODE
[SETUP]
XAGENT=0
XLIBRARY=1
XINTEX=1
XMODERNSKIN=1
XAUDIO=1
XVIDEO=1
XVISUAL=1
XEXTRA=0
XDIRCONT=1
XTYPECONT=1
XAUDIOCD=0
XINET=0


Thanks for your time.
Alanoll
QUOTE
NOTE: This installer is not SILENT by default. You must still use /qb or /qn like you normally would.
MtK
@Alanoll:

By Plugins, I don't meen to install them, but to select them as Active-Plugin...
can it be done as you said about the skin?
Alanoll
@mTK
If the skin is present when Winamp is run, and you set XSKINSETTING to the name of the skin, it SHOULD work
Alanoll
just making sure I didn't miss something....

are the seriously no bugs?
scorpy
Umm, here is a error I got when installing with a ini. I have my RunOnce settings below, along with my ini.

runonce
CODE
REG ADD %KEY%\135 /VE /D "Winamp 5.05" /f
REG ADD %KEY%\135 /V 1 /D "%CDROM%\Software\Winamp\Winamp5.05.msi /qn INI="%CDROM%\Software\Winamp\winamp.ini"" /f

winamp.ini in same winamp folder as MSI
CODE
[SETUP]
XAGENT=1
XLIBRARY=1
XINTEX=1
XHOTKEY=1
XJUMP=0
XTRAY=1
XMODERNSKIN=1
XAUDIO=1
XWMA=1
XMID=1
XMOD=1
XOGG=1
XAAC=1
XMP3ENC=1
XMP4=1
XCDPLAY=1
XSONIC=0
XCDDB=1
XWAV=1
XVIDEO=1
XNSV=1
XAVI=0
XVISUAL=0
XTINYFULL=0
XAVS=0
XMILKDROP=0
XEXTRA=1
XSIGNAL=0
XWRITEWAV=1
XDCOUT=1
XREGOPT=1
XDIRCONT=1
XTYPECONT=1
XNETSCAPE=1
XAUDIOCD=1
XDESKTOP=0
XQUICKLAUNCH=0
XSTARTMENU=0
XALLSHORT=0
XSKINSETTING="winamp 5 skin.wal"
XINET=0
Alanoll
CODE
REG ADD %KEY%\135 /V 1 /D "%CDROM%\Software\Winamp\Winamp5.05.msi /qn INI="%CDROM%\Software\Winamp\winamp.ini"" /f

should be
CODE
REG ADD %KEY%\135 /V 1 /D "%CDROM%\Software\Winamp\Winamp5.05.msi /qn INI=\"%CDROM%\Software\Winamp\winamp.ini\"" /f



Also disable Norton or install it afterwards. THe "malicious" script is just a VBS file that copies the INI file from your specified location to mine. That's it.
buletov
jesus scorpy why do you use norton when you can get a way better antivirus software which is free, and more that twice faster?

avast for example


p.s. norton=mc'donalds newwink.gif
scorpy
Because this company has a reputation to uphold. I paid for the service, and if they want be back they will do good. A free AV has nothing to lose. If it sucks, you get a virus, you lose 5 users. Big deal. I just don't trust them as much as a full AV solution.

BTW I am not saying that price determines quality, as there have been some terrible releases. But it is a factor.




Google Internet Forums Unattended CD/DVD Guide

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.