beppemito Posted September 9, 2004 Posted September 9, 2004 i use runonceex: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?
Alanoll Posted September 9, 2004 Author Posted September 9, 2004 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?@a06lpThey 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 overcopy %SETUPDIR%\winamp.ini %INSTALLDIR%\winamp.iniWhere %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.@SiMoNsAySI"m about to leave so no specfiices. But generally,it's HKCR\WinampFile , and HKCR\Directory
a06lp Posted September 10, 2004 Posted September 10, 2004 @AlanollI 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 Posted September 10, 2004 Author Posted September 10, 2004 so call one winamp5.ini and use that for the stuff in [sETUP] , the preference one winamp.inithe one you specify in INI= can be called ANYTHING.
a06lp Posted September 10, 2004 Posted September 10, 2004 so call one winamp5.ini and use that for the stuff in [sETUP] , the preference one winamp.inithe one you specify in INI= can be called ANYTHING. I'm an id***...I knew that...Sorry for the trouble.
beppemito Posted September 10, 2004 Posted September 10, 2004 can i use a method like this?runonceex (Window Post Install script: WPI)WshShell.regWrite(KeyBase + "\\75\\1", "cmd.exe /c %systemdrive%\install\\winamp5\\install.cmd", "REG_SZ");install.cmdstart /wait %systemdrive%\install\winamp5\winamp505.msi INI="%systemdrive%\install\winamp5\winamp.ini" /qbEXITwinamp.ini[SETUP]XAUDIO=1Xmodernskin=1Xextra=1Xregopt=1XNAME=xxxxXKEY=xxxxx-xxxxx-xxxxx-xxxxx
SiMoNsAyS Posted September 10, 2004 Posted September 10, 2004 (edited) @SiMoNsAySI"m about to leave so no specfiices. But generally,it's HKCR\WinampFile , and HKCR\Directorythanks Alanoll 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 foldersWindows Registry Editor Version 5.00[-HKEY_CLASSES_ROOT\Winamp.File\shell\ListBookmark][-HKEY_CLASSES_ROOT\Directory\shell\Winamp.Bookmark] Edited September 10, 2004 by SiMoNsAyS
Alanoll Posted September 10, 2004 Author Posted September 10, 2004 @beppemitolet 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.
MtK Posted September 10, 2004 Posted September 10, 2004 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 Posted September 10, 2004 Posted September 10, 2004 @SiMoNsAySI"m about to leave so no specfiices. But generally,it's HKCR\WinampFile , and HKCR\Directorythanks Alanoll 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 foldersWindows Registry Editor Version 5.00[-HKEY_CLASSES_ROOT\Winamp.File\shell\ListBookmark][-HKEY_CLASSES_ROOT\Directory\shell\Winamp.Bookmark] Thanks for the tip 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 :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 Posted September 10, 2004 Author Posted September 10, 2004 @MTKumm...Default File & playlist ICONCould be done most likely."Show winamp in: Systray..."Not sure, buta gain, might be able to be done.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 Posted September 11, 2004 Posted September 11, 2004 What am I doing wrong? It just comes up with an installation wizard, which isn't unattended at all.RunOnceEx.cmdREG ADD %KEY%\006 /VE /D "WinAmp 5.05" /fREG ADD %KEY%\006 /V 1 /D "%CDROM%\SOFTWARE\winamp\winamp.msi INI="%CDROM%\SOFTWARE\winamp\winamp.ini"" /fI have also tried thisRunOnceEx.cmdREG ADD %KEY%\006 /VE /D "WinAmp 5.05" /fREG ADD %KEY%\006 /V 1 /D "%CDROM%\SOFTWARE\winamp\winamp.msi INI=\"%CDROM%\SOFTWARE\winamp\winamp.ini\"" /fAnd my WinAmp Setup INI...winamp.ini[SETUP]XAGENT=0XLIBRARY=1XINTEX=1XMODERNSKIN=1XAUDIO=1XVIDEO=1XVISUAL=1XEXTRA=0XDIRCONT=1XTYPECONT=1XAUDIOCD=0XINET=0Thanks for your time.
Alanoll Posted September 11, 2004 Author Posted September 11, 2004 NOTE: This installer is not SILENT by default. You must still use /qb or /qn like you normally would.
MtK Posted September 11, 2004 Posted September 11, 2004 @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 Posted September 11, 2004 Author Posted September 11, 2004 @mTKIf the skin is present when Winamp is run, and you set XSKINSETTING to the name of the skin, it SHOULD work
Recommended Posts